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