77 references to BlockTypes
Microsoft.CodeAnalysis.CSharp.Features (61)
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)); 71type: 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\ParameterListStructureProvider.cs (1)
22type: BlockTypes.Expression,
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.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;