125 references to BlockTypes
Microsoft.CodeAnalysis.CSharp.Features (49)
Structure\CSharpStructureHelpers.cs (2)
182
type:
BlockTypes
.Comment,
277
type:
BlockTypes
.Comment,
Structure\Providers\AccessorDeclarationStructureProvider.cs (1)
45
type:
BlockTypes
.Member,
Structure\Providers\AnonymousMethodExpressionStructureProvider.cs (1)
45
type:
BlockTypes
.Expression,
Structure\Providers\ArrowExpressionClauseStructureProvider.cs (1)
29
type:
BlockTypes
.Nonstructural,
Structure\Providers\BlockSyntaxStructureProvider.cs (17)
135
case SyntaxKind.ForStatement: return
BlockTypes
.Loop;
136
case SyntaxKind.ForEachStatement: return
BlockTypes
.Loop;
137
case SyntaxKind.ForEachVariableStatement: return
BlockTypes
.Loop;
138
case SyntaxKind.WhileStatement: return
BlockTypes
.Loop;
139
case SyntaxKind.DoStatement: return
BlockTypes
.Loop;
141
case SyntaxKind.TryStatement: return
BlockTypes
.Statement;
142
case SyntaxKind.CatchClause: return
BlockTypes
.Statement;
143
case SyntaxKind.FinallyClause: return
BlockTypes
.Statement;
145
case SyntaxKind.UnsafeStatement: return
BlockTypes
.Statement;
146
case SyntaxKind.FixedStatement: return
BlockTypes
.Statement;
147
case SyntaxKind.LockStatement: return
BlockTypes
.Statement;
148
case SyntaxKind.UsingStatement: return
BlockTypes
.Statement;
150
case SyntaxKind.IfStatement: return
BlockTypes
.Conditional;
151
case SyntaxKind.ElseClause: return
BlockTypes
.Conditional;
152
case SyntaxKind.SwitchSection: return
BlockTypes
.Conditional;
154
case SyntaxKind.Block: return
BlockTypes
.Statement;
156
case SyntaxKind.LocalFunctionStatement: return
BlockTypes
.Statement;
Structure\Providers\CompilationUnitStructureProvider.cs (1)
36
type:
BlockTypes
.Imports,
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
45
type:
BlockTypes
.Member,
Structure\Providers\ConversionOperatorDeclarationStructureProvider.cs (1)
47
type:
BlockTypes
.Member,
Structure\Providers\DestructorDeclarationStructureProvider.cs (1)
36
type:
BlockTypes
.Member,
Structure\Providers\DisabledTextTriviaStructureProvider.cs (1)
63
type:
BlockTypes
.PreprocessorRegion,
Structure\Providers\DocumentationCommentStructureProvider.cs (1)
45
type:
BlockTypes
.Comment,
Structure\Providers\EnumDeclarationStructureProvider.cs (1)
40
type:
BlockTypes
.Member,
Structure\Providers\EventDeclarationStructureProvider.cs (1)
46
type:
BlockTypes
.Member,
Structure\Providers\FileScopedNamespaceDeclarationStructureProvider.cs (1)
37
type:
BlockTypes
.Imports, isCollapsible: true, isDefaultCollapsed: options.CollapseImportsWhenFirstOpened));
Structure\Providers\IfDirectiveTriviaStructureProvider.cs (1)
57
type:
BlockTypes
.PreprocessorRegion,
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
46
type:
BlockTypes
.Member,
Structure\Providers\InitializerExpressionStructureProvider.cs (2)
48
type:
BlockTypes
.Expression));
66
type:
BlockTypes
.Expression));
Structure\Providers\InterpolatedStringExpressionStructureProvider.cs (1)
31
type:
BlockTypes
.Expression,
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
45
type:
BlockTypes
.Member,
Structure\Providers\MultilineCommentBlockStructureProvider.cs (1)
24
type:
BlockTypes
.Comment,
Structure\Providers\NamespaceDeclarationStructureProvider.cs (2)
33
type:
BlockTypes
.Namespace,
50
type:
BlockTypes
.Imports, isCollapsible: true, isDefaultCollapsed: options.CollapseImportsWhenFirstOpened));
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
45
type:
BlockTypes
.Member,
Structure\Providers\ParenthesizedLambdaExpressionStructureProvider.cs (1)
46
type:
BlockTypes
.Expression,
Structure\Providers\PropertyDeclarationStructureProvider.cs (1)
45
type:
BlockTypes
.Member,
Structure\Providers\RegionDirectiveStructureProvider.cs (1)
55
type:
BlockTypes
.PreprocessorRegion,
Structure\Providers\SimpleLambdaExpressionStructureProvider.cs (1)
46
type:
BlockTypes
.Expression,
Structure\Providers\StringLiteralExpressionStructureProvider.cs (1)
28
type:
BlockTypes
.Expression,
Structure\Providers\SwitchStatementStructureProvider.cs (2)
26
type:
BlockTypes
.Conditional));
39
type:
BlockTypes
.Statement));
Structure\Providers\TypeDeclarationStructureProvider.cs (1)
49
type:
BlockTypes
.Type,
Microsoft.CodeAnalysis.EditorFeatures (11)
Structure\StructureTag.cs (11)
105
BlockTypes
.Conditional => PredefinedStructureTagTypes.Conditional,
106
BlockTypes
.Comment => PredefinedStructureTagTypes.Comment,
107
BlockTypes
.Expression => PredefinedStructureTagTypes.Expression,
108
BlockTypes
.Imports => PredefinedStructureTagTypes.Imports,
109
BlockTypes
.Loop => PredefinedStructureTagTypes.Loop,
110
BlockTypes
.Member => PredefinedStructureTagTypes.Member,
111
BlockTypes
.Namespace => PredefinedStructureTagTypes.Namespace,
112
BlockTypes
.Nonstructural => PredefinedStructureTagTypes.Nonstructural,
113
BlockTypes
.PreprocessorRegion => PredefinedStructureTagTypes.PreprocessorRegion,
114
BlockTypes
.Statement => PredefinedStructureTagTypes.Statement,
115
BlockTypes
.Type => PredefinedStructureTagTypes.Type,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxStructureProviderTests.cs (1)
99
type:
BlockTypes
.Nonstructural,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Structure\BlockSpanTests.cs (3)
25
type:
BlockTypes
.Nonstructural, bannerText: bannerText, autoCollapse: autoCollapse);
43
type:
BlockTypes
.Nonstructural, bannerText: bannerText, autoCollapse: autoCollapse);
57
type:
BlockTypes
.Nonstructural, bannerText: bannerText, autoCollapse: autoCollapse);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (11)
Structure\FSharpBlockTypes.cs (11)
14
public static string Nonstructural =>
BlockTypes
.Nonstructural;
17
public static string Comment =>
BlockTypes
.Comment;
18
public static string PreprocessorRegion =>
BlockTypes
.PreprocessorRegion;
21
public static string Imports =>
BlockTypes
.Imports;
22
public static string Namespace =>
BlockTypes
.Namespace;
23
public static string Type =>
BlockTypes
.Type;
24
public static string Member =>
BlockTypes
.Member;
27
public static string Statement =>
BlockTypes
.Statement;
28
public static string Conditional =>
BlockTypes
.Conditional;
29
public static string Loop =>
BlockTypes
.Loop;
31
public static string Expression =>
BlockTypes
.Expression;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (11)
Structure\OmniSharpBlockTypes.cs (11)
12
public static string Nonstructural =>
BlockTypes
.Nonstructural;
15
public static string Comment =>
BlockTypes
.Comment;
16
public static string PreprocessorRegion =>
BlockTypes
.PreprocessorRegion;
19
public static string Imports =>
BlockTypes
.Imports;
20
public static string Namespace =>
BlockTypes
.Namespace;
21
public static string Type =>
BlockTypes
.Type;
22
public static string Member =>
BlockTypes
.Member;
25
public static string Statement =>
BlockTypes
.Statement;
26
public static string Conditional =>
BlockTypes
.Conditional;
27
public static string Loop =>
BlockTypes
.Loop;
29
public 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)
92
var isTopLevel =
BlockTypes
.IsDeclarationLevelConstruct(type);
93
var isMemberLevel =
BlockTypes
.IsCodeLevelConstruct(type);
94
var isComment =
BlockTypes
.IsCommentOrPreprocessorRegion(type);
100
type =
BlockTypes
.Nonstructural;
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\FoldingRanges\FoldingRangesHandler.cs (3)
93
BlockTypes
.Comment => FoldingRangeKind.Comment,
94
BlockTypes
.Imports => FoldingRangeKind.Imports,
95
BlockTypes
.PreprocessorRegion => FoldingRangeKind.Region,
Microsoft.CodeAnalysis.VisualBasic.Features (31)
Structure\Providers\AccessorDeclarationStructureProvider.vb (1)
25
autoCollapse:=True, type:=
BlockTypes
.Member,
Structure\Providers\CollectionInitializerStructureProvider.vb (1)
46
type:=
BlockTypes
.Expression))
Structure\Providers\CompilationUnitStructureProvider.vb (1)
29
autoCollapse:=True, type:=
BlockTypes
.Imports, isCollapsible:=True,
Structure\Providers\ConstructorDeclarationStructureProvider.vb (1)
26
type:=
BlockTypes
.Member, isCollapsible:=True))
Structure\Providers\DisabledTextTriviaStructureProvider.vb (1)
28
type:=
BlockTypes
.PreprocessorRegion,
Structure\Providers\DocumentationCommentStructureProvider.vb (1)
41
autoCollapse:=True, type:=
BlockTypes
.Comment,
Structure\Providers\DoLoopBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Loop, isCollapsible:=True))
Structure\Providers\EnumDeclarationStructureProvider.vb (1)
25
type:=
BlockTypes
.Type, isCollapsible:=True))
Structure\Providers\EventDeclarationStructureProvider.vb (1)
25
type:=
BlockTypes
.Member, isCollapsible:=True))
Structure\Providers\ForBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Loop, isCollapsible:=True))
Structure\Providers\ForEachBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Loop, isCollapsible:=True))
Structure\Providers\InterpolatedStringExpressionStructureProvider.vb (1)
25
type:=
BlockTypes
.Expression,
Structure\Providers\MethodDeclarationStructureProvider.vb (1)
25
type:=
BlockTypes
.Member, isCollapsible:=True))
Structure\Providers\MultiLineIfBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Conditional, isCollapsible:=True))
Structure\Providers\MultilineLambdaStructureProvider.vb (1)
22
type:=
BlockTypes
.Expression, isCollapsible:=True))
Structure\Providers\NamespaceDeclarationStructureProvider.vb (1)
25
type:=
BlockTypes
.Namespace, isCollapsible:=True))
Structure\Providers\ObjectCreationInitializerStructureProvider.vb (1)
36
type:=
BlockTypes
.Expression))
Structure\Providers\OperatorDeclarationStructureProvider.vb (1)
25
type:=
BlockTypes
.Member, isCollapsible:=True))
Structure\Providers\PropertyDeclarationStructureProvider.vb (1)
25
type:=
BlockTypes
.Member, isCollapsible:=True))
Structure\Providers\RegionDirectiveStructureProvider.vb (1)
48
type:=
BlockTypes
.PreprocessorRegion,
Structure\Providers\SelectBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Conditional, isCollapsible:=True))
Structure\Providers\StringLiteralExpressionStructureProvider.vb (1)
22
type:=
BlockTypes
.Expression,
Structure\Providers\SyncLockBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Statement, isCollapsible:=True))
Structure\Providers\TryBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Statement, isCollapsible:=True))
Structure\Providers\TypeDeclarationStructureProvider.vb (1)
25
type:=
BlockTypes
.Type, isCollapsible:=True))
Structure\Providers\UsingBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Statement, isCollapsible:=True))
Structure\Providers\WhileBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Loop, isCollapsible:=True))
Structure\Providers\WithBlockStructureProvider.vb (1)
21
type:=
BlockTypes
.Statement, isCollapsible:=True))
Structure\Providers\XmlExpressionStructureProvider.vb (1)
32
type:=
BlockTypes
.Expression,
Structure\VisualBasicStructureHelpers.vb (2)
33
type:=
BlockTypes
.Comment,
117
type:=
BlockTypes
.Comment,