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