106 references to BlockTypes
Microsoft.CodeAnalysis.CSharp.Features (60)
Structure\CSharpStructureHelpers.cs (2)
158type: BlockTypes.Comment, 254type: BlockTypes.Comment,
Structure\Providers\AccessorDeclarationStructureProvider.cs (1)
45type: BlockTypes.Member,
Structure\Providers\AnonymousMethodExpressionStructureProvider.cs (1)
45type: BlockTypes.Expression,
Structure\Providers\AnonymousObjectCreationExpressionStructureProvider.cs (1)
40type: BlockTypes.Expression));
Structure\Providers\ArgumentListStructureProvider.cs (1)
22type: BlockTypes.Expression,
Structure\Providers\ArrowExpressionClauseStructureProvider.cs (1)
31type: BlockTypes.Nonstructural,
Structure\Providers\BlockSyntaxStructureProvider.cs (22)
59subHeadings.Add((GetTextSpan(elseBlock), GetHintSpan(elseBlock), BlockTypes.Conditional)); 63BlockTypes.Conditional, 77subHeadings.Add((GetTextSpan(catchClause.Block), GetHintSpan(catchClause.Block), BlockTypes.Statement)); 81subHeadings.Add((GetTextSpan(finallyBlock), GetHintSpan(finallyBlock), BlockTypes.Statement)); 84BlockTypes.Statement, 206SyntaxKind.ForStatement => BlockTypes.Loop, 207SyntaxKind.ForEachStatement => BlockTypes.Loop, 208SyntaxKind.ForEachVariableStatement => BlockTypes.Loop, 209SyntaxKind.WhileStatement => BlockTypes.Loop, 210SyntaxKind.DoStatement => BlockTypes.Loop, 211SyntaxKind.TryStatement => BlockTypes.Statement, 212SyntaxKind.CatchClause => BlockTypes.Statement, 213SyntaxKind.FinallyClause => BlockTypes.Statement, 214SyntaxKind.UnsafeStatement => BlockTypes.Statement, 215SyntaxKind.FixedStatement => BlockTypes.Statement, 216SyntaxKind.LockStatement => BlockTypes.Statement, 217SyntaxKind.UsingStatement => BlockTypes.Statement, 218SyntaxKind.IfStatement => BlockTypes.Conditional, 219SyntaxKind.ElseClause => BlockTypes.Conditional, 220SyntaxKind.SwitchSection => BlockTypes.Conditional, 221SyntaxKind.Block => BlockTypes.Statement, 222SyntaxKind.LocalFunctionStatement => BlockTypes.Statement,
Structure\Providers\CollectionExpressionStructureProvider.cs (2)
48type: BlockTypes.Expression)); 67type: BlockTypes.Expression));
Structure\Providers\CompilationUnitStructureProvider.cs (1)
36type: BlockTypes.Imports,
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
45type: BlockTypes.Member,
Structure\Providers\ConversionOperatorDeclarationStructureProvider.cs (1)
47type: BlockTypes.Member,
Structure\Providers\DestructorDeclarationStructureProvider.cs (1)
36type: BlockTypes.Member,
Structure\Providers\DisabledTextTriviaStructureProvider.cs (1)
62type: BlockTypes.PreprocessorRegion,
Structure\Providers\DocumentationCommentStructureProvider.cs (1)
45type: BlockTypes.Comment,
Structure\Providers\EnumDeclarationStructureProvider.cs (1)
40type: BlockTypes.Member,
Structure\Providers\EventDeclarationStructureProvider.cs (1)
46type: BlockTypes.Member,
Structure\Providers\FileScopedNamespaceDeclarationStructureProvider.cs (1)
38type: BlockTypes.Imports, isCollapsible: true, isDefaultCollapsed: options.CollapseImportsWhenFirstOpened));
Structure\Providers\IfDirectiveTriviaStructureProvider.cs (1)
57type: BlockTypes.PreprocessorRegion,
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
46type: BlockTypes.Member,
Structure\Providers\InitializerExpressionStructureProvider.cs (2)
48type: BlockTypes.Expression)); 66type: BlockTypes.Expression));
Structure\Providers\InterpolatedStringExpressionStructureProvider.cs (1)
31type: BlockTypes.Expression,
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
45type: BlockTypes.Member,
Structure\Providers\MultilineCommentBlockStructureProvider.cs (1)
23type: BlockTypes.Comment,
Structure\Providers\NamespaceDeclarationStructureProvider.cs (2)
33type: BlockTypes.Namespace, 50type: BlockTypes.Imports, isCollapsible: true, isDefaultCollapsed: options.CollapseImportsWhenFirstOpened));
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
45type: BlockTypes.Member,
Structure\Providers\ParenthesizedLambdaExpressionStructureProvider.cs (1)
46type: BlockTypes.Expression,
Structure\Providers\PropertyDeclarationStructureProvider.cs (1)
45type: BlockTypes.Member,
Structure\Providers\RegionDirectiveStructureProvider.cs (1)
55type: BlockTypes.PreprocessorRegion,
Structure\Providers\SimpleLambdaExpressionStructureProvider.cs (1)
46type: BlockTypes.Expression,
Structure\Providers\StringLiteralExpressionStructureProvider.cs (2)
44return BlockTypes.Nonstructural; 53return BlockTypes.Expression;
Structure\Providers\SwitchExpressionStructureProvider.cs (1)
26type: BlockTypes.Conditional));
Structure\Providers\SwitchStatementStructureProvider.cs (2)
26type: BlockTypes.Conditional)); 39type: BlockTypes.Statement));
Structure\Providers\TypeDeclarationStructureProvider.cs (1)
48type: BlockTypes.Type,
Microsoft.CodeAnalysis.EditorFeatures (11)
Structure\StructureTag.cs (11)
139BlockTypes.Conditional => PredefinedStructureTagTypes.Conditional, 140BlockTypes.Comment => PredefinedStructureTagTypes.Comment, 141BlockTypes.Expression => PredefinedStructureTagTypes.Expression, 142BlockTypes.Imports => PredefinedStructureTagTypes.Imports, 143BlockTypes.Loop => PredefinedStructureTagTypes.Loop, 144BlockTypes.Member => PredefinedStructureTagTypes.Member, 145BlockTypes.Namespace => PredefinedStructureTagTypes.Namespace, 146BlockTypes.Nonstructural => PredefinedStructureTagTypes.Nonstructural, 147BlockTypes.PreprocessorRegion => PredefinedStructureTagTypes.PreprocessorRegion, 148BlockTypes.Statement => PredefinedStructureTagTypes.Statement, 149BlockTypes.Type => PredefinedStructureTagTypes.Type,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxStructureProviderTests.cs (1)
98type: BlockTypes.Nonstructural,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Structure\BlockSpanTests.cs (3)
25type: BlockTypes.Nonstructural, bannerText: bannerText, autoCollapse: autoCollapse); 43type: BlockTypes.Nonstructural, bannerText: bannerText, autoCollapse: autoCollapse); 57type: BlockTypes.Nonstructural, bannerText: bannerText, autoCollapse: autoCollapse);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (11)
Structure\FSharpBlockTypes.cs (11)
14public static string Nonstructural => BlockTypes.Nonstructural; 17public static string Comment => BlockTypes.Comment; 18public static string PreprocessorRegion => BlockTypes.PreprocessorRegion; 21public static string Imports => BlockTypes.Imports; 22public static string Namespace => BlockTypes.Namespace; 23public static string Type => BlockTypes.Type; 24public static string Member => BlockTypes.Member; 27public static string Statement => BlockTypes.Statement; 28public static string Conditional => BlockTypes.Conditional; 29public static string Loop => BlockTypes.Loop; 31public static string Expression => BlockTypes.Expression;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (11)
Structure\OmniSharpBlockTypes.cs (11)
12public static string Nonstructural => BlockTypes.Nonstructural; 15public static string Comment => BlockTypes.Comment; 16public static string PreprocessorRegion => BlockTypes.PreprocessorRegion; 19public static string Imports => BlockTypes.Imports; 20public static string Namespace => BlockTypes.Namespace; 21public static string Type => BlockTypes.Type; 22public static string Member => BlockTypes.Member; 25public static string Statement => BlockTypes.Statement; 26public static string Conditional => BlockTypes.Conditional; 27public static string Loop => BlockTypes.Loop; 29public static string Expression => BlockTypes.Expression;
Microsoft.CodeAnalysis.Features (5)
Structure\BlockSpan.cs (1)
72/// A string defined from <see cref="BlockTypes"/>.
Structure\BlockStructureServiceWithProviders.cs (4)
86var isTopLevel = BlockTypes.IsDeclarationLevelConstruct(type); 87var isMemberLevel = BlockTypes.IsCodeLevelConstruct(type); 88var isComment = BlockTypes.IsCommentOrPreprocessorRegion(type); 94type = BlockTypes.Nonstructural;
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\FoldingRanges\FoldingRangesHandler.cs (4)
110BlockTypes.Comment => FoldingRangeKind.Comment, 111BlockTypes.Imports => FoldingRangeKind.Imports, 112BlockTypes.PreprocessorRegion => FoldingRangeKind.Region, 113BlockTypes.Member => VSFoldingRangeKind.Implementation,