4 overrides of BlockStatement
Microsoft.CodeAnalysis.VisualBasic (4)
Syntax\TypeBlockSyntax.vb (4)
68
Public Overrides ReadOnly Property
BlockStatement
As TypeStatementSyntax
120
Public Overrides ReadOnly Property
BlockStatement
As TypeStatementSyntax
172
Public Overrides ReadOnly Property
BlockStatement
As TypeStatementSyntax
224
Public Overrides ReadOnly Property
BlockStatement
As TypeStatementSyntax
101 references to BlockStatement
Microsoft.CodeAnalysis.VisualBasic (25)
Binding\Binder_Utils.vb (1)
1214
If containingTypeBLock IsNot Nothing AndAlso FindFirstKeyword(containingTypeBLock.
BlockStatement
.Modifiers, s_notInheritableKeyword).Kind = SyntaxKind.None Then
Compilation\SemanticModel.vb (1)
2558
Return GetDeclaredSymbol(declarationSyntax.
BlockStatement
, cancellationToken)
Compilation\SyntaxTreeSemanticModel.vb (2)
1036
Dim containingType = DirectCast(GetDeclaredSymbol(parentTypeBlock.
BlockStatement
, cancellationToken), NamedTypeSymbol)
1202
Dim containingType = DirectCast(GetDeclaredSymbol(parentTypeBlock.
BlockStatement
, cancellationToken), NamedTypeSymbol)
Declarations\DeclarationTreeBuilder.vb (3)
487
Dim declarationSyntax As TypeStatementSyntax = typeBlockSyntax.
BlockStatement
505
Dim quickAttributes = GetQuickAttributes(typeBlockSyntax.
BlockStatement
.AttributeLists)
515
nameLocation:=_syntaxTree.GetLocation(typeBlockSyntax.
BlockStatement
.Identifier.Span),
Declarations\MergedTypeDeclaration.vb (1)
91
attributeSyntaxList = DirectCast(node, TypeBlockSyntax).
BlockStatement
.AttributeLists
Symbols\Source\SourceNamedTypeSymbol.vb (11)
131
Return DirectCast(node, TypeBlockSyntax).
BlockStatement
.Identifier
415
modifiers = typeBlock.
BlockStatement
.Modifiers
416
id = typeBlock.
BlockStatement
.Identifier
422
modifiers = typeBlock.
BlockStatement
.Modifiers
423
id = typeBlock.
BlockStatement
.Identifier
429
modifiers = typeBlock.
BlockStatement
.Modifiers
430
id = typeBlock.
BlockStatement
.Identifier
436
modifiers = typeBlock.
BlockStatement
.Modifiers
437
id = typeBlock.
BlockStatement
.Identifier
658
modifiers = DirectCast(node, TypeBlockSyntax).
BlockStatement
.Modifiers
943
Return DirectCast(syntax, TypeBlockSyntax).
BlockStatement
.TypeParameterList
Syntax\SyntaxFacts.vb (1)
348
beginStatement = typeBlock.
BlockStatement
Syntax\SyntaxNormalizer.vb (2)
835
AddLinebreaksAfterTokenIfNeeded(node.
BlockStatement
.GetLastToken(), 2)
837
AddLinebreaksAfterTokenIfNeeded(node.
BlockStatement
.GetLastToken(), 1)
Syntax\TypeBlockSyntax.vb (2)
25
''' Returns a copy of this <see cref="TypeBlockSyntax"/> with the <see cref="
BlockStatement
"/> property changed to the
40
Return
BlockStatement
VisualBasicDeclarationComputer.vb (1)
143
Dim attributes = GetAttributes(typeBlock.
BlockStatement
.AttributeLists)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (10)
StatementSyntaxExtensions.vb (7)
21
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.AttributeLists
82
Dim newBegin = DirectCast(typeBlock.
BlockStatement
.WithAttributeLists(attributeLists), TypeStatementSyntax)
166
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.Modifiers
311
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.Identifier
400
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.TypeParameterList
576
Return DirectCast(statement, TypeBlockSyntax).
BlockStatement
662
Return DirectCast(statement, TypeBlockSyntax).
BlockStatement
SyntaxNodeExtensions.vb (2)
1259
begin = DirectCast(parent, TypeBlockSyntax).
BlockStatement
1300
begin = DirectCast(parent, TypeBlockSyntax).
BlockStatement
VisualBasicHeaderFacts.vb (1)
30
Dim typeStatement = typeBlock.
BlockStatement
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
TypeBlockSyntaxExtensions.vb (6)
19
Dim start = destination.
BlockStatement
.Span.End
22
indices.Add(Not destination.OverlapsHiddenPosition(destination.
BlockStatement
, destination.EndBlockStatement, cancellationToken))
26
indices.Add(Not destination.OverlapsHiddenPosition(destination.
BlockStatement
, destination.Members.First, cancellationToken))
83
destinationType.
BlockStatement
.GetTrailingTrivia().Any(Function(t) t.Kind = SyntaxKind.ColonTrivia) Then
84
Return ReplaceTrailingColonToEndOfLineTrivia(destinationType.
BlockStatement
)
87
Return destinationType.
BlockStatement
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
AutomaticEndConstructCorrection\AutomaticEndConstructCorrector.vb (1)
205
Function(context As TypeBlockSyntax) context.
BlockStatement
,
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
260
statement = typeBlock.
BlockStatement
Microsoft.CodeAnalysis.VisualBasic.Features (15)
CodeRefactorings\VisualBasicRefactoringHelpersService.vb (1)
33
typeDecl.
BlockStatement
.Span.End))
EditAndContinue\SyntaxComparer.vb (1)
1221
Return DirectCast(node, TypeBlockSyntax).
BlockStatement
.Identifier
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
1535
Return GetDiagnosticSpan(DirectCast(node, TypeBlockSyntax).
BlockStatement
)
ExtractInterface\VisualBasicExtractInterfaceService.vb (4)
42
Dim spanStart = typeDeclaration.
BlockStatement
.Identifier.SpanStart
43
Dim spanEnd = If(typeDeclaration.
BlockStatement
.TypeParameterList IsNot Nothing, typeDeclaration.
BlockStatement
.TypeParameterList.Span.End, typeDeclaration.
BlockStatement
.Identifier.Span.End)
ExtractMethod\VisualBasicSelectionResult.vb (1)
301
Return types.Any(Function(t) t.
BlockStatement
.Kind = SyntaxKind.ModuleStatement)
GenerateDefaultConstructors\VisualBasicGenerateDefaultConstructorsCodeFixProvider.vb (1)
29
Return TryCast(typeDeclaration, TypeBlockSyntax)?.
BlockStatement
.Identifier
GenerateType\VisualBasicGenerateTypeService.vb (1)
400
Return If(typeBlock Is Nothing, Nothing, TryCast(semanticModel.GetDeclaredSymbol(typeBlock.
BlockStatement
, cancellationToken), INamedTypeSymbol))
Highlighting\KeywordHighlighters\TypeBlockHighlighter.vb (1)
39
With .
BlockStatement
ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
78
classOrStructType = model.GetDeclaredSymbol(classOrStructBlock.
BlockStatement
, cancellationToken)
InheritanceMargin\VisualBasicInheritanceMarginService.vb (1)
31
builder.AddRange(typeBlockNodes.Select(Function(node) node.
BlockStatement
))
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
24
document.SemanticModel.GetDeclaredSymbol(oldTypeDeclaration.
BlockStatement
, cancellationToken),
VisualBasicDeclarationComputer.vb (1)
143
Dim attributes = GetAttributes(typeBlock.
BlockStatement
.AttributeLists)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\SemanticModelAPITests.vb (1)
1191
Return DirectCast(SyntaxFactory.ParseCompilationUnit(source + " Class X" + vbCrLf + "End Class").Members.First(), TypeBlockSyntax).
BlockStatement
.AttributeLists.First().Attributes.First()
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
411
sym2 = model1.GetDeclaredSymbol(DirectCast(tb.
BlockStatement
, VisualBasicSyntaxNode))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Parser\ParseDeclarationTests.vb (1)
997
Assert.Equal("(Of T1, T2)" + vbLf, DirectCast(root.Members(1), TypeBlockSyntax).
BlockStatement
.Identifier.TrailingTrivia.Node.ToFullString)
TestSyntaxNodes.vb (2)
2260
Dim classStatement = classDecl.
BlockStatement
2279
Dim classStatement2 = classDecl2.
BlockStatement
Microsoft.CodeAnalysis.VisualBasic.Workspaces (18)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (2)
145
Dim blockStatement = typeDeclaration.
BlockStatement
223
typeBlock.
BlockStatement
.Identifier.ValueText,
StatementSyntaxExtensions.vb (7)
21
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.AttributeLists
82
Dim newBegin = DirectCast(typeBlock.
BlockStatement
.WithAttributeLists(attributeLists), TypeStatementSyntax)
166
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.Modifiers
311
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.Identifier
400
Return DirectCast(member, TypeBlockSyntax).
BlockStatement
.TypeParameterList
576
Return DirectCast(statement, TypeBlockSyntax).
BlockStatement
662
Return DirectCast(statement, TypeBlockSyntax).
BlockStatement
SyntaxNodeExtensions.vb (2)
1259
begin = DirectCast(parent, TypeBlockSyntax).
BlockStatement
1300
begin = DirectCast(parent, TypeBlockSyntax).
BlockStatement
TypeBlockSyntaxExtensions.vb (6)
19
Dim start = destination.
BlockStatement
.Span.End
22
indices.Add(Not destination.OverlapsHiddenPosition(destination.
BlockStatement
, destination.EndBlockStatement, cancellationToken))
26
indices.Add(Not destination.OverlapsHiddenPosition(destination.
BlockStatement
, destination.Members.First, cancellationToken))
83
destinationType.
BlockStatement
.GetTrailingTrivia().Any(Function(t) t.Kind = SyntaxKind.ColonTrivia) Then
84
Return ReplaceTrailingColonToEndOfLineTrivia(destinationType.
BlockStatement
)
87
Return destinationType.
BlockStatement
VisualBasicHeaderFacts.vb (1)
30
Dim typeStatement = typeBlock.
BlockStatement
Microsoft.VisualStudio.LanguageServices.VisualBasic (20)
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (4)
396
If Not StringComparer.OrdinalIgnoreCase.Equals(oldType.
BlockStatement
.Identifier.ToString(), newType.
BlockStatement
.Identifier.ToString()) Then
427
GetAttributes(oldType.
BlockStatement
.AttributeLists),
428
GetAttributes(newType.
BlockStatement
.AttributeLists),
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (10)
285
If typeBlock.
BlockStatement
.Modifiers.Count > 0 Then
286
Return typeBlock.
BlockStatement
.Modifiers.First().SpanStart
288
Return typeBlock.
BlockStatement
.DeclarationKeyword.SpanStart
305
startPosition = typeBlock.
BlockStatement
.Identifier.SpanStart
308
Return GetAttributesStartPoint(text, typeBlock.
BlockStatement
.AttributeLists, part)
319
Dim statement As StatementSyntax = typeBlock.
BlockStatement
350
Return NavigationPointHelpers.GetNavigationPoint(text, options.TabSize, typeBlock.
BlockStatement
, statementLine.LineNumber + 1)
365
startPosition = typeBlock.
BlockStatement
.Identifier.Span.End
368
Return GetAttributesEndPoint(text, typeBlock.
BlockStatement
.AttributeLists, part)
371
startPosition = typeBlock.
BlockStatement
.Span.End
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (1)
139
Dim typeStatement = typeBlock.
BlockStatement
CodeModel\VisualBasicCodeModelService.vb (5)
376
Return GetAttributeNodes(DirectCast(node, TypeBlockSyntax).
BlockStatement
.AttributeLists)
893
Return DirectCast(node, TypeBlockSyntax).
BlockStatement
.Identifier.ToString()
1027
Return DirectCast(node, TypeBlockSyntax).
BlockStatement
4066
Dim parentName = parentTypeBlock.
BlockStatement
.Identifier.ToString()
4094
Dim parentName = parentTypeBlock.
BlockStatement
.Identifier.ToString()