12 instantiations of MethodStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (12)
Generated\Syntax.xml.Internal.Generated.vb (11)
5700
Friend Shared CreateInstance As Func(Of ObjectReader, Object) = Function(o) New
MethodStatementSyntax
(o)
5714
ObjectBinder.RegisterTypeReader(GetType(MethodStatementSyntax), Function(r) New
MethodStatementSyntax
(r))
5818
Return new
MethodStatementSyntax
(Me.Kind, newErrors, GetAnnotations, _attributeLists, _modifiers, _subOrFunctionKeyword, _identifier, _typeParameterList, _parameterList, _asClause, _handlesClause, _implementsClause)
5822
Return new
MethodStatementSyntax
(Me.Kind, GetDiagnostics, annotations, _attributeLists, _modifiers, _subOrFunctionKeyword, _identifier, _typeParameterList, _parameterList, _asClause, _handlesClause, _implementsClause)
38392
Return New
MethodStatementSyntax
(node.Kind, node.GetDiagnostics, node.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newSubOrFunctionKeyword, newIdentifier, newTypeParameterList, newParameterList, newAsClause, newHandlesClause, newImplementsClause)
44084
Return New
MethodStatementSyntax
(SyntaxKind.SubStatement, attributeLists.Node, modifiers.Node, subOrFunctionKeyword, identifier, typeParameterList, parameterList, asClause, handlesClause, implementsClause)
44132
Return New
MethodStatementSyntax
(SyntaxKind.FunctionStatement, attributeLists.Node, modifiers.Node, subOrFunctionKeyword, identifier, typeParameterList, parameterList, asClause, handlesClause, implementsClause)
44185
Return New
MethodStatementSyntax
(kind, attributeLists.Node, modifiers.Node, subOrFunctionKeyword, identifier, typeParameterList, parameterList, asClause, handlesClause, implementsClause)
56162
Return New
MethodStatementSyntax
(SyntaxKind.SubStatement, attributeLists.Node, modifiers.Node, subOrFunctionKeyword, identifier, typeParameterList, parameterList, asClause, handlesClause, implementsClause, _factoryContext)
56210
Return New
MethodStatementSyntax
(SyntaxKind.FunctionStatement, attributeLists.Node, modifiers.Node, subOrFunctionKeyword, identifier, typeParameterList, parameterList, asClause, handlesClause, implementsClause, _factoryContext)
56263
Return New
MethodStatementSyntax
(kind, attributeLists.Node, modifiers.Node, subOrFunctionKeyword, identifier, typeParameterList, parameterList, asClause, handlesClause, implementsClause, _factoryContext)
Generated\Syntax.xml.Syntax.Generated.vb (1)
6607
Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.
MethodStatementSyntax
(kind, errors, annotations, if(attributeLists IsNot Nothing, attributeLists.Green, Nothing), modifiers, subOrFunctionKeyword, identifier, if(typeParameterList IsNot Nothing, DirectCast(typeParameterList.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.TypeParameterListSyntax), Nothing), if(parameterList IsNot Nothing, DirectCast(parameterList.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ParameterListSyntax), Nothing), if(asClause IsNot Nothing, DirectCast(asClause.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SimpleAsClauseSyntax), Nothing), if(handlesClause IsNot Nothing, DirectCast(handlesClause.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.HandlesClauseSyntax), Nothing), if(implementsClause IsNot Nothing, DirectCast(implementsClause.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.ImplementsClauseSyntax), Nothing)), Nothing, 0)
32 references to MethodStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (30)
Generated\Syntax.xml.Internal.Generated.vb (22)
4491
Friend ReadOnly _subOrFunctionStatement as
MethodStatementSyntax
4494
Friend Sub New(ByVal kind As SyntaxKind, subOrFunctionStatement As
MethodStatementSyntax
, statements As GreenNode, endSubOrFunctionStatement As EndBlockStatementSyntax)
4505
Friend Sub New(ByVal kind As SyntaxKind, subOrFunctionStatement As
MethodStatementSyntax
, statements As GreenNode, endSubOrFunctionStatement As EndBlockStatementSyntax, context As ISyntaxFactoryContext)
4517
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), subOrFunctionStatement As
MethodStatementSyntax
, statements As GreenNode, endSubOrFunctionStatement As EndBlockStatementSyntax)
4531
Dim _subOrFunctionStatement = DirectCast(reader.ReadValue(),
MethodStatementSyntax
)
4562
Friend ReadOnly Property SubOrFunctionStatement As InternalSyntax.
MethodStatementSyntax
5714
ObjectBinder.RegisterTypeReader(GetType(
MethodStatementSyntax
), Function(r) New MethodStatementSyntax(r))
36804
Public Overridable Function VisitMethodStatement(ByVal node As
MethodStatementSyntax
) As VisualBasicSyntaxNode
38253
Dim newSubOrFunctionStatement = DirectCast(Visit(node._subOrFunctionStatement),
MethodStatementSyntax
)
38369
Public Overrides Function VisitMethodStatement(ByVal node As
MethodStatementSyntax
) As VisualBasicSyntaxNode
43573
Friend Shared Function SubBlock(subOrFunctionStatement As
MethodStatementSyntax
, statements As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax
43605
Friend Shared Function FunctionBlock(subOrFunctionStatement As
MethodStatementSyntax
, statements As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax
43641
Friend Shared Function MethodBlock(kind As SyntaxKind, subOrFunctionStatement As
MethodStatementSyntax
, statements As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax
44081
Friend Shared Function SubStatement(attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), subOrFunctionKeyword As KeywordSyntax, identifier As IdentifierTokenSyntax, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As
MethodStatementSyntax
44129
Friend Shared Function FunctionStatement(attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), subOrFunctionKeyword As KeywordSyntax, identifier As IdentifierTokenSyntax, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As
MethodStatementSyntax
44181
Friend Shared Function MethodStatement(kind As SyntaxKind, attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), subOrFunctionKeyword As KeywordSyntax, identifier As IdentifierTokenSyntax, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As
MethodStatementSyntax
55651
Friend Function SubBlock(subOrFunctionStatement As
MethodStatementSyntax
, statements As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax
55683
Friend Function FunctionBlock(subOrFunctionStatement As
MethodStatementSyntax
, statements As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax
55719
Friend Function MethodBlock(kind As SyntaxKind, subOrFunctionStatement As
MethodStatementSyntax
, statements As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), endSubOrFunctionStatement As EndBlockStatementSyntax) As MethodBlockSyntax
56159
Friend Function SubStatement(attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), subOrFunctionKeyword As KeywordSyntax, identifier As IdentifierTokenSyntax, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As
MethodStatementSyntax
56207
Friend Function FunctionStatement(attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), subOrFunctionKeyword As KeywordSyntax, identifier As IdentifierTokenSyntax, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As
MethodStatementSyntax
56259
Friend Function MethodStatement(kind As SyntaxKind, attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), subOrFunctionKeyword As KeywordSyntax, identifier As IdentifierTokenSyntax, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As
MethodStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (4)
5377
Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.MethodBlockSyntax(kind, errors, annotations, DirectCast(subOrFunctionStatement.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.
MethodStatementSyntax
), if(statements IsNot Nothing, statements.Green, Nothing), DirectCast(endSubOrFunctionStatement.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.EndBlockStatementSyntax)), Nothing, 0)
6660
Dim slot = DirectCast(Me.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.
MethodStatementSyntax
)._modifiers
6698
return new SyntaxToken(Me, DirectCast(Me.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.
MethodStatementSyntax
)._subOrFunctionKeyword, Me.GetChildPosition(2), Me.GetChildIndex(2))
6716
return new SyntaxToken(Me, DirectCast(Me.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.
MethodStatementSyntax
)._identifier, Me.GetChildPosition(3), Me.GetChildIndex(3))
Parser\BlockContexts\BlockContext.vb (2)
67
_isWithinAsyncMethodOrLambda = DirectCast(statement,
MethodStatementSyntax
).Modifiers.Any(SyntaxKind.AsyncKeyword)
68
_isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement,
MethodStatementSyntax
).Modifiers.Any(SyntaxKind.IteratorKeyword)
Parser\BlockContexts\MethodBlockContext.vb (1)
62
Dim beginBlockStmt As
MethodStatementSyntax
= Nothing
Parser\Parser.vb (1)
3764
) As
MethodStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
279
Private Shared Function GenerateGreenSubStatement() As InternalSyntax.
MethodStatementSyntax
283
Private Shared Function GenerateGreenFunctionStatement() As InternalSyntax.
MethodStatementSyntax