4 types derived from MethodBlockBaseSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Syntax.Generated.vb (4)
5365Inherits MethodBlockBaseSyntax 5530Inherits MethodBlockBaseSyntax 5692Inherits MethodBlockBaseSyntax 5859Inherits MethodBlockBaseSyntax
4 instantiations of MethodBlockBaseSyntax
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Syntax.Generated.vb (4)
5371MyBase.New(green, parent, startLocation) 5536MyBase.New(green, parent, startLocation) 5698MyBase.New(green, parent, startLocation) 5865MyBase.New(green, parent, startLocation)
287 references to MethodBlockBaseSyntax
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Simplification\TypeNameSimplifierTest.vb (2)
4254If TypeOf node Is MethodBlockBaseSyntax Then 4255node = DirectCast(node, MethodBlockBaseSyntax).Statements.Single()
Microsoft.CodeAnalysis.VisualBasic (61)
Binding\AttributeSemanticModel.vb (1)
85Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As SyntaxTreeSemanticModel, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Binding\Binder_Statements.vb (3)
148Return BindMethodBlock(DirectCast(node, MethodBlockBaseSyntax), diagnostics) 291Private Function BindMethodBlock(methodBlock As MethodBlockBaseSyntax, diagnostics As BindingDiagnosticBag) As BoundBlock 5168If TypeOf curSyntax Is MethodBlockBaseSyntax Then
Binding\Binder_Utils.vb (1)
1279If TypeOf containingSyntax.Parent Is MethodBlockBaseSyntax OrElse TypeOf containingSyntax.Parent Is PropertyBlockSyntax Then
Binding\BinderFactory.BinderFactoryVisitor.vb (2)
79Dim possibleParentBlock = TryCast(methodBaseSyntax.Parent, MethodBlockBaseSyntax) 209Private Function VisitMethodBlockBase(methodBlockSyntax As MethodBlockBaseSyntax, begin As MethodBaseSyntax) As Binder
Binding\BinderFactory.vb (1)
477If nodeForOuterBinder IsNot Nothing AndAlso TypeOf (nodeForOuterBinder) Is MethodBlockBaseSyntax Then
Binding\InitializerSemanticModel.vb (1)
224Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As SyntaxTreeSemanticModel, position As Integer, body As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Binding\LocalBinderBuilder.vb (1)
110Private Sub VisitMethodBlockBase(methodBlock As MethodBlockBaseSyntax)
Binding\MethodBodyBinder.vb (1)
46Dim methodBlock = TryCast(root, MethodBlockBaseSyntax)
Binding\MethodBodySemanticModel.vb (1)
35Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As SyntaxTreeSemanticModel, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Binding\SpeculativeMemberSemanticModel.vb (1)
26Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As SyntaxTreeSemanticModel, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (1)
70Private Sub VisitMethodBlockBase(node As Syntax.MethodBlockBaseSyntax)
Compilation\SemanticModel.vb (5)
2150Public Function TryGetSpeculativeSemanticModelForMethodBody(position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As SemanticModel) As Boolean 2161Friend MustOverride Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As SyntaxTreeSemanticModel, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean 2664Public Overloads Function GetDeclaredSymbol(declarationSyntax As MethodBlockBaseSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol 3316Return Me.GetDeclaredSymbol(DirectCast(node, MethodBlockBaseSyntax), cancellationToken) 3539If declaringSyntax.Parent IsNot Nothing AndAlso TypeOf declaringSyntax.Parent Is MethodBlockBaseSyntax Then
Compilation\SpeculativeSemanticModelWithMemberModel.vb (1)
301Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As SyntaxTreeSemanticModel, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Compilation\SyntaxTreeSemanticModel.vb (2)
358Dim methodBlock = TryCast(node, MethodBlockBaseSyntax) 1425Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As SyntaxTreeSemanticModel, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Declarations\DeclarationTreeBuilder.vb (1)
638Dim methodDecl = DirectCast(statement, MethodBlockBaseSyntax).BlockStatement
Generated\Syntax.xml.Syntax.Generated.vb (12)
5342Public Function WithStatements(statements As SyntaxList(Of StatementSyntax)) As MethodBlockBaseSyntax 5345Friend MustOverride Function WithStatementsCore(statements As SyntaxList(Of StatementSyntax)) As MethodBlockBaseSyntax 5347Public Shadows Function AddStatements(ParamArray items As StatementSyntax()) As MethodBlockBaseSyntax 5350Friend MustOverride Function AddStatementsCore(ParamArray items As StatementSyntax()) As MethodBlockBaseSyntax 5415Friend Overrides Function WithStatementsCore(statements As SyntaxList(Of StatementSyntax)) As MethodBlockBaseSyntax 5432Friend Overrides Function AddStatementsCore(ParamArray items As StatementSyntax()) As MethodBlockBaseSyntax 5580Friend Overrides Function WithStatementsCore(statements As SyntaxList(Of StatementSyntax)) As MethodBlockBaseSyntax 5597Friend Overrides Function AddStatementsCore(ParamArray items As StatementSyntax()) As MethodBlockBaseSyntax 5742Friend Overrides Function WithStatementsCore(statements As SyntaxList(Of StatementSyntax)) As MethodBlockBaseSyntax 5759Friend Overrides Function AddStatementsCore(ParamArray items As StatementSyntax()) As MethodBlockBaseSyntax 5910Friend Overrides Function WithStatementsCore(statements As SyntaxList(Of StatementSyntax)) As MethodBlockBaseSyntax 5927Friend Overrides Function AddStatementsCore(ParamArray items As StatementSyntax()) As MethodBlockBaseSyntax
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (1)
88Dim asMethod = TryCast(node.Syntax, MethodBlockBaseSyntax)
Operations\VisualBasicOperationFactory.vb (1)
1329Return TryCast(syntax.Parent, MethodBlockBaseSyntax)?.EndBlockStatement Is syntax OrElse
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2553Dim methodDecl = DirectCast(memberSyntax, MethodBlockBaseSyntax).BlockStatement
Symbols\Source\SourceMethodSymbol.vb (3)
745Friend ReadOnly Property BlockSyntax As MethodBlockBaseSyntax 752Return TryCast(decl.Parent, MethodBlockBaseSyntax) 1181Dim methodBlock As MethodBlockBaseSyntax = Me.BlockSyntax
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
187Dim asMethod = TryCast(node, MethodBlockBaseSyntax)
Syntax\MethodBlockBaseSyntax.vb (14)
25''' Returns a copy of this <see cref="MethodBlockBaseSyntax"/> with the <see cref="BlockStatement"/> property changed to the 28Public MustOverride Function WithBlockStatement(blockStatement As MethodBaseSyntax) As MethodBlockBaseSyntax 31''' Returns a copy of this <see cref="MethodBlockBaseSyntax"/> with the <see cref="EndBlockStatement"/> property changed to the 34Public MustOverride Function WithEndBlockStatement(endBlockStatement As EndBlockStatementSyntax) As MethodBlockBaseSyntax 46Public Function WithBegin(begin As MethodBaseSyntax) As MethodBlockBaseSyntax 60Public Function WithEnd([end] As EndBlockStatementSyntax) As MethodBlockBaseSyntax 80Public Overrides Function WithBlockStatement(blockStatement As MethodBaseSyntax) As MethodBlockBaseSyntax 84Public Overrides Function WithEndBlockStatement(endBlockStatement As EndBlockStatementSyntax) As MethodBlockBaseSyntax 132Public Overrides Function WithBlockStatement(blockStatement As MethodBaseSyntax) As MethodBlockBaseSyntax 136Public Overrides Function WithEndBlockStatement(endBlockStatement As EndBlockStatementSyntax) As MethodBlockBaseSyntax 184Public Overrides Function WithBlockStatement(blockStatement As MethodBaseSyntax) As MethodBlockBaseSyntax 188Public Overrides Function WithEndBlockStatement(endBlockStatement As EndBlockStatementSyntax) As MethodBlockBaseSyntax 236Public Overrides Function WithBlockStatement(blockStatement As MethodBaseSyntax) As MethodBlockBaseSyntax 240Public Overrides Function WithEndBlockStatement(endBlockStatement As EndBlockStatementSyntax) As MethodBlockBaseSyntax
Syntax\SyntaxFacts.vb (1)
363Dim methodBlock = DirectCast(possibleBlock, MethodBlockBaseSyntax)
Syntax\VisualBasicSyntaxNode.vb (1)
486Return TypeOf Me Is MethodBlockBaseSyntax
VisualBasicDeclarationComputer.vb (1)
155Dim methodBlock = TryCast(node, MethodBlockBaseSyntax)
VisualBasicExtensions.vb (2)
1136Public Function GetDeclaredSymbol(semanticModel As SemanticModel, declarationSyntax As MethodBlockBaseSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol 1823Public Function TryGetSpeculativeSemanticModelForMethodBody(semanticModel As SemanticModel, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As SemanticModel) As Boolean
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (28)
NodeBasedFormattingRule.vb (1)
353Dim [method] = TryCast(node, MethodBlockBaseSyntax)
StatementSyntaxExtensions.vb (6)
52Return DirectCast(member, MethodBlockBaseSyntax).BlockStatement.AttributeLists 123Dim methodBlock = DirectCast(member, MethodBlockBaseSyntax) 195Return DirectCast(member, MethodBlockBaseSyntax).BlockStatement.Modifiers 433Return DirectCast(member, MethodBlockBaseSyntax).BlockStatement.ParameterList 583Return DirectCast(statement, MethodBlockBaseSyntax).BlockStatement 669Return DirectCast(statement, MethodBlockBaseSyntax).BlockStatement
SyntaxNodeExtensions.vb (10)
117Dim methodBlock = TryCast(node, MethodBlockBaseSyntax) 474If TypeOf node Is MethodBlockBaseSyntax OrElse 533If TypeOf node Is MethodBlockBaseSyntax Then 534Return DirectCast(node, MethodBlockBaseSyntax).Statements 886Dim block = TryCast(node, MethodBlockBaseSyntax) 909Public Function ContainsInMethodBlockBody(block As MethodBlockBaseSyntax, textSpan As TextSpan) As Boolean 945Dim method = TryCast(node, MethodBlockBaseSyntax) 1207Return DirectCast(node, MethodBlockBaseSyntax).BlockStatement.AttributeLists 1267begin = DirectCast(parent, MethodBlockBaseSyntax).BlockStatement 1308begin = DirectCast(parent, MethodBlockBaseSyntax).BlockStatement
VisualBasicRemoveUnusedParametersAndValuesDiagnosticAnalyzer.vb (1)
53Dim methodSyntax = TryCast(node.Parent, MethodBlockBaseSyntax)
VisualBasicSemanticFacts.vb (2)
116Dim oldMethod = TryCast(oldNode, MethodBlockBaseSyntax) 117Dim newMethod = TryCast(newNode, MethodBlockBaseSyntax)
VisualBasicSyntaxFacts.vb (8)
241Return TypeOf node Is MethodBlockBaseSyntax 722If TypeOf node Is MethodBlockBaseSyntax AndAlso Not TypeOf node.Parent Is PropertyBlockSyntax Then 726If TypeOf node Is MethodBaseSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 761If TypeOf node Is MethodStatementSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 765If TypeOf node Is SubNewStatementSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 769If TypeOf node Is OperatorStatementSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 801Dim method = TryCast(member, MethodBlockBaseSyntax) 824Dim method = TryCast(node, MethodBlockBaseSyntax)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
IsStatementTerminatingTokenVisitor.vb (1)
105Dim methodBlock = node.ReturnKeyword.GetAncestor(Of MethodBlockBaseSyntax)
SyntaxTreeExtensions.vb (1)
135Dim method = targetToken.GetAncestor(Of MethodBlockBaseSyntax)()
VisualBasicSyntaxContext.vb (1)
151Dim enclosingMethod = targetToken.GetAncestor(Of MethodBlockBaseSyntax)()
VisualBasicTypeInferenceService.TypeInferrer.vb (4)
732If returnStatement.GetAncestorOrThis(Of MethodBlockBaseSyntax) Is Nothing Then 736Dim memberSymbol = GetDeclaredMemberSymbolFromOriginalSemanticModel(SemanticModel, returnStatement.GetAncestor(Of MethodBlockBaseSyntax).BlockStatement) 763If yieldStatement.GetAncestorOrThis(Of MethodBlockBaseSyntax) Is Nothing Then 767Dim memberSymbol = GetDeclaredMemberSymbolFromOriginalSemanticModel(SemanticModel, yieldStatement.GetAncestor(Of MethodBlockBaseSyntax).BlockStatement)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (9)
AutomaticEndConstructCorrection\AutomaticEndConstructCorrector.vb (2)
208Function(context As MethodBlockBaseSyntax) context.BlockStatement, 243Function(context As MethodBlockBaseSyntax) context.EndBlockStatement.BlockKeyword,
EndConstructGeneration\EndConstructStatementVisitor.vb (2)
89Private Function HandleMethodBlockSyntax(methodBlock As MethodBlockBaseSyntax) As AbstractEndConstructResult 103Private Function TryGenerateResultForConstructorSpitWithInitializeComponent(methodBlock As MethodBlockBaseSyntax) As AbstractEndConstructResult
EndConstructGeneration\EndConstructStatementVisitor_LambdaHeader.vb (1)
119Dim containingMethodBlock = node.GetAncestor(Of MethodBlockBaseSyntax)()
NavigationBar\VisualBasicEditorNavigationBarItemService.vb (1)
57Dim methodBlock = root.FindToken(navigationLocation.position).GetAncestor(Of MethodBlockBaseSyntax)()
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
31Dim generatedNode = generatedTree.GetAnnotatedNodes(GeneratedSymbolAnnotation).Single().FirstAncestorOrSelf(Of MethodBlockBaseSyntax)
Utilities\NavigationPointHelpers.vb (2)
23Public Function GetNavigationPoint(text As SourceText, indentSize As Integer, methodBlock As MethodBlockBaseSyntax) As VirtualTreePoint 42Public Function GetHeaderStartPosition(methodBlock As MethodBlockBaseSyntax) As Integer
Microsoft.CodeAnalysis.VisualBasic.Features (52)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (2)
143(Function(n As MethodBlockBaseSyntax) n.BlockStatement), 163(Function(n As MethodBlockBaseSyntax) n.EndBlockStatement),
CodeRefactorings\AddAwait\VisualBasicAddAwaitCodeRefactoringProvider.vb (1)
39Return DirectCast(current, MethodBlockBaseSyntax).BlockStatement.Modifiers.Any(SyntaxKind.AsyncKeyword)
Completion\CompletionProviders\OverrideCompletionProvider.vb (2)
47Dim methodBlock = token.GetAncestor(Of MethodBlockBaseSyntax)() 209Dim methodBlock = TryCast(node, MethodBlockBaseSyntax)
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (1)
158Private Shared Function VisitMethodBlockBase(node As MethodBlockBaseSyntax) As SyntaxKind?
Completion\KeywordRecommenders\Declarations\EventKeywordRecommender.vb (1)
37If targetToken.GetAncestor(Of MethodBlockBaseSyntax)() Is Nothing AndAlso
Completion\KeywordRecommenders\Expressions\MyClassKeywordRecommender.vb (1)
27Dim methodBlock = targetToken.GetAncestor(Of MethodBlockBaseSyntax)()
Debugging\BreakpointResolver.vb (1)
33Dim methodBlock = token.GetAncestor(Of MethodBlockBaseSyntax)()
Debugging\ProximityExpressionsGetter.Worker.vb (3)
103If TypeOf _parentStatement.Parent Is MethodBlockBaseSyntax Then 104Dim methodBlock = DirectCast(_parentStatement.Parent, MethodBlockBaseSyntax) 136Dim methodBlock = Me._parentStatement.GetAncestorOrThis(Of MethodBlockBaseSyntax)()
EditAndContinue\SyntaxUtilities.vb (2)
21If TypeOf syntax Is MethodBlockBaseSyntax Then 164Return DirectCast(declarationOrBody, MethodBlockBaseSyntax).BlockStatement.Modifiers
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (6)
110''' - <see cref="MethodBlockBaseSyntax"/> for methods, constructors, operators and accessors. 214Dim methodBlock = TryCast(memberBody, MethodBlockBaseSyntax) 713Debug.Assert((TypeOf oldBody Is MethodBlockBaseSyntax) = (TypeOf newBody Is MethodBlockBaseSyntax)) 721If TypeOf oldBody Is MethodBlockBaseSyntax Then 1559Return GetDiagnosticSpan(DirectCast(node, MethodBlockBaseSyntax).BlockStatement)
ExtractMethod\Extensions.vb (3)
315Public Function ContainsInMethodBlockBody(block As MethodBlockBaseSyntax, textSpan As TextSpan) As Boolean 330If TypeOf n Is MethodBlockBaseSyntax OrElse 352Return TypeOf node Is MethodBlockBaseSyntax OrElse
ExtractMethod\VisualBasicMethodExtractor.Analyzer.vb (1)
104Dim methodBlock = Me.SelectionResult.GetContainingScopeOf(Of MethodBlockBaseSyntax)()
ExtractMethod\VisualBasicMethodExtractor.TriviaResult.vb (4)
30Dim methodDefinition = TryCast(method, MethodBlockBaseSyntax) 39Dim methodDefinition = TryCast(method, MethodBlockBaseSyntax) 52method As MethodBlockBaseSyntax) As SyntaxToken 77method As MethodBlockBaseSyntax) As IEnumerable(Of SyntaxTrivia)
ExtractMethod\VisualBasicMethodExtractor.vb (1)
43enclosingTopLevelNode = basePosition.GetAncestor(Of MethodBlockBaseSyntax)()
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (1)
421Dim methodDefinition = root.GetAnnotatedNodes(Of MethodBlockBaseSyntax)(Me.MethodDefinitionAnnotation).First()
ExtractMethod\VisualBasicSelectionResult.vb (4)
100If TypeOf node Is MethodBlockBaseSyntax Then 101Dim methodBlock = DirectCast(node, MethodBlockBaseSyntax) 131Return first.GetAncestors(Of SyntaxNode).FirstOrDefault(Function(n) TypeOf n Is MethodBlockBaseSyntax OrElse TypeOf n Is LambdaExpressionSyntax) 153Dim methodBlock = TryCast(node, MethodBlockBaseSyntax)
ExtractMethod\VisualBasicSelectionValidator.vb (2)
624Dim match = If(TryCast(container, MethodBlockBaseSyntax)?.EndBlockStatement.EndKeyword = nextToken, False) OrElse 631If TryCast(container, MethodBlockBaseSyntax)?.BlockStatement.Kind = SyntaxKind.SubStatement Then
Highlighting\KeywordHighlighters\AccessorDeclarationHighlighter.vb (1)
23Dim methodBlock = node.GetAncestor(Of MethodBlockBaseSyntax)()
Highlighting\KeywordHighlighters\ConstructorDeclarationHighlighter.vb (1)
23Dim methodBlock = node.GetAncestor(Of MethodBlockBaseSyntax)()
Highlighting\KeywordHighlighters\MethodDeclarationHighlighter.vb (1)
23Dim methodBlock = node.GetAncestor(Of MethodBlockBaseSyntax)()
Highlighting\KeywordHighlighters\OperatorDeclarationHighlighter.vb (1)
23Dim methodBlock = node.GetAncestor(Of MethodBlockBaseSyntax)()
InitializeParameter\InitializeParameterHelpers.vb (3)
13Return TypeOf node Is MethodBlockBaseSyntax OrElse 22If TypeOf functionDeclaration Is MethodBlockBaseSyntax Then 23Dim methodBlock = DirectCast(functionDeclaration, MethodBlockBaseSyntax)
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.vb (2)
22Return TypeOf node IsNot MethodBlockBaseSyntax AndAlso 31If TypeOf node Is MethodBlockBaseSyntax OrElse
LineSeparators\VisualBasicLineSeparatorService.vb (1)
33TypeOf (node) Is MethodBlockBaseSyntax OrElse
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
80If TypeOf node Is MethodBlockBaseSyntax OrElse
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (3)
89DirectCast(getAndSetMethods.GetMethodDeclaration.Parent, MethodBlockBaseSyntax).Statements) 105DirectCast(getAndSetMethods.GetMethodDeclaration.Parent, MethodBlockBaseSyntax).Statements) 115DirectCast(getAndSetMethods.SetMethodDeclaration.Parent, MethodBlockBaseSyntax).Statements)
VisualBasicDeclarationComputer.vb (1)
155Dim methodBlock = TryCast(node, MethodBlockBaseSyntax)
VisualBasicRemoveUnusedParametersAndValuesDiagnosticAnalyzer.vb (1)
53Dim methodSyntax = TryCast(node.Parent, MethodBlockBaseSyntax)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Binding\ImplicitVariableTests.vb (4)
1013Dim main1 = tree.GetRoot().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().Single() 1017Dim main2 = compilation2.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().Single() 1055Dim main1 = tree.GetRoot().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().Single() 1059Dim main2 = compilation2.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().Single()
Compilation\SemanticModelAPITests.vb (3)
1443Private Shared Sub VerifySpeculativeSemanticModelForMethodBody(speculatedMethod As MethodBlockBaseSyntax, speculativeModel As SemanticModel) 1859Dim methodBlock = DirectCast(typeBlock.Members(1), MethodBlockBaseSyntax) 1901Dim methodBlock = DirectCast(typeBlock.Members(0), MethodBlockBaseSyntax)
Diagnostics\GetDiagnosticsTests.vb (1)
665Dim methodBlock = node.FirstAncestorOrSelf(Of MethodBlockBaseSyntax)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolDisplay\SymbolDisplayTests.vb (3)
5454Dim methodDecl = tree.GetCompilationUnitRoot().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().First() 5462methodDecl = tree.GetCompilationUnitRoot().DescendantNodes().OfType(Of MethodBlockBaseSyntax)().First() 6007Dim member = token.Parent.FirstAncestorOrSelf(Of MethodBlockBaseSyntax)()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (11)
Parser\ParseAsyncTests.vb (8)
106Dim firstStatementOfM = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax).First.Statements.First 111Dim firstStatementOfM2 = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax)()(1).Statements.First 116Dim firstStatementOfN = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax)()(2).Statements.First 121Dim firstStatementOfN2 = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax)()(3).Statements.First 217Dim firstStatementOfM = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax).First.Statements.First 222Dim firstStatementOfM2 = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax)()(1).Statements.First 227Dim firstStatementOfN = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax)()(2).Statements.First 232Dim firstStatementOfN2 = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax)()(3).Statements.First
Parser\ParseIteratorTests.vb (3)
156Dim methodSyntaxList = tree.GetRoot().DescendantNodes.OfType(Of MethodBlockBaseSyntax)().ToArray() 418Private Shared Function IsIteratorMethod(methodSyntax As MethodBlockBaseSyntax) As Boolean 423Return IsIteratorMethod(DirectCast(yieldStatement.Parent, MethodBlockBaseSyntax))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (62)
CodeGeneration\VisualBasicCodeGenerationHelpers.vb (2)
96Return members.LastOrDefault(Function(m) TypeOf m Is MethodBlockBaseSyntax OrElse TypeOf m Is MethodStatementSyntax) 108Return members.LastOrDefault(Function(m) TypeOf m Is MethodBlockBaseSyntax OrElse TypeOf m Is MethodStatementSyntax)
CodeGeneration\VisualBasicCodeGenerationService.vb (3)
214Dim methodBlock = TryCast(destinationMember, MethodBlockBaseSyntax) 252methodBlock As MethodBlockBaseSyntax, 466Dim methodBlock = TryCast(destinationMember, MethodBlockBaseSyntax)
CodeGeneration\VisualBasicDeclarationComparer.vb (1)
138Return DirectCast(node, MethodBlockBaseSyntax).BlockStatement
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
3234Return DirectCast(declaration, MethodBlockBaseSyntax).Statements
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (3)
211ElseIf TypeOf node Is MethodBlockBaseSyntax Then 212node = DirectCast(node, MethodBlockBaseSyntax).BlockStatement 542node = If(TryCast(node, MethodBlockBaseSyntax)?.BlockStatement, node)
Formatting\Rules\NodeBasedFormattingRule.vb (1)
353Dim [method] = TryCast(node, MethodBlockBaseSyntax)
IsStatementTerminatingTokenVisitor.vb (1)
105Dim methodBlock = node.ReturnKeyword.GetAncestor(Of MethodBlockBaseSyntax)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
135Dim method = targetToken.GetAncestor(Of MethodBlockBaseSyntax)()
Rename\LocalConflictVisitor.vb (1)
29Private Sub VisitMethodBlockBase(node As MethodBlockBaseSyntax)
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
703Dim methodBase = token.Parent.AncestorsAndSelf.Where(Function(s) TypeOf s Is MethodBlockBaseSyntax OrElse TypeOf s Is VariableDeclaratorSyntax) _ 748Function(s) TypeOf s Is MethodBlockBaseSyntax OrElse
SemanticModelReuse\VisualBasicSemanticModelReuseLanguageService.vb (3)
44Dim methodBlock = TryCast(node, MethodBlockBaseSyntax) 58Dim previousMethodBlockBaseNode = TryCast(previousBodyNode, MethodBlockBaseSyntax) 65If previousSemanticModel.TryGetSpeculativeSemanticModelForMethodBody(previousMethodBlockBaseNode.BlockStatement.FullSpan.End, DirectCast(currentBodyNode, MethodBlockBaseSyntax), speculativeModel) Then
Simplification\Reducers\AbstractVisualBasicReducer.AbstractReductionRewriter.vb (3)
203Private Function VisitMethodBlockBase(node As MethodBlockBaseSyntax, updateFunc As Func(Of SyntaxList(Of StatementSyntax), MethodBlockBaseSyntax)) As MethodBlockBaseSyntax
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
74Dim enclosingMethodBlock = parent.GetAncestor(Of MethodBlockBaseSyntax)()
Simplification\VisualBasicSimplificationService.NodesAndTokensToReduceComputer.vb (4)
151Private Function VisitMethodBlockBaseSyntax(node As MethodBlockBaseSyntax, updateFunc As Func(Of MethodBlockBaseSyntax, MethodBaseSyntax, SyntaxList(Of StatementSyntax), EndBlockStatementSyntax, MethodBlockBaseSyntax)) As MethodBlockBaseSyntax
Simplification\VisualBasicSimplificationService.vb (4)
82Dim methodBlockBase = TryCast(nodeToSpeculate, MethodBlockBaseSyntax) 95Dim originalMethod = DirectCast(originalNode, MethodBlockBaseSyntax) 141Dim originalMethod = TryCast(originalNode, MethodBlockBaseSyntax) 143Dim reducedMethod = DirectCast(reducedNode, MethodBlockBaseSyntax)
StatementSyntaxExtensions.vb (6)
52Return DirectCast(member, MethodBlockBaseSyntax).BlockStatement.AttributeLists 123Dim methodBlock = DirectCast(member, MethodBlockBaseSyntax) 195Return DirectCast(member, MethodBlockBaseSyntax).BlockStatement.Modifiers 433Return DirectCast(member, MethodBlockBaseSyntax).BlockStatement.ParameterList 583Return DirectCast(statement, MethodBlockBaseSyntax).BlockStatement 669Return DirectCast(statement, MethodBlockBaseSyntax).BlockStatement
SyntaxNodeExtensions.vb (10)
117Dim methodBlock = TryCast(node, MethodBlockBaseSyntax) 474If TypeOf node Is MethodBlockBaseSyntax OrElse 533If TypeOf node Is MethodBlockBaseSyntax Then 534Return DirectCast(node, MethodBlockBaseSyntax).Statements 886Dim block = TryCast(node, MethodBlockBaseSyntax) 909Public Function ContainsInMethodBlockBody(block As MethodBlockBaseSyntax, textSpan As TextSpan) As Boolean 945Dim method = TryCast(node, MethodBlockBaseSyntax) 1207Return DirectCast(node, MethodBlockBaseSyntax).BlockStatement.AttributeLists 1267begin = DirectCast(parent, MethodBlockBaseSyntax).BlockStatement 1308begin = DirectCast(parent, MethodBlockBaseSyntax).BlockStatement
VisualBasicSemanticFacts.vb (2)
116Dim oldMethod = TryCast(oldNode, MethodBlockBaseSyntax) 117Dim newMethod = TryCast(newNode, MethodBlockBaseSyntax)
VisualBasicSyntaxContext.vb (1)
151Dim enclosingMethod = targetToken.GetAncestor(Of MethodBlockBaseSyntax)()
VisualBasicSyntaxFacts.vb (8)
241Return TypeOf node Is MethodBlockBaseSyntax 722If TypeOf node Is MethodBlockBaseSyntax AndAlso Not TypeOf node.Parent Is PropertyBlockSyntax Then 726If TypeOf node Is MethodBaseSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 761If TypeOf node Is MethodStatementSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 765If TypeOf node Is SubNewStatementSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 769If TypeOf node Is OperatorStatementSyntax AndAlso Not TypeOf node.Parent Is MethodBlockBaseSyntax Then 801Dim method = TryCast(member, MethodBlockBaseSyntax) 824Dim method = TryCast(node, MethodBlockBaseSyntax)
VisualBasicTypeInferenceService.TypeInferrer.vb (4)
732If returnStatement.GetAncestorOrThis(Of MethodBlockBaseSyntax) Is Nothing Then 736Dim memberSymbol = GetDeclaredMemberSymbolFromOriginalSemanticModel(SemanticModel, returnStatement.GetAncestor(Of MethodBlockBaseSyntax).BlockStatement) 763If yieldStatement.GetAncestorOrThis(Of MethodBlockBaseSyntax) Is Nothing Then 767Dim memberSymbol = GetDeclaredMemberSymbolFromOriginalSemanticModel(SemanticModel, yieldStatement.GetAncestor(Of MethodBlockBaseSyntax).BlockStatement)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.vb (9)
816Dim declarations = syntaxTree.GetRoot().DescendantNodes().OfType(Of MethodBlockBaseSyntax) 1736VerifySyntax(Of MethodBlockBaseSyntax)( 1743VerifySyntax(Of MethodBlockBaseSyntax)( 1791VerifySyntax(Of MethodBlockBaseSyntax)( 1796VerifySyntax(Of MethodBlockBaseSyntax)( 1804VerifySyntax(Of MethodBlockBaseSyntax)( 1811VerifySyntax(Of MethodBlockBaseSyntax)( 1847VerifySyntax(Of MethodBlockBaseSyntax)( 1852VerifySyntax(Of MethodBlockBaseSyntax)(
Microsoft.VisualStudio.LanguageServices.VisualBasic (35)
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
692Public Shared Function Generate(methodBlock As MethodBlockBaseSyntax, semanticModel As SemanticModel) As String
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (6)
569ElseIf TypeOf oldMember Is MethodBlockBaseSyntax OrElse 572If(TypeOf oldMember Is MethodBlockBaseSyntax, DirectCast(oldMember, MethodBlockBaseSyntax).BlockStatement, DirectCast(oldMember, MethodBaseSyntax)), 573If(TypeOf newMember Is MethodBlockBaseSyntax, DirectCast(newMember, MethodBlockBaseSyntax).BlockStatement, DirectCast(newMember, MethodBaseSyntax)), 1121TypeOf node.Parent Is MethodBlockBaseSyntax Then
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (10)
63Return GetMethodBlockStartPoint(text, options, DirectCast(node, MethodBlockBaseSyntax), part) 71Return GetMethodBlockStartPoint(text, options, DirectCast(node.Parent, MethodBlockBaseSyntax), part) 74If TypeOf node.Parent Is MethodBlockBaseSyntax Then 75Return GetMethodBlockStartPoint(text, options, DirectCast(node.Parent, MethodBlockBaseSyntax), part) 153Return GetMethodBlockEndPoint(text, DirectCast(node, MethodBlockBaseSyntax), part) 161Return GetMethodBlockEndPoint(text, DirectCast(node.Parent, MethodBlockBaseSyntax), part) 164If TypeOf node.Parent Is MethodBlockBaseSyntax Then 165Return GetMethodBlockEndPoint(text, DirectCast(node.Parent, MethodBlockBaseSyntax), part) 457Private Shared Function GetMethodBlockStartPoint(text As SourceText, options As LineFormattingOptions, methodBlock As MethodBlockBaseSyntax, part As EnvDTE.vsCMPart) As VirtualTreePoint? 617Private Shared Function GetMethodBlockEndPoint(text As SourceText, methodBlock As MethodBlockBaseSyntax, part As EnvDTE.vsCMPart) As VirtualTreePoint?
CodeModel\VisualBasicCodeModelService.vb (16)
385ElseIf TypeOf node Is MethodBlockBaseSyntax Then 386Return GetAttributeNodes(DirectCast(node, MethodBlockBaseSyntax).BlockStatement.AttributeLists) 1038Return DirectCast(node, MethodBlockBaseSyntax).BlockStatement 1176ElseIf TypeOf parent Is MethodBlockBaseSyntax Then 1177Return GetParameterNodes(DirectCast(parent, MethodBlockBaseSyntax).BlockStatement) 1577ElseIf (TypeOf node Is MethodBlockBaseSyntax OrElse 2752If TypeOf resultMember Is MethodBlockBaseSyntax Then 2753resultMember = DirectCast(resultMember, MethodBlockBaseSyntax).BlockStatement 3423TypeOf node Is MethodBlockBaseSyntax OrElse 3875ElseIf TypeOf container Is MethodBlockBaseSyntax Then 3876Dim method = DirectCast(container, MethodBlockBaseSyntax) 3953ElseIf TypeOf container Is MethodBlockBaseSyntax Then 3954Dim methodBlock = DirectCast(container, MethodBlockBaseSyntax) 3990Dim methodBlock = TryCast(node, MethodBlockBaseSyntax) 3999Dim methodBlock = TryCast(method, MethodBlockBaseSyntax) 4166If Not TypeOf node Is MethodBlockBaseSyntax AndAlso
LanguageService\VisualBasicDebuggerIntelliSenseContext.vb (2)
76ElseIf TypeOf containingNode Is MethodBlockBaseSyntax 80Return DirectCast(containingNode, MethodBlockBaseSyntax).EndBlockStatement.SpanStart