GetFileRegions(Request request) { var context = new BufferContext(request, this._parser); var declarationCollector = new GetDirectivesAstVisitor(); context.ParsedContent.SyntaxTree .AcceptVisitor(declarationCollector); var regions = declarationCollector.Directives .Where(d => d.Type == PreProcessorDirectiveType.Region || d.Type == PreProcessorDirectiveType.Endregion) .Select(d => QuickFix.ForFirstLineInRegion (d.GetRegion(), context.Document)); return new QuickFixResponse(regions); }
GetFileRegions(Request request) { var context = new BufferContext(request, this._parser); var declarationCollector = new GetDirectivesAstVisitor(); context.ParsedContent.SyntaxTree .AcceptVisitor(declarationCollector); var regions = declarationCollector.Directives .Where(d => d.Type == PreProcessorDirectiveType.Region || d.Type == PreProcessorDirectiveType.Endregion) .Select(d => QuickFix.ForFirstLineInRegion (d.GetRegion(), context.Document)); return(new QuickFixResponse(regions)); }