125 references to BlockTypes
Microsoft.CodeAnalysis.CSharp.Features (49)
Structure\CSharpStructureHelpers.cs (2)
182type: BlockTypes.Comment, 277type: BlockTypes.Comment,
Structure\Providers\AccessorDeclarationStructureProvider.cs (1)
45type: BlockTypes.Member,
Structure\Providers\AnonymousMethodExpressionStructureProvider.cs (1)
45type: BlockTypes.Expression,
Structure\Providers\ArrowExpressionClauseStructureProvider.cs (1)
29type: BlockTypes.Nonstructural,
Structure\Providers\BlockSyntaxStructureProvider.cs (17)
135case SyntaxKind.ForStatement: return BlockTypes.Loop; 136case SyntaxKind.ForEachStatement: return BlockTypes.Loop; 137case SyntaxKind.ForEachVariableStatement: return BlockTypes.Loop; 138case SyntaxKind.WhileStatement: return BlockTypes.Loop; 139case SyntaxKind.DoStatement: return BlockTypes.Loop; 141case SyntaxKind.TryStatement: return BlockTypes.Statement; 142case SyntaxKind.CatchClause: return BlockTypes.Statement; 143case SyntaxKind.FinallyClause: return BlockTypes.Statement; 145case SyntaxKind.UnsafeStatement: return BlockTypes.Statement; 146case SyntaxKind.FixedStatement: return BlockTypes.Statement; 147case SyntaxKind.LockStatement: return BlockTypes.Statement; 148case SyntaxKind.UsingStatement: return BlockTypes.Statement; 150case SyntaxKind.IfStatement: return BlockTypes.Conditional; 151case SyntaxKind.ElseClause: return BlockTypes.Conditional; 152case SyntaxKind.SwitchSection: return BlockTypes.Conditional; 154case SyntaxKind.Block: return BlockTypes.Statement; 156case SyntaxKind.LocalFunctionStatement: return BlockTypes.Statement;
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)
63type: 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)
37type: 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)
24type: 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 (1)
28type: BlockTypes.Expression,
Structure\Providers\SwitchStatementStructureProvider.cs (2)
26type: BlockTypes.Conditional)); 39type: BlockTypes.Statement));
Structure\Providers\TypeDeclarationStructureProvider.cs (1)
49type: BlockTypes.Type,
Microsoft.CodeAnalysis.EditorFeatures (11)
Structure\StructureTag.cs (11)
105BlockTypes.Conditional => PredefinedStructureTagTypes.Conditional, 106BlockTypes.Comment => PredefinedStructureTagTypes.Comment, 107BlockTypes.Expression => PredefinedStructureTagTypes.Expression, 108BlockTypes.Imports => PredefinedStructureTagTypes.Imports, 109BlockTypes.Loop => PredefinedStructureTagTypes.Loop, 110BlockTypes.Member => PredefinedStructureTagTypes.Member, 111BlockTypes.Namespace => PredefinedStructureTagTypes.Namespace, 112BlockTypes.Nonstructural => PredefinedStructureTagTypes.Nonstructural, 113BlockTypes.PreprocessorRegion => PredefinedStructureTagTypes.PreprocessorRegion, 114BlockTypes.Statement => PredefinedStructureTagTypes.Statement, 115BlockTypes.Type => PredefinedStructureTagTypes.Type,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxStructureProviderTests.cs (1)
99type: 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)
46/// A string defined from <see cref="BlockTypes"/>.
Structure\BlockStructureServiceWithProviders.cs (4)
92var isTopLevel = BlockTypes.IsDeclarationLevelConstruct(type); 93var isMemberLevel = BlockTypes.IsCodeLevelConstruct(type); 94var isComment = BlockTypes.IsCommentOrPreprocessorRegion(type); 100type = BlockTypes.Nonstructural;
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\FoldingRanges\FoldingRangesHandler.cs (3)
93BlockTypes.Comment => FoldingRangeKind.Comment, 94BlockTypes.Imports => FoldingRangeKind.Imports, 95BlockTypes.PreprocessorRegion => FoldingRangeKind.Region,
Microsoft.CodeAnalysis.VisualBasic.Features (31)
Structure\Providers\AccessorDeclarationStructureProvider.vb (1)
25autoCollapse:=True, type:=BlockTypes.Member,
Structure\Providers\CollectionInitializerStructureProvider.vb (1)
46type:=BlockTypes.Expression))
Structure\Providers\CompilationUnitStructureProvider.vb (1)
29autoCollapse:=True, type:=BlockTypes.Imports, isCollapsible:=True,
Structure\Providers\ConstructorDeclarationStructureProvider.vb (1)
26type:=BlockTypes.Member, isCollapsible:=True))
Structure\Providers\DisabledTextTriviaStructureProvider.vb (1)
28type:=BlockTypes.PreprocessorRegion,
Structure\Providers\DocumentationCommentStructureProvider.vb (1)
41autoCollapse:=True, type:=BlockTypes.Comment,
Structure\Providers\DoLoopBlockStructureProvider.vb (1)
21type:=BlockTypes.Loop, isCollapsible:=True))
Structure\Providers\EnumDeclarationStructureProvider.vb (1)
25type:=BlockTypes.Type, isCollapsible:=True))
Structure\Providers\EventDeclarationStructureProvider.vb (1)
25type:=BlockTypes.Member, isCollapsible:=True))
Structure\Providers\ForBlockStructureProvider.vb (1)
21type:=BlockTypes.Loop, isCollapsible:=True))
Structure\Providers\ForEachBlockStructureProvider.vb (1)
21type:=BlockTypes.Loop, isCollapsible:=True))
Structure\Providers\InterpolatedStringExpressionStructureProvider.vb (1)
25type:=BlockTypes.Expression,
Structure\Providers\MethodDeclarationStructureProvider.vb (1)
25type:=BlockTypes.Member, isCollapsible:=True))
Structure\Providers\MultiLineIfBlockStructureProvider.vb (1)
21type:=BlockTypes.Conditional, isCollapsible:=True))
Structure\Providers\MultilineLambdaStructureProvider.vb (1)
22type:=BlockTypes.Expression, isCollapsible:=True))
Structure\Providers\NamespaceDeclarationStructureProvider.vb (1)
25type:=BlockTypes.Namespace, isCollapsible:=True))
Structure\Providers\ObjectCreationInitializerStructureProvider.vb (1)
36type:=BlockTypes.Expression))
Structure\Providers\OperatorDeclarationStructureProvider.vb (1)
25type:=BlockTypes.Member, isCollapsible:=True))
Structure\Providers\PropertyDeclarationStructureProvider.vb (1)
25type:=BlockTypes.Member, isCollapsible:=True))
Structure\Providers\RegionDirectiveStructureProvider.vb (1)
48type:=BlockTypes.PreprocessorRegion,
Structure\Providers\SelectBlockStructureProvider.vb (1)
21type:=BlockTypes.Conditional, isCollapsible:=True))
Structure\Providers\StringLiteralExpressionStructureProvider.vb (1)
22type:=BlockTypes.Expression,
Structure\Providers\SyncLockBlockStructureProvider.vb (1)
21type:=BlockTypes.Statement, isCollapsible:=True))
Structure\Providers\TryBlockStructureProvider.vb (1)
21type:=BlockTypes.Statement, isCollapsible:=True))
Structure\Providers\TypeDeclarationStructureProvider.vb (1)
25type:=BlockTypes.Type, isCollapsible:=True))
Structure\Providers\UsingBlockStructureProvider.vb (1)
21type:=BlockTypes.Statement, isCollapsible:=True))
Structure\Providers\WhileBlockStructureProvider.vb (1)
21type:=BlockTypes.Loop, isCollapsible:=True))
Structure\Providers\WithBlockStructureProvider.vb (1)
21type:=BlockTypes.Statement, isCollapsible:=True))
Structure\Providers\XmlExpressionStructureProvider.vb (1)
32type:=BlockTypes.Expression,
Structure\VisualBasicStructureHelpers.vb (2)
33type:=BlockTypes.Comment, 117type:=BlockTypes.Comment,