116 references to GenericNameSyntax
Microsoft.CodeAnalysis.VisualBasic (46)
Binding\BackstopBinder.vb (1)
57
Public Overrides Function IsUnboundTypeAllowed(syntax As
GenericNameSyntax
) As Boolean
Binding\Binder_AnonymousTypes.vb (1)
411
ReportDiagnostic(diagnostics, DirectCast(nameSyntax,
GenericNameSyntax
).TypeArgumentList,
Binding\Binder_Expressions.vb (3)
2456
Dim genericName = DirectCast(node,
GenericNameSyntax
)
2808
DirectCast(right,
GenericNameSyntax
).Identifier)
2868
Dim genericName = DirectCast(right,
GenericNameSyntax
)
Binding\Binder_Symbols.vb (10)
138
Dim genericName As
GenericNameSyntax
= Nothing
142
genericName = DirectCast(syntaxWhole,
GenericNameSyntax
)
145
genericName = DirectCast(DirectCast(syntaxWhole, QualifiedNameSyntax).Right,
GenericNameSyntax
)
376
arity = DirectCast(rightPart,
GenericNameSyntax
).Arity
574
LookupGenericName(lookupResult, DirectCast(typeSyntax,
GenericNameSyntax
), binder, diagBag, reportedAnError, suppressUseSiteError)
868
genericNameSyntax As
GenericNameSyntax
,
936
Dim right = TryCast(dottedNameSyntax.Right,
GenericNameSyntax
)
1025
Debug.Assert(TryCast(genDottedNameSyntax.Right,
GenericNameSyntax
) IsNot Nothing)
1027
Dim right = DirectCast(genDottedNameSyntax.Right,
GenericNameSyntax
)
1143
Return DirectCast(typeSyntax,
GenericNameSyntax
).Identifier.ValueText
Binding\Binder_Utils.vb (1)
766
result = DirectCast(node,
GenericNameSyntax
).Identifier.GetTypeCharacter()
Binding\Binder.vb (1)
380
Public Overridable Function IsUnboundTypeAllowed(syntax As
GenericNameSyntax
) As Boolean
Binding\DocumentationCommentCrefBinder_Compat.vb (3)
121
Dim genericName = DirectCast(right,
GenericNameSyntax
)
297
Dim genericName = DirectCast(node,
GenericNameSyntax
)
393
Private Function ConstructGenericSymbolWithTypeArgumentsForCref(genericSymbol As Symbol, genericName As
GenericNameSyntax
) As Symbol
Binding\DocumentationCommentCrefBinder.vb (8)
244
Dim genericName As
GenericNameSyntax
= Nothing
250
genericName = DirectCast(crefName,
GenericNameSyntax
)
258
genericName = DirectCast(qName.Right,
GenericNameSyntax
)
348
Dim generic = DirectCast(name,
GenericNameSyntax
)
534
Dim genericName = DirectCast(node,
GenericNameSyntax
)
611
Dim genericName = DirectCast(right,
GenericNameSyntax
)
820
Private Shared Sub CreateTypeParameterSymbolsAndConstructSymbols(genericName As
GenericNameSyntax
,
1106
Dim genericArguments = DirectCast(name,
GenericNameSyntax
).TypeArgumentList.Arguments
Binding\GetTypeBinder.vb (6)
23
Private ReadOnly _allowedMap As Dictionary(Of
GenericNameSyntax
, Boolean)
31
Public Overrides Function IsUnboundTypeAllowed(Syntax As
GenericNameSyntax
) As Boolean
46
Private _allowedMap As Dictionary(Of
GenericNameSyntax
, Boolean) = Nothing
54
Public Overloads Shared Sub Visit(typeSyntax As ExpressionSyntax, <Out()> ByRef allowedMap As Dictionary(Of
GenericNameSyntax
, Boolean))
60
Public Overrides Sub VisitGenericName(node As
GenericNameSyntax
)
67
_allowedMap = New Dictionary(Of
GenericNameSyntax
, Boolean)()
Generated\Syntax.xml.Main.Generated.vb (5)
641
Public Overridable Function VisitGenericName(ByVal node As
GenericNameSyntax
) As TResult
1376
Public Overridable Sub VisitGenericName(ByVal node As
GenericNameSyntax
)
5069
Public Overrides Function VisitGenericName(ByVal node As
GenericNameSyntax
) As SyntaxNode
41082
Public Shared Function GenericName(identifier As SyntaxToken, typeArgumentList As TypeArgumentListSyntax) As
GenericNameSyntax
41110
Public Shared Function GenericName(identifier As String, typeArgumentList As TypeArgumentListSyntax) As
GenericNameSyntax
Generated\Syntax.xml.Syntax.Generated.vb (4)
33272
Public Shadows Function WithIdentifier(identifier as SyntaxToken) As
GenericNameSyntax
33290
Public Shadows Function WithTypeArgumentList(typeArgumentList as TypeArgumentListSyntax) As
GenericNameSyntax
33294
Public Shadows Function AddTypeArgumentListArguments(ParamArray items As TypeSyntax()) As
GenericNameSyntax
33336
Public Function Update(identifier As SyntaxToken, typeArgumentList As TypeArgumentListSyntax) As
GenericNameSyntax
Syntax\NameSyntax.vb (2)
15
If TypeOf Me Is
GenericNameSyntax
Then
16
Return DirectCast(Me,
GenericNameSyntax
).TypeArgumentList.Arguments.Count
Syntax\SyntaxExtensions.vb (1)
106
DirectCast(DirectCast(simpleName,
GenericNameSyntax
).WithIdentifier(identifier), SimpleNameSyntax))
Microsoft.CodeAnalysis.VisualBasic.Analyzers (1)
MetaAnalyzers\BasicDiagnosticAnalyzerFieldsAnalyzer.vb (1)
12
Inherits DiagnosticAnalyzerFieldsAnalyzer(Of ClassBlockSyntax, StructureBlockSyntax, FieldDeclarationSyntax, TypeSyntax, SimpleAsClauseSyntax, TypeArgumentListSyntax,
GenericNameSyntax
)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
434
Dim genericName = DirectCast(expression,
GenericNameSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
538
Dim castGenericName = TryCast(genericName,
GenericNameSyntax
)
1814
Dim genericName = DirectCast(node,
GenericNameSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\NameSyntaxComparer.vb (8)
51
ElseIf TypeOf x Is
GenericNameSyntax
AndAlso TypeOf y Is
GenericNameSyntax
Then
54
Return Compare(DirectCast(x,
GenericNameSyntax
), DirectCast(y,
GenericNameSyntax
))
55
ElseIf TypeOf x Is IdentifierNameSyntax AndAlso TypeOf y Is
GenericNameSyntax
Then
62
ElseIf TypeOf x Is
GenericNameSyntax
AndAlso TypeOf y Is IdentifierNameSyntax Then
112
Private Function Compare(x As
GenericNameSyntax
, y As
GenericNameSyntax
) As Integer
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (3)
82
Dim genericName = DirectCast(Me.State.SimpleNameOpt,
GenericNameSyntax
)
169
If TypeOf State.SimpleNameOpt Is
GenericNameSyntax
Then
170
For Each typeArgument In DirectCast(State.SimpleNameOpt,
GenericNameSyntax
).TypeArgumentList.Arguments
Microsoft.CodeAnalysis.VisualBasic.Features (14)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (1)
175
Public Overrides Sub VisitGenericName(node As
GenericNameSyntax
)
GenerateType\VisualBasicGenerateTypeService.vb (3)
371
If TypeOf state.SimpleName Is
GenericNameSyntax
Then
372
Dim genericName = DirectCast(state.SimpleName,
GenericNameSyntax
)
603
Dim node = TryCast(expression,
GenericNameSyntax
)
SignatureHelp\GenericNameSignatureHelpProvider.vb (6)
31
Dim expression As
GenericNameSyntax
= Nothing
41
Private Shared Function TryGetGenericName(root As SyntaxNode, position As Integer, syntaxFacts As ISyntaxFactsService, triggerReason As SignatureHelpTriggerReason, cancellationToken As CancellationToken, ByRef genericName As
GenericNameSyntax
) As Boolean
52
TypeOf token.Parent.Parent Is
GenericNameSyntax
55
Private Shared Function IsArgumentListToken(node As
GenericNameSyntax
, token As SyntaxToken) As Boolean
63
Dim genericName As
GenericNameSyntax
= Nothing
114
Private Overloads Shared Function Convert(symbol As ISymbol, genericName As
GenericNameSyntax
, semanticModel As SemanticModel, structuralTypeDisplayService As IStructuralTypeDisplayService, documentationCommentFormattingService As IDocumentationCommentFormattingService) As SignatureHelpItem
SolutionExplorer\VisualBasicSolutionExplorerSymbolTreeItemProvider.vb (1)
380
Dim genericName = TryCast(typeSyntax,
GenericNameSyntax
)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (3)
82
Dim genericName = DirectCast(Me.State.SimpleNameOpt,
GenericNameSyntax
)
169
If TypeOf State.SimpleNameOpt Is
GenericNameSyntax
Then
170
For Each typeArgument In DirectCast(State.SimpleNameOpt,
GenericNameSyntax
).TypeArgumentList.Arguments
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (5)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\BasicMarkMembersAsStatic.Fixer.vb (1)
20
Return TryCast(node,
GenericNameSyntax
)?.TypeArgumentList.Arguments
Microsoft.NetCore.Analyzers\Runtime\BasicDetectPreviewFeatureAnalyzer.vb (4)
55
Private Function TryMatchGenericSyntaxNodeWithGivenSymbol(genericName As
GenericNameSyntax
, previewReturnTypeSymbol As ISymbol, ByRef syntaxNode As SyntaxNode) As Boolean
64
Dim innerGenericName = TryCast(typeArgumentElementType,
GenericNameSyntax
)
102
Dim generic = TryCast(baseType,
GenericNameSyntax
)
208
Dim genericName = TryCast(returnType,
GenericNameSyntax
)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (25)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (2)
20
GetType(
GenericNameSyntax
),
269
Return DirectCast(node,
GenericNameSyntax
).Identifier
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (3)
192
Dim genericName As
GenericNameSyntax
194
genericName = DirectCast(DirectCast(newTypeSyntax, QualifiedNameSyntax).Right,
GenericNameSyntax
)
196
genericName = DirectCast(newTypeSyntax,
GenericNameSyntax
)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1083
Dim gname = TryCast(type,
GenericNameSyntax
)
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (2)
561
ElseIf TypeOf node Is
GenericNameSyntax
Then
562
Dim genericName = DirectCast(node,
GenericNameSyntax
)
Simplification\Reducers\VisualBasicNameReducer.Rewriter.vb (1)
18
Public Overrides Function VisitGenericName(node As
GenericNameSyntax
) As SyntaxNode
Simplification\Simplifiers\NameSimplifier.vb (4)
46
Dim genericName = DirectCast(name,
GenericNameSyntax
)
199
Dim genericName As
GenericNameSyntax
201
genericName = DirectCast(DirectCast(name, QualifiedNameSyntax).Right,
GenericNameSyntax
)
203
genericName = DirectCast(name,
GenericNameSyntax
)
Simplification\VisualBasicSimplificationService.Expander.vb (1)
393
Public Overrides Function VisitGenericName(node As
GenericNameSyntax
) As SyntaxNode
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
434
Dim genericName = DirectCast(expression,
GenericNameSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
538
Dim castGenericName = TryCast(genericName,
GenericNameSyntax
)
1814
Dim genericName = DirectCast(node,
GenericNameSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\NameSyntaxComparer.vb (8)
51
ElseIf TypeOf x Is
GenericNameSyntax
AndAlso TypeOf y Is
GenericNameSyntax
Then
54
Return Compare(DirectCast(x,
GenericNameSyntax
), DirectCast(y,
GenericNameSyntax
))
55
ElseIf TypeOf x Is IdentifierNameSyntax AndAlso TypeOf y Is
GenericNameSyntax
Then
62
ElseIf TypeOf x Is
GenericNameSyntax
AndAlso TypeOf y Is IdentifierNameSyntax Then
112
Private Function Compare(x As
GenericNameSyntax
, y As
GenericNameSyntax
) As Integer
Roslyn.Diagnostics.VisualBasic.Analyzers (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
434
Dim genericName = DirectCast(expression,
GenericNameSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
538
Dim castGenericName = TryCast(genericName,
GenericNameSyntax
)
1814
Dim genericName = DirectCast(node,
GenericNameSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\NameSyntaxComparer.vb (8)
51
ElseIf TypeOf x Is
GenericNameSyntax
AndAlso TypeOf y Is
GenericNameSyntax
Then
54
Return Compare(DirectCast(x,
GenericNameSyntax
), DirectCast(y,
GenericNameSyntax
))
55
ElseIf TypeOf x Is IdentifierNameSyntax AndAlso TypeOf y Is
GenericNameSyntax
Then
62
ElseIf TypeOf x Is
GenericNameSyntax
AndAlso TypeOf y Is IdentifierNameSyntax Then
112
Private Function Compare(x As
GenericNameSyntax
, y As
GenericNameSyntax
) As Integer