71 references to Name
Microsoft.CodeAnalysis.VisualBasic (46)
Binding\Binder_Attributes.vb (13)
48
Return DirectCast(binder.BindTypeSyntax(attribute.
Name
, diagnostics), NamedTypeSymbol)
115
Dim namedType As NamedTypeSymbol = DirectCast(BindTypeSyntax(node.
Name
, diagnostics), NamedTypeSymbol)
286
Dim constructorsGroup = New BoundMethodGroup(node.
Name
, Nothing, accessibleConstructors, LookupResultKind.Good, Nothing, QualificationKind.QualifiedViaTypeName)
288
Dim results As OverloadResolution.OverloadResolutionResult = OverloadResolution.MethodInvocationOverloadResolution(constructorsGroup, boundArguments, Nothing, Me, callerInfoOpt:=node.
Name
,
291
If diagnostics.Add(node.
Name
, useSiteInfo) Then
303
results = OverloadResolution.MethodInvocationOverloadResolution(constructorsGroup, boundArguments, Nothing, Me, includeEliminatedCandidates:=True, callerInfoOpt:=node.
Name
,
314
boundArguments, Nothing, results, diagnostics, callerInfoOpt:=node.
Name
)
327
ReportDiagnostic(diagnostics, node.
Name
, ERRID.ERR_BadAttributeConstructor1, param.Type)
330
ReportDiagnostic(diagnostics, node.
Name
, ERRID.ERR_BadAttributeConstructor2, param.Type)
336
ReportDiagnostic(diagnostics, node.
Name
, ERRID.ERR_BadAttributeNonPublicType1, param.Type)
343
ReportDiagnostic(diagnostics, node.
Name
, ERRID.ERR_BadAttributeNonPublicContType2, param.Type, container)
353
Dim argumentInfo As (Arguments As ImmutableArray(Of BoundExpression), DefaultArguments As BitVector) = PassArguments(node.
Name
, methodResult, boundArguments, diagnostics)
359
ReportDiagnostic(diagnostics, node.
Name
, ERRID.ERR_BadAttributeNonPublicConstructor)
Compilation\SemanticModel.vb (1)
1427
(DirectCast(parentSyntax, AttributeSyntax).
Name
Is lowestBoundNode.Syntax) Then
Declarations\DeclarationTreeBuilder.vb (1)
575
result = result Or QuickAttributeHelpers.GetQuickAttributes(QuickAttributeChecker.GetFinalName(attribute.
Name
), inAttribute:=True)
Errors\MessageProvider.vb (2)
524
diagnostics.Add(ERRID.ERR_AttributeParameterRequired1, node.
Name
.GetLocation(), parameterName)
529
diagnostics.Add(ERRID.ERR_AttributeParameterRequired2, node.
Name
.GetLocation(), parameterName1, parameterName2)
Generated\Syntax.xml.Main.Generated.vb (2)
2659
Dim newName = DirectCast(Visit(node.
Name
), TypeSyntax)
2660
If node.
Name
IsNot newName Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (4)
12184
return Update(target, Me.
Name
, Me.ArgumentList)
12223
return Update(Me.Target, Me.
Name
, argumentList)
12249
Return Me.
Name
12280
If target IsNot Me.Target OrElse name IsNot Me.
Name
OrElse argumentList IsNot Me.ArgumentList Then
Semantics\OverloadResolution.vb (1)
3419
Return DirectCast(parent, AttributeSyntax).
Name
.Span.Contains(syntax.Position)
SourceGeneration\VisualBasicSyntaxHelper.vb (1)
38
Return DirectCast(node, AttributeSyntax).
Name
Symbols\Attributes\AttributeData.vb (2)
243
diagnostics.Add(If(nodeOpt IsNot Nothing, nodeOpt.
Name
.GetLocation, NoLocation.Singleton), useSiteInfo)
248
If(nodeOpt IsNot Nothing, nodeOpt.
Name
.GetLocation, NoLocation.Singleton))
Symbols\Source\QuickAttributeChecker.vb (1)
98
Dim attrTypeSyntax = attr.
Name
Symbols\Source\SourceMethodSymbol.vb (7)
1776
diagnostics.Add(ERRID.ERR_DllImportNotLegalOnDeclare, syntax.
Name
.GetLocation())
1780
diagnostics.Add(ERRID.ERR_DllImportNotLegalOnGetOrSet, syntax.
Name
.GetLocation())
1784
diagnostics.Add(ERRID.ERR_DllImportNotLegalOnEventMethod, syntax.
Name
.GetLocation())
1789
diagnostics.Add(ERRID.ERR_DllImportOnInterfaceMethod, syntax.
Name
.GetLocation())
1794
diagnostics.Add(ERRID.ERR_DllImportOnGenericSubOrFunction, syntax.
Name
.GetLocation())
1799
diagnostics.Add(ERRID.ERR_DllImportOnInstanceMethod, syntax.
Name
.GetLocation())
1818
diagnostics.Add(ERRID.ERR_DllImportOnNonEmptySubOrFunction, syntax.
Name
.GetLocation())
Symbols\Symbol_Attributes.vb (8)
530
diagnostics.Add(ERRID.ERR_InvalidAssemblyAttribute1, node.
Name
.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
533
diagnostics.Add(ERRID.ERR_InvalidModuleAttribute1, node.
Name
.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
543
diagnostics.Add(ERRID.ERR_InvalidAttributeUsageOnAccessor, node.
Name
.GetLocation,
550
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.
Name
.GetLocation,
562
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.
Name
.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType), ownerName)
565
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.
Name
.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType),
569
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.
Name
.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType),
582
diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidTarget, node.
Name
.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
Syntax\SyntaxFacts.vb (3)
99
Return DirectCast(parent, AttributeSyntax).
Name
Is node
646
If attribute.
Name
Is node Then
650
Dim name As QualifiedNameSyntax = TryCast(attribute.
Name
, QualifiedNameSyntax)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
VisualBasicSyntaxFacts.vb (2)
164
DirectCast(node.Parent, AttributeSyntax).
Name
Is node
627
Return DirectCast(node, AttributeSyntax).
Name
Microsoft.CodeAnalysis.VisualBasic.Features (2)
EditAndContinue\SyntaxComparer.vb (1)
1285
Return DirectCast(node, AttributeSyntax).
Name
GenerateConstructor\GenerateConstructorCodeFixProvider.vb (1)
53
Return attribute.
Name
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\SemanticModelAPITests.vb (3)
1270
Dim aliasSymbol = speculativeModel.GetAliasInfo(DirectCast(attr3.
Name
, IdentifierNameSyntax))
1318
aliasSymbol = speculativeModel.GetAliasInfo(DirectCast(attr6.
Name
, IdentifierNameSyntax))
1354
aliasSymbol = speculativeModel.GetAliasInfo(DirectCast(attr8.
Name
, IdentifierNameSyntax))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
19358
Assert.NotNull(objectUnderTest.
name
)
19359
Dim withObj = objectUnderTest.WithTarget(objectUnderTest.Target).WithName(objectUnderTest.
Name
).WithArgumentList(objectUnderTest.ArgumentList)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
88
name.CheckParent(Of AttributeSyntax)(Function(p) p.
Name
Is name) OrElse
CodeGeneration\VisualBasicSyntaxGenerator.vb (4)
2143
Return DirectCast(declaration, AttributeSyntax).
Name
.ToString()
2148
Return list.Attributes(0).
Name
.ToString()
2216
Return ReplaceWithTrivia(declaration, DirectCast(declaration, AttributeSyntax).
Name
, Me.DottedName(name))
2220
Return ReplaceWithTrivia(declaration, al.Attributes(0).
Name
, Me.DottedName(name))
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (1)
391
Dim name = attribute.
Name
.GetRightmostName()?.ToString()
VisualBasicSyntaxFacts.vb (2)
164
DirectCast(node.Parent, AttributeSyntax).
Name
Is node
627
Return DirectCast(node, AttributeSyntax).
Name
Microsoft.VisualStudio.LanguageServices.VisualBasic (8)
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (2)
201
If Not CompareTypeNames(oldAttribute.
Name
, newAttribute.
Name
) Then
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (2)
1448
startPosition = attribute.
Name
.SpanStart
1477
endPosition = attribute.
Name
.Span.End
CodeModel\VisualBasicCodeModelService.vb (4)
888
Return GetNormalizedName(DirectCast(node, AttributeSyntax).
Name
)
1248
If attribute.
Name
.ToString() = name Then
1760
name = DirectCast(attributeNode, AttributeSyntax).
Name
.ToString()
1764
If attribute.
Name
.ToString() = name Then