6 instantiations of DelegateStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (6)
Generated\Syntax.xml.Internal.Generated.vb (1)
6411Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.DelegateStatementSyntax(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (4)
2220Return New DelegateStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newDelegateKeyword, newSubOrFunctionKeyword, newIdentifier, newTypeParameterList, newParameterList, newAsClause) 10173Return New DelegateStatementSyntax(SyntaxKind.DelegateSubStatement, Nothing, Nothing, attributeLists.Node, modifiers.Node, DirectCast(delegateKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause) 10282Return New DelegateStatementSyntax(SyntaxKind.DelegateFunctionStatement, Nothing, Nothing, attributeLists.Node, modifiers.Node, DirectCast(delegateKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause) 10397Return New DelegateStatementSyntax(kind, Nothing, Nothing, attributeLists.Node, modifiers.Node, DirectCast(delegateKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause)
Generated\Syntax.xml.Syntax.Generated.vb (1)
7668Me.New(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.DelegateStatementSyntax(kind, errors, annotations, if(attributeLists IsNot Nothing, attributeLists.Green, Nothing), modifiers, delegateKeyword, 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)), Nothing, 0)
156 references to DelegateStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (55)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
162Public Overrides Function VisitDelegateStatement(delegateSyntax As DelegateStatementSyntax) As Binder
Binding\BinderFactory.vb (3)
85Public Function GetNamedTypeBinder(node As DelegateStatementSyntax) As Binder 218Dim delegateSyntax = DirectCast(node, DelegateStatementSyntax) 544DirectCast(parent, DelegateStatementSyntax), containingBinder.ContainingNamespaceOrType, _sourceModule)
Compilation\SemanticModel.vb (2)
2619Public Overloads Function GetDeclaredSymbol(declarationSyntax As DelegateStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As NamedTypeSymbol 3282Return Me.GetDeclaredSymbol(DirectCast(node, DelegateStatementSyntax), cancellationToken)
Compilation\SyntaxTreeSemanticModel.vb (4)
880Public Overloads Function GetDeclaredSymbol(declarationSyntax As DelegateStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As NamedTypeSymbol 969Return GetDeclaredSymbol(DirectCast(declarationSyntax, DelegateStatementSyntax), cancellationToken) 1120ElseIf TypeOf typeParamList.Parent Is DelegateStatementSyntax Then 1121symbol = GetDeclaredSymbol(DirectCast(typeParamList.Parent, DelegateStatementSyntax), cancellationToken)
Declarations\DeclarationTreeBuilder.vb (1)
741Public Overrides Function VisitDelegateStatement(node As DelegateStatementSyntax) As SingleNamespaceOrTypeDeclaration
Declarations\MergedTypeDeclaration.vb (1)
95attributeSyntaxList = DirectCast(node, DelegateStatementSyntax).AttributeLists
Generated\Syntax.xml.Main.Generated.vb (15)
131Public Overridable Function VisitDelegateStatement(ByVal node As DelegateStatementSyntax) As TResult 866Public Overridable Sub VisitDelegateStatement(ByVal node As DelegateStatementSyntax) 2199Public Overrides Function VisitDelegateStatement(ByVal node As DelegateStatementSyntax) As SyntaxNode 10156Public Shared Function DelegateSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10205Public Shared Function DelegateSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10216Public Shared Function DelegateSubStatement(identifier As SyntaxToken) As DelegateStatementSyntax 10227Public Shared Function DelegateSubStatement(identifier As String) As DelegateStatementSyntax 10266Public Shared Function DelegateFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10314Public Shared Function DelegateFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10325Public Shared Function DelegateFunctionStatement(identifier As SyntaxToken) As DelegateStatementSyntax 10336Public Shared Function DelegateFunctionStatement(identifier As String) As DelegateStatementSyntax 10380Public Shared Function DelegateStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10447Public Shared Function DelegateStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10466Public Shared Function DelegateStatement(ByVal kind As SyntaxKind, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken) As DelegateStatementSyntax 10485Public Shared Function DelegateStatement(ByVal kind As SyntaxKind, subOrFunctionKeyword As SyntaxToken, identifier As String) As DelegateStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (13)
7698Public Shadows Function WithAttributeLists(attributeLists as SyntaxList(Of AttributeListSyntax)) As DelegateStatementSyntax 7702Public Shadows Function AddAttributeLists(ParamArray items As AttributeListSyntax()) As DelegateStatementSyntax 7742Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As DelegateStatementSyntax 7746Public Shadows Function AddModifiers(ParamArray items As SyntaxToken()) As DelegateStatementSyntax 7768Public Shadows Function WithDelegateKeyword(delegateKeyword as SyntaxToken) As DelegateStatementSyntax 7786Public Shadows Function WithSubOrFunctionKeyword(subOrFunctionKeyword as SyntaxToken) As DelegateStatementSyntax 7804Public Shadows Function WithIdentifier(identifier as SyntaxToken) As DelegateStatementSyntax 7826Public Shadows Function WithTypeParameterList(typeParameterList as TypeParameterListSyntax) As DelegateStatementSyntax 7830Public Shadows Function AddTypeParameterListParameters(ParamArray items As TypeParameterSyntax()) As DelegateStatementSyntax 7861Public Shadows Function WithParameterList(parameterList as ParameterListSyntax) As DelegateStatementSyntax 7865Public Shadows Function AddParameterListParameters(ParamArray items As ParameterSyntax()) As DelegateStatementSyntax 7892Public Shadows Function WithAsClause(asClause as SimpleAsClauseSyntax) As DelegateStatementSyntax 7966Public Function Update(kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax
Symbols\Source\SourceDelegateMethodSymbol.vb (3)
35Debug.Assert(TypeOf syntax Is DelegateStatementSyntax OrElse 75Debug.Assert(TypeOf syntax Is DelegateStatementSyntax OrElse 110Dim delegateSyntax = DirectCast(syntax, DelegateStatementSyntax)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1465Friend Shared Function FindSymbolFromSyntax(declarationSyntax As DelegateStatementSyntax,
Symbols\Source\SourceMethodSymbol.vb (1)
1131Dim delegateIdentifier = DirectCast(syntax, DelegateStatementSyntax).Identifier
Symbols\Source\SourceNamedTypeSymbol.vb (6)
137Return DirectCast(node, DelegateStatementSyntax).Identifier 248Dim parameters = DirectCast(node, DelegateStatementSyntax).ParameterList 448modifiers = DirectCast(node, DelegateStatementSyntax).Modifiers 449id = DirectCast(node, DelegateStatementSyntax).Identifier 653modifiers = DirectCast(node, DelegateStatementSyntax).Modifiers 945Return DirectCast(syntax, DelegateStatementSyntax).TypeParameterList
Syntax\MethodBaseSyntax.vb (1)
88Public Shadows Function WithKeyword(keyword As SyntaxToken) As DelegateStatementSyntax
Syntax\SyntaxNodePartials.vb (1)
107Return DirectCast(Me, DelegateStatementSyntax).AsClause
VisualBasicDeclarationComputer.vb (1)
212Return DirectCast(methodBase, DelegateStatementSyntax).AsClause
VisualBasicExtensions.vb (1)
1071Public Function GetDeclaredSymbol(semanticModel As SemanticModel, declarationSyntax As DelegateStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (11)
StatementSyntaxExtensions.vb (6)
144Return DirectCast(member, DelegateStatementSyntax).WithAttributeLists(attributeLists) 296Return DirectCast(member, DelegateStatementSyntax).WithModifiers(modifiers) 346Return DirectCast(member, DelegateStatementSyntax).Identifier 364Return DirectCast(member, DelegateStatementSyntax).DeclarationKeyword 407Return DirectCast(member, DelegateStatementSyntax).TypeParameterList 477Return DirectCast(member, DelegateStatementSyntax).AsClause
SyntaxNodeExtensions.vb (2)
1156Return DirectCast(declaration, DelegateStatementSyntax).ParameterList 1201Return DirectCast(node, DelegateStatementSyntax).AttributeLists
VisualBasicAccessibilityFacts.vb (1)
127Return DirectCast(declaration, DelegateStatementSyntax).Modifiers
VisualBasicSyntaxFacts.vb (2)
642FirstOrDefault(Function(n) TypeOf n Is TypeBlockSyntax OrElse TypeOf n Is DelegateStatementSyntax) 1404Return DirectCast(node, DelegateStatementSyntax).Identifier
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
Structure\DelegateDeclarationStructureTests.vb (1)
11Inherits AbstractVisualBasicSyntaxNodeStructureProviderTests(Of DelegateStatementSyntax)
Structure\MetadataAsSource\DelegateDeclarationStructureTests.vb (1)
12Inherits AbstractVisualBasicSyntaxNodeStructureProviderTests(Of DelegateStatementSyntax)
Microsoft.CodeAnalysis.VisualBasic.Features (14)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
480Dim delegateStatement = DirectCast(vbnode, DelegateStatementSyntax)
Completion\KeywordRecommenders\Declarations\CovarianceModifiersKeywordRecommender.vb (1)
37If parent.IsChildNode(Of DelegateStatementSyntax)(Function(declaration) declaration.TypeParameterList) Then
Completion\KeywordRecommenders\Declarations\DelegateSubFunctionKeywordRecommender.vb (1)
27Return If(context.TargetToken.IsChildToken(Of DelegateStatementSyntax)(Function(delegateDeclaration) delegateDeclaration.DelegateKeyword),
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (1)
57Dim delegateDeclaration = targetToken.GetAncestor(Of DelegateStatementSyntax)()
Completion\KeywordRecommenders\Declarations\ParameterModifiersKeywordRecommender.vb (1)
40Dim optionalAndParamArrayAllowed = Not TypeOf methodDeclaration Is DelegateStatementSyntax AndAlso
EditAndContinue\SyntaxComparer.vb (1)
1228Return DirectCast(node, DelegateStatementSyntax).Identifier
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
807Return TypeOf node Is TypeBlockSyntax OrElse TypeOf node Is DelegateStatementSyntax OrElse TypeOf node Is EnumBlockSyntax 1771startToken = DirectCast(header, DelegateStatementSyntax).DelegateKeyword 1808endToken = DirectCast(header, DelegateStatementSyntax).Identifier
Structure\Providers\DelegateDeclarationStructureProvider.vb (2)
12Inherits AbstractSyntaxNodeStructureProvider(Of DelegateStatementSyntax) 15delegateDeclaration As DelegateStatementSyntax,
Structure\VisualBasicBlockStructureProvider.vb (1)
21builder.Add(Of DelegateStatementSyntax, DelegateDeclarationStructureProvider)()
Structure\VisualBasicStructureHelpers.vb (1)
134Dim delegateStatement = DirectCast(node, DelegateStatementSyntax)
VisualBasicDeclarationComputer.vb (1)
212Return DirectCast(methodBase, DelegateStatementSyntax).AsClause
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2472Dim delegateDecl = tree.GetCompilationUnitRoot().DescendantNodes().OfType(Of DelegateStatementSyntax)().First()
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (2)
108Dim input = ctx.ForAttributeWithSimpleName(Of DelegateStatementSyntax)("XAttribute") 133Dim input = ctx.ForAttributeWithSimpleName(Of DelegateStatementSyntax)("YAttribute")
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
11045Private Shared Function GenerateRedDelegateSubStatement() As DelegateStatementSyntax 11082Private Shared Function GenerateRedDelegateFunctionStatement() As DelegateStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.Workspaces (32)
Classification\ClassificationHelpers.vb (2)
200ElseIf TypeOf parent Is DelegateStatementSyntax AndAlso DirectCast(parent, DelegateStatementSyntax).Identifier = identifier AndAlso
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
175Public Overrides Function VisitDelegateStatement(node As DelegateStatementSyntax) As SyntaxNode
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
133Public Overrides Function VisitDelegateStatement(node As DelegateStatementSyntax) As SyntaxNode
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
715Dim delegateStatementSyntax = DirectCast(syntaxNode, DelegateStatementSyntax)
CodeGeneration\VisualBasicDeclarationComparer.vb (4)
92Return Compare(DirectCast(x, DelegateStatementSyntax), DirectCast(y, DelegateStatementSyntax)) 159Private Function Compare(x As DelegateStatementSyntax, y As DelegateStatementSyntax) As Integer
CodeGeneration\VisualBasicSyntaxGenerator.vb (11)
1805Dim df = DirectCast(declaration, DelegateStatementSyntax) 1844Return DirectCast(node, DelegateStatementSyntax).WithAttributeLists(arg) 2099Return DirectCast(declaration, DelegateStatementSyntax).Identifier.ValueText 2184Return ReplaceWithTrivia(declaration, DirectCast(declaration, DelegateStatementSyntax).Identifier, id) 2294Return DirectCast(declaration, DelegateStatementSyntax).AsClause 2334Return DirectCast(declaration, DelegateStatementSyntax).WithAsClause(DirectCast(asClause, SimpleAsClauseSyntax)) 2397Dim ds = DirectCast(declaration, DelegateStatementSyntax) 2482Dim ds = DirectCast(declaration, DelegateStatementSyntax) 2597Return DirectCast(declaration, DelegateStatementSyntax).WithModifiers(tokens) 2963Return DirectCast(declaration, DelegateStatementSyntax).WithParameterList(list) 2983Return DirectCast(declaration, DelegateStatementSyntax).WithParameterList(list)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (1)
238Dim delegateDecl = DirectCast(node, DelegateStatementSyntax)
StatementSyntaxExtensions.vb (6)
144Return DirectCast(member, DelegateStatementSyntax).WithAttributeLists(attributeLists) 296Return DirectCast(member, DelegateStatementSyntax).WithModifiers(modifiers) 346Return DirectCast(member, DelegateStatementSyntax).Identifier 364Return DirectCast(member, DelegateStatementSyntax).DeclarationKeyword 407Return DirectCast(member, DelegateStatementSyntax).TypeParameterList 477Return DirectCast(member, DelegateStatementSyntax).AsClause
SyntaxNodeExtensions.vb (2)
1156Return DirectCast(declaration, DelegateStatementSyntax).ParameterList 1201Return DirectCast(node, DelegateStatementSyntax).AttributeLists
VisualBasicAccessibilityFacts.vb (1)
127Return DirectCast(declaration, DelegateStatementSyntax).Modifiers
VisualBasicSyntaxFacts.vb (2)
642FirstOrDefault(Function(n) TypeOf n Is TypeBlockSyntax OrElse TypeOf n Is DelegateStatementSyntax) 1404Return DirectCast(node, DelegateStatementSyntax).Identifier
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.vb (10)
1613VerifySyntax(Of DelegateStatementSyntax)( 1617VerifySyntax(Of DelegateStatementSyntax)( 1621VerifySyntax(Of DelegateStatementSyntax)( 1625VerifySyntax(Of DelegateStatementSyntax)( 1629VerifySyntax(Of DelegateStatementSyntax)( 1634VerifySyntax(Of DelegateStatementSyntax)( 2234VerifySyntax(Of DelegateStatementSyntax)( 2347VerifySyntax(Of DelegateStatementSyntax)(Generator.Declaration(type), "Public Delegate Sub D()") 2780VerifySyntax(Of DelegateStatementSyntax)( 2784VerifySyntax(Of DelegateStatementSyntax)(
Microsoft.VisualStudio.LanguageServices.VisualBasic (27)
CodeModel\SyntaxExtensions.vb (2)
43Return DirectCast(method, DelegateStatementSyntax).Identifier.ToString() 69asClause = DirectCast(method, DelegateStatementSyntax).AsClause
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (7)
303TypeOf oldNamespaceOrType Is DelegateStatementSyntax Then 355Debug.Assert(TypeOf oldType Is TypeBlockSyntax OrElse TypeOf oldType Is EnumBlockSyntax OrElse TypeOf oldType Is DelegateStatementSyntax) 356Debug.Assert(TypeOf newType Is TypeBlockSyntax OrElse TypeOf oldType Is EnumBlockSyntax OrElse TypeOf newType Is DelegateStatementSyntax) 378ElseIf TypeOf oldType Is DelegateStatementSyntax Then 380DirectCast(oldType, DelegateStatementSyntax), 381DirectCast(newType, DelegateStatementSyntax), 549TypeOf oldMember Is DelegateStatementSyntax Then
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (4)
95Return GetDelegateStatementStartPoint(text, DirectCast(node, DelegateStatementSyntax), part) 185Return GetDelegateStatementEndPoint(text, DirectCast(node, DelegateStatementSyntax), part) 907Private Shared Function GetDelegateStatementStartPoint(text As SourceText, delegateStatement As DelegateStatementSyntax, part As EnvDTE.vsCMPart) As VirtualTreePoint? 943Private Shared Function GetDelegateStatementEndPoint(text As SourceText, delegateStatement As DelegateStatementSyntax, part As EnvDTE.vsCMPart) As VirtualTreePoint?
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (1)
153Dim delegateStatement = DirectCast(node, DelegateStatementSyntax)
CodeModel\VisualBasicCodeModelService.vb (12)
379ElseIf TypeOf node Is DelegateStatementSyntax Then 380Return GetAttributeNodes(DirectCast(node, DelegateStatementSyntax).AttributeLists) 454TypeOf node Is DelegateStatementSyntax 898Return DirectCast(node, DelegateStatementSyntax).Identifier.ToString() 981Return DirectCast(node, DelegateStatementSyntax).WithIdentifier(identifier) 2973Private Shared Function SetDelegateType(delegateStatement As DelegateStatementSyntax, typeSymbol As ITypeSymbol) As DelegateStatementSyntax 3418Debug.Assert(TypeOf node Is DelegateStatementSyntax OrElse 3429If TypeOf node Is DelegateStatementSyntax Then 3430Return SetDelegateType(DirectCast(node, DelegateStatementSyntax), typeSymbol) 3863ElseIf TypeOf container Is DelegateStatementSyntax Then 3864Dim delegateStatement = DirectCast(container, DelegateStatementSyntax)
Help\VisualBasicHelpContextService.Visitor.vb (1)
154Public Overrides Sub VisitDelegateStatement(node As DelegateStatementSyntax)