6 instantiations of DeclareStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (6)
Generated\Syntax.xml.Internal.Generated.vb (1)
6144
Return new Microsoft.CodeAnalysis.VisualBasic.Syntax.
DeclareStatementSyntax
(Me, parent, startLocation)
Generated\Syntax.xml.Main.Generated.vb (4)
2193
Return New
DeclareStatementSyntax
(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.Node, newModifiers.Node, newDeclareKeyword, newCharsetKeyword, newSubOrFunctionKeyword, newIdentifier, newLibKeyword, newLibraryName, newAliasKeyword, newAliasName, newParameterList, newAsClause)
9711
Return New
DeclareStatementSyntax
(SyntaxKind.DeclareSubStatement, Nothing, Nothing, attributeLists.Node, modifiers.Node, DirectCast(declareKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(charsetKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), DirectCast(libKeyword.Node, InternalSyntax.KeywordSyntax), libraryName, DirectCast(aliasKeyword.Node, InternalSyntax.KeywordSyntax), aliasName, parameterList, asClause)
9863
Return New
DeclareStatementSyntax
(SyntaxKind.DeclareFunctionStatement, Nothing, Nothing, attributeLists.Node, modifiers.Node, DirectCast(declareKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(charsetKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), DirectCast(libKeyword.Node, InternalSyntax.KeywordSyntax), libraryName, DirectCast(aliasKeyword.Node, InternalSyntax.KeywordSyntax), aliasName, parameterList, asClause)
10020
Return New
DeclareStatementSyntax
(kind, Nothing, Nothing, attributeLists.Node, modifiers.Node, DirectCast(declareKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(charsetKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), DirectCast(libKeyword.Node, InternalSyntax.KeywordSyntax), libraryName, DirectCast(aliasKeyword.Node, InternalSyntax.KeywordSyntax), aliasName, parameterList, asClause)
Generated\Syntax.xml.Syntax.Generated.vb (1)
7236
Me.
New
(New Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.DeclareStatementSyntax(kind, errors, annotations, if(attributeLists IsNot Nothing, attributeLists.Green, Nothing), modifiers, declareKeyword, charsetKeyword, subOrFunctionKeyword, identifier, libKeyword, DirectCast(libraryName.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.LiteralExpressionSyntax), aliasKeyword, if(aliasName IsNot Nothing, DirectCast(aliasName.Green, Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.LiteralExpressionSyntax), 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)
103 references to DeclareStatementSyntax
Microsoft.CodeAnalysis.VisualBasic (44)
Binding\BinderFactory.BinderFactoryVisitor.vb (1)
194
Public Overrides Function VisitDeclareStatement(node As
DeclareStatementSyntax
) As Binder
Compilation\SemanticModel.vb (1)
2646
Public Overloads Function GetDeclaredSymbol(declarationSyntax As
DeclareStatementSyntax
, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol
Generated\Syntax.xml.Main.Generated.vb (15)
128
Public Overridable Function VisitDeclareStatement(ByVal node As
DeclareStatementSyntax
) As TResult
863
Public Overridable Sub VisitDeclareStatement(ByVal node As
DeclareStatementSyntax
)
2164
Public Overrides Function VisitDeclareStatement(ByVal node As
DeclareStatementSyntax
) As SyntaxNode
9675
Public Shared Function DeclareSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As
DeclareStatementSyntax
9749
Public Shared Function DeclareSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, charsetKeyword As SyntaxToken, identifier As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As
DeclareStatementSyntax
9763
Public Shared Function DeclareSubStatement(identifier As SyntaxToken, libraryName As LiteralExpressionSyntax) As
DeclareStatementSyntax
9777
Public Shared Function DeclareSubStatement(identifier As String, libraryName As LiteralExpressionSyntax) As
DeclareStatementSyntax
9828
Public Shared Function DeclareFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As
DeclareStatementSyntax
9901
Public Shared Function DeclareFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, charsetKeyword As SyntaxToken, identifier As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As
DeclareStatementSyntax
9915
Public Shared Function DeclareFunctionStatement(identifier As SyntaxToken, libraryName As LiteralExpressionSyntax) As
DeclareStatementSyntax
9929
Public Shared Function DeclareFunctionStatement(identifier As String, libraryName As LiteralExpressionSyntax) As
DeclareStatementSyntax
9984
Public Shared Function DeclareStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As
DeclareStatementSyntax
10075
Public Shared Function DeclareStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As
DeclareStatementSyntax
10096
Public Shared Function DeclareStatement(ByVal kind As SyntaxKind, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libraryName As LiteralExpressionSyntax) As
DeclareStatementSyntax
10117
Public Shared Function DeclareStatement(ByVal kind As SyntaxKind, subOrFunctionKeyword As SyntaxToken, identifier As String, libraryName As LiteralExpressionSyntax) As
DeclareStatementSyntax
Generated\Syntax.xml.Syntax.Generated.vb (16)
7266
Public Shadows Function WithAttributeLists(attributeLists as SyntaxList(Of AttributeListSyntax)) As
DeclareStatementSyntax
7270
Public Shadows Function AddAttributeLists(ParamArray items As AttributeListSyntax()) As
DeclareStatementSyntax
7310
Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As
DeclareStatementSyntax
7314
Public Shadows Function AddModifiers(ParamArray items As SyntaxToken()) As
DeclareStatementSyntax
7336
Public Shadows Function WithDeclareKeyword(declareKeyword as SyntaxToken) As
DeclareStatementSyntax
7362
Public Shadows Function WithCharsetKeyword(charsetKeyword as SyntaxToken) As
DeclareStatementSyntax
7380
Public Shadows Function WithSubOrFunctionKeyword(subOrFunctionKeyword as SyntaxToken) As
DeclareStatementSyntax
7398
Public Shadows Function WithIdentifier(identifier as SyntaxToken) As
DeclareStatementSyntax
7416
Public Shadows Function WithLibKeyword(libKeyword as SyntaxToken) As
DeclareStatementSyntax
7434
Public Shadows Function WithLibraryName(libraryName as LiteralExpressionSyntax) As
DeclareStatementSyntax
7459
Public Shadows Function WithAliasKeyword(aliasKeyword as SyntaxToken) As
DeclareStatementSyntax
7480
Public Shadows Function WithAliasName(aliasName as LiteralExpressionSyntax) As
DeclareStatementSyntax
7510
Public Shadows Function WithParameterList(parameterList as ParameterListSyntax) As
DeclareStatementSyntax
7514
Public Shadows Function AddParameterListParameters(ParamArray items As ParameterSyntax()) As
DeclareStatementSyntax
7541
Public Shadows Function WithAsClause(asClause as SimpleAsClauseSyntax) As
DeclareStatementSyntax
7631
Public Function Update(kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As
DeclareStatementSyntax
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2695
Return SourceMethodSymbol.CreateDeclareMethod(Me, DirectCast(methodBaseSyntax,
DeclareStatementSyntax
), binder, diagBag)
Symbols\Source\SourceMethodSymbol.vb (6)
218
syntax As
DeclareStatementSyntax
,
285
Private Shared Function GetPInvokeAttributes(syntax As
DeclareStatementSyntax
) As MethodImportAttributes
872
Return DirectCast(node,
DeclareStatementSyntax
).Identifier.Span
918
Return DirectCast(node,
DeclareStatementSyntax
).Identifier.ValueText
2209
paramList = DirectCast(decl,
DeclareStatementSyntax
).ParameterList
2231
Return DirectCast(methodStatement,
DeclareStatementSyntax
).Identifier
Syntax\MethodBaseSyntax.vb (1)
115
Public Shadows Function WithKeyword(keyword As SyntaxToken) As
DeclareStatementSyntax
Syntax\SyntaxNodePartials.vb (1)
104
Return DirectCast(Me,
DeclareStatementSyntax
).AsClause
VisualBasicDeclarationComputer.vb (1)
209
Return DirectCast(methodBase,
DeclareStatementSyntax
).AsClause
VisualBasicExtensions.vb (1)
1110
Public Function GetDeclaredSymbol(semanticModel As SemanticModel, declarationSyntax As
DeclareStatementSyntax
, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (7)
StatementSyntaxExtensions.vb (5)
141
Return DirectCast(member,
DeclareStatementSyntax
).WithAttributeLists(attributeLists)
293
Return DirectCast(member,
DeclareStatementSyntax
).WithModifiers(modifiers)
343
Return DirectCast(member,
DeclareStatementSyntax
).Identifier
361
Return DirectCast(member,
DeclareStatementSyntax
).DeclarationKeyword
475
Return DirectCast(member,
DeclareStatementSyntax
).AsClause
SyntaxNodeExtensions.vb (1)
1153
Return DirectCast(declaration,
DeclareStatementSyntax
).ParameterList
VisualBasicSyntaxFacts.vb (1)
781
If TypeOf node Is
DeclareStatementSyntax
Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
Structure\ExternalMethodDeclarationStructureTests.vb (1)
11
Inherits AbstractVisualBasicSyntaxNodeStructureProviderTests(Of
DeclareStatementSyntax
)
Microsoft.CodeAnalysis.VisualBasic.Features (11)
Completion\KeywordRecommenders\Declarations\AliasKeywordRecommender.vb (1)
28
Return If(targetToken.IsChildToken(Of
DeclareStatementSyntax
)(Function(declaration) declaration.LibraryName.Token),
Completion\KeywordRecommenders\Declarations\CharsetModifierKeywordRecommender.vb (1)
30
Return If(targetToken.IsChildToken(Of
DeclareStatementSyntax
)(Function(externalMethodDeclaration) externalMethodDeclaration.DeclareKeyword),
Completion\KeywordRecommenders\Declarations\ExternalSubFunctionKeywordRecommender.vb (1)
28
Return If(targetToken.IsKind(SyntaxKind.DeclareKeyword, SyntaxKind.AnsiKeyword, SyntaxKind.UnicodeKeyword, SyntaxKind.AutoKeyword) AndAlso targetToken.GetAncestor(Of
DeclareStatementSyntax
)() IsNot Nothing,
Completion\KeywordRecommenders\Declarations\LibKeywordRecommender.vb (1)
26
Return If(context.TargetToken.IsChildToken(Of
DeclareStatementSyntax
)(Function(declaration) declaration.Identifier),
EditAndContinue\SyntaxComparer.vb (1)
1243
Return DirectCast(node,
DeclareStatementSyntax
).Identifier
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
1775
startToken = DirectCast(header,
DeclareStatementSyntax
).DeclareKeyword
1792
endToken = DirectCast(header,
DeclareStatementSyntax
).LibraryName.Token
Structure\Providers\ExternalMethodDeclarationStructureProvider.vb (2)
12
Inherits AbstractSyntaxNodeStructureProvider(Of
DeclareStatementSyntax
)
15
externalMethodDeclaration As
DeclareStatementSyntax
,
Structure\VisualBasicBlockStructureProvider.vb (1)
27
builder.Add(Of
DeclareStatementSyntax
, ExternalMethodDeclarationStructureProvider)()
VisualBasicDeclarationComputer.vb (1)
209
Return DirectCast(methodBase,
DeclareStatementSyntax
).AsClause
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\SemanticModelAPITests.vb (1)
3825
model.GetDeclaredSymbol(DirectCast(name,
DeclareStatementSyntax
))
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (2)
1678
Dim declareSubSyntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.DeclareSubStatement, 1).AsNode(),
DeclareStatementSyntax
)
1679
Dim declareFunSyntax = DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.DeclareFunctionStatement, 1).AsNode(),
DeclareStatementSyntax
)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
10939
Private Shared Function GenerateRedDeclareSubStatement() As
DeclareStatementSyntax
10992
Private Shared Function GenerateRedDeclareFunctionStatement() As
DeclareStatementSyntax
Microsoft.CodeAnalysis.VisualBasic.Workspaces (15)
Classification\ClassificationHelpers.vb (2)
208
ElseIf TypeOf parent Is
DeclareStatementSyntax
AndAlso DirectCast(parent,
DeclareStatementSyntax
).Identifier = identifier Then
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
171
Public Overrides Function VisitDeclareStatement(node As
DeclareStatementSyntax
) As SyntaxNode
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
129
Public Overrides Function VisitDeclareStatement(node As
DeclareStatementSyntax
) As SyntaxNode
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
710
Dim declareStatementSyntax = DirectCast(syntaxNode,
DeclareStatementSyntax
)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
2434
Dim ds = DirectCast(declaration,
DeclareStatementSyntax
)
2519
Dim ds = DirectCast(declaration,
DeclareStatementSyntax
)
2980
Return DirectCast(declaration,
DeclareStatementSyntax
).WithParameterList(list)
StatementSyntaxExtensions.vb (5)
141
Return DirectCast(member,
DeclareStatementSyntax
).WithAttributeLists(attributeLists)
293
Return DirectCast(member,
DeclareStatementSyntax
).WithModifiers(modifiers)
343
Return DirectCast(member,
DeclareStatementSyntax
).Identifier
361
Return DirectCast(member,
DeclareStatementSyntax
).DeclarationKeyword
475
Return DirectCast(member,
DeclareStatementSyntax
).AsClause
SyntaxNodeExtensions.vb (1)
1153
Return DirectCast(declaration,
DeclareStatementSyntax
).ParameterList
VisualBasicSyntaxFacts.vb (1)
781
If TypeOf node Is
DeclareStatementSyntax
Then
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
FindReferencesTests.cs (1)
166
SyntaxNode declareMethod = tree.GetRoot().DescendantNodes().OfType<Microsoft.CodeAnalysis.VisualBasic.Syntax.
DeclareStatementSyntax
>().FirstOrDefault();
Microsoft.VisualStudio.LanguageServices.VisualBasic (19)
CodeModel\SyntaxExtensions.vb (2)
40
Return DirectCast(method,
DeclareStatementSyntax
).Identifier.ToString()
66
asClause = DirectCast(method,
DeclareStatementSyntax
).AsClause
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (4)
82
Return GetDeclareStatementStartPoint(text, DirectCast(node,
DeclareStatementSyntax
), part)
172
Return GetDeclareStatementEndPoint(text, DirectCast(node,
DeclareStatementSyntax
), part)
516
Private Shared Function GetDeclareStatementStartPoint(text As SourceText, declareStatement As
DeclareStatementSyntax
, part As EnvDTE.vsCMPart) As VirtualTreePoint?
552
Private Shared Function GetDeclareStatementEndPoint(text As SourceText, declareStatement As
DeclareStatementSyntax
, part As EnvDTE.vsCMPart) As VirtualTreePoint?
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (1)
193
Dim declareStatement = DirectCast(node,
DeclareStatementSyntax
)
CodeModel\VisualBasicCodeModelService.vb (11)
381
ElseIf TypeOf node Is
DeclareStatementSyntax
Then
382
Return GetAttributeNodes(DirectCast(node,
DeclareStatementSyntax
).AttributeLists)
910
Return DirectCast(node,
DeclareStatementSyntax
).Identifier.ToString()
993
Return DirectCast(node,
DeclareStatementSyntax
).WithIdentifier(identifier)
3137
Private Shared Function SetMethodType(declareStatement As
DeclareStatementSyntax
, typeSymbol As ITypeSymbol) As
DeclareStatementSyntax
3421
TypeOf node Is
DeclareStatementSyntax
OrElse
3441
If TypeOf node Is
DeclareStatementSyntax
Then
3442
Return SetMethodType(DirectCast(node,
DeclareStatementSyntax
), typeSymbol)
3867
ElseIf TypeOf container Is
DeclareStatementSyntax
Then
3868
Dim declareStatement = DirectCast(container,
DeclareStatementSyntax
)
Help\VisualBasicHelpContextService.Visitor.vb (1)
149
Public Overrides Sub VisitDeclareStatement(node As
DeclareStatementSyntax
)