105 references to GetLocation
Microsoft.CodeAnalysis.VisualBasic (87)
Binding\Binder_AnonymousTypes.vb (1)
201
Me._fields(fieldIndex) = New AnonymousTypeField(fieldName, fieldNode.
GetLocation
(), fieldIsKey)
Binding\Binder_Constraints.vb (4)
58
constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.Constructor, syntax.
GetLocation
()))
68
constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ReferenceType, syntax.
GetLocation
()))
80
constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ValueType, syntax.
GetLocation
()))
90
constraintsBuilder.Add(New TypeParameterConstraint(constraintType, syntax.
GetLocation
()))
Binding\Binder_Expressions.vb (4)
362
elementLocations.Add(nameSyntax.
GetLocation
)
370
elementLocations.Add(argumentSyntax.
GetLocation
)
395
inferredType = TupleTypeSymbol.Create(node.
GetLocation
, elements, locations, elementNames, Me.Compilation,
3024
Dim referenceLocation As Location = node.
GetLocation
()
Binding\Binder_Lambda.vb (1)
801
parameters(i).Name, parameters(i).Type, sourceParameter.Syntax.
GetLocation
(), parameters(i).IsByRef)
Binding\Binder_Query.vb (12)
257
fields(i) = New AnonymousTypeField(rangeVar.Name, rangeVar.Type, rangeVar.Syntax.
GetLocation
(), isKeyOrByRef:=True)
2184
Dim param = New BoundLambdaParameterSymbol(name, ordinal, type, isByRef:=False, syntaxNode:=syntaxNode, location:=syntaxNode.
GetLocation
())
2194
Dim param = New BoundLambdaParameterSymbol(name, ordinal, type, isByRef:=False, syntaxNode:=syntaxNode, location:=syntaxNode.
GetLocation
())
2787
rangeVar.Name, rangeVar.Type, rangeVar.Syntax.
GetLocation
(), isKeyOrByRef:=True)
3214
fields(j) = New AnonymousTypeField(leftVar.Name, leftVar.Type, leftVar.Syntax.
GetLocation
(), isKeyOrByRef:=True)
3236
rangeVarOpt.Name, rangeVarOpt.Type, rangeVarOpt.Syntax.
GetLocation
(), isKeyOrByRef:=True)
3808
keysRangeVariables(0).Syntax.
GetLocation
(), isKeyOrByRef:=True)
3818
keysRangeVariablesPart1(0).Syntax.
GetLocation
(),
3824
keysRangeVariablesPart2(0).Syntax.
GetLocation
(),
3836
fields(i) = New AnonymousTypeField(rangeVar.Name, rangeVar.Type, rangeVar.Syntax.
GetLocation
(), isKeyOrByRef:=True)
3851
fields(keys) = New AnonymousTypeField(rangeVar.Name, rangeVar.Type, rangeVar.Syntax.
GetLocation
(), isKeyOrByRef:=True)
3864
rangeVar.Name, rangeVar.Type, rangeVar.Syntax.
GetLocation
(), isKeyOrByRef:=True)
Binding\Binder_Symbols.vb (1)
674
Return TupleTypeSymbol.Create(syntax.
GetLocation
,
Binding\Binder_Utils.vb (2)
311
diagBag.Add(pair.UseSiteInfo, syntaxTypeArgument.
GetLocation
())
1001
Dim location = identifier.
GetLocation
()
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (5)
291
Me._diagnostics.Add(ERRID.WRN_XMLDocDuplicateXMLNode1, node2.Node.
GetLocation
(), tagName)
589
Me._diagnostics.Add(ERRID.WRN_XMLDocParseError1, trivia.
GetLocation
(), GetDescription(ex))
671
Me._diagnostics.Add(missingNameValueError, element.
GetLocation
())
686
Me._diagnostics.Add(ERRID.WRN_XMLDocMoreThanOneCommentBlock, theOnlyDocCommentTrivia.
GetLocation
())
704
Me._diagnostics.Add(ERRID.WRN_XMLDocBadXMLLine, theOnlyDocCommentTrivia.
GetLocation
())
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
593
location = originatingSyntax.
GetLocation
()
Compilation\DocumentationComments\DocumentationCommentWalker.vb (2)
281
ProcessBadNameInCrefAttribute(crefAttr, crefAttr.
GetLocation
, errid.Value)
307
Dim location = If(errorLocation, reference.
GetLocation
)
Compilation\SyntaxTreeSemanticModel.vb (1)
1340
Return New AliasSymbol(binder.Compilation, binder.ContainingNamespaceOrType, aliasName, targetSymbol, declarationSyntax.
GetLocation
())
Errors\DiagnosticBagExtensions.vb (1)
63
Return Not useSiteDiagnostics.IsNullOrEmpty AndAlso diagnostics.Add(node.
GetLocation
, useSiteDiagnostics)
Errors\MessageProvider.vb (2)
515
diagnostics.Add(ERRID.ERR_AttributeParameterRequired1, node.Name.
GetLocation
(), parameterName)
520
diagnostics.Add(ERRID.ERR_AttributeParameterRequired2, node.Name.
GetLocation
(), parameterName1, parameterName2)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1387
Me.Diagnostics.Add(ERRID.ERR_CannotUseOnErrorGotoWithClosure, resumeLabel.ResumeStatement.
GetLocation
(),
Symbols\Attributes\AttributeData.vb (4)
240
diagnostics.Add(If(nodeOpt IsNot Nothing, nodeOpt.Name.
GetLocation
, NoLocation.Singleton), useSiteInfo)
245
If(nodeOpt IsNot Nothing, nodeOpt.Name.
GetLocation
, NoLocation.Singleton))
260
Return (arg.ToString(), arg.
GetLocation
())
262
Return (value.ToString(Globalization.CultureInfo.InvariantCulture), nodeOpt.
GetLocation
())
Symbols\Source\ImplementsHelper.vb (1)
497
Not InternalSyntax.Parser.CheckFeatureAvailability(diagBag, implementedMemberSyntax.
GetLocation
(),
Symbols\Source\RangeVariableSymbol.vb (1)
267
Return ImmutableArray.Create(Of Location)(_syntax.
GetLocation
())
Symbols\Source\SourceAssemblySymbol.vb (4)
958
diagnostics.Add(ERRID.ERR_FriendAssemblyNameInvalid, If(nodeOpt IsNot Nothing, nodeOpt.
GetLocation
(), NoLocation.Singleton), "")
965
diagnostics.Add(ERRID.ERR_FriendAssemblyNameInvalid, If(nodeOpt IsNot Nothing, nodeOpt.
GetLocation
(), NoLocation.Singleton), displayName)
973
diagnostics.Add(ERRID.ERR_FriendAssemblyBadArguments, If(nodeOpt IsNot Nothing, nodeOpt.
GetLocation
(), NoLocation.Singleton), displayName)
992
locationAndValue = New Tuple(Of Location, String)(If(nodeOpt IsNot Nothing, nodeOpt.
GetLocation
(), NoLocation.Singleton), displayName)
Symbols\Source\SourceEventSymbol.vb (2)
366
Dim location = syntax.
GetLocation
()
736
Return implementingSyntax.
GetLocation
()
Symbols\Source\SourceMemberContainerTypeSymbol.vb (10)
983
location = asClause.Type.
GetLocation
()
1020
location = syntax.AsClause.Type.
GetLocation
()
1091
location = syntax.AsClause.Type.
GetLocation
()
1127
location = syntax.AsClause.Type.
GetLocation
()
2553
diagBag.Add(ERRID.ERR_InvalidInNamespace, fieldDecl.
GetLocation
())
2568
diagBag.Add(ERRID.ERR_InvalidInNamespace, methodDecl.
GetLocation
())
2587
diagBag.Add(ERRID.ERR_InvalidInNamespace, methodDecl.
GetLocation
())
2599
diagBag.Add(ERRID.ERR_InvalidInNamespace, propertyDecl.PropertyStatement.
GetLocation
())
2608
diagBag.Add(ERRID.ERR_InvalidInNamespace, propertyDecl.
GetLocation
())
2635
diagBag.Add(ERRID.ERR_InvalidInNamespace, memberSyntax.
GetLocation
())
Symbols\Source\SourceMethodSymbol.vb (10)
264
diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.
GetLocation
(), name)
273
diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.
GetLocation
(), name)
1171
Return implementingSyntax.
GetLocation
()
1810
diagnostics.Add(ERRID.ERR_DllImportNotLegalOnDeclare, syntax.Name.
GetLocation
())
1814
diagnostics.Add(ERRID.ERR_DllImportNotLegalOnGetOrSet, syntax.Name.
GetLocation
())
1818
diagnostics.Add(ERRID.ERR_DllImportNotLegalOnEventMethod, syntax.Name.
GetLocation
())
1823
diagnostics.Add(ERRID.ERR_DllImportOnInterfaceMethod, syntax.Name.
GetLocation
())
1828
diagnostics.Add(ERRID.ERR_DllImportOnGenericSubOrFunction, syntax.Name.
GetLocation
())
1833
diagnostics.Add(ERRID.ERR_DllImportOnInstanceMethod, syntax.Name.
GetLocation
())
1852
diagnostics.Add(ERRID.ERR_DllImportOnNonEmptySubOrFunction, syntax.Name.
GetLocation
())
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1339
backupLocation = t.
GetLocation
()
Symbols\Source\SourceNamespaceSymbol.vb (3)
406
Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_TypecharNotallowed), node.
GetLocation
())
424
Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_NamespaceCaseMismatch3, node.Identifier.ValueText, Me.Name, path), node.
GetLocation
())
443
Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NestedGlobalNamespace), node.
GetLocation
())
Symbols\Source\SourcePropertySymbol.vb (1)
1060
Return implementingSyntax.
GetLocation
()
Symbols\Symbol_Attributes.vb (10)
516
diagnostics.Add(ERRID.ERR_InvalidMultipleAttributeUsage1, node.
GetLocation
(), CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
542
diagnostics.Add(ERRID.ERR_InvalidAssemblyAttribute1, node.Name.
GetLocation
, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
545
diagnostics.Add(ERRID.ERR_InvalidModuleAttribute1, node.Name.
GetLocation
, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
555
diagnostics.Add(ERRID.ERR_InvalidAttributeUsageOnAccessor, node.Name.
GetLocation
,
562
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.
GetLocation
,
574
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.
GetLocation
, CustomSymbolDisplayFormatter.ShortErrorName(attributeType), ownerName)
577
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.
GetLocation
, CustomSymbolDisplayFormatter.ShortErrorName(attributeType),
581
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.
GetLocation
, CustomSymbolDisplayFormatter.ShortErrorName(attributeType),
594
diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidTarget, node.Name.
GetLocation
, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
607
diagnostics.Add(useSiteInfo, If(nodeOpt IsNot Nothing, nodeOpt.
GetLocation
(), NoLocation.Singleton))
Syntax\SyntaxFacts.vb (1)
1116
If p.
GetLocation
.SourceSpan.Start < token.SpanStart Then
Syntax\VisualBasicWarningStateMap.vb (1)
91
entries(index) = New WarningStateMapEntry(currentDirective.
GetLocation
().SourceSpan.End, accumulatedGeneralWarningState, accumulatedSpecificWarningState)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
src\roslyn\src\Analyzers\VisualBasic\Analyzers\QualifyMemberAccess\VisualBasicQualifyMemberAccessDiagnosticAnalyzer.vb (1)
43
Return unaryExpressionSyntax.Operand.
GetLocation
()
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
32
syntaxContext.ReportDiagnostic(Diagnostic.Create(Descriptor, modifier.GetLocation(), additionalLocations:={parameterSyntax.
GetLocation
()}))
src\roslyn\src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57
context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor, variableDeclarator.
GetLocation
(), styleOption.Notification,
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (1)
56
nameColonEquals.
GetLocation
(),
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
76
ImmutableArray.Create(notExpression.
GetLocation
()),
Microsoft.CodeAnalysis.VisualBasic.Features (7)
Completion\CompletionProviders\OverrideCompletionProvider.vb (1)
205
Return New TextSpan(methodStatement.
GetLocation
().SourceSpan.End, 0)
GenerateType\VisualBasicGenerateTypeService.vb (1)
432
DirectCast(enclosingNamespace.Parent, NamespaceBlockSyntax).EndNamespaceStatement.
GetLocation
())
src\roslyn\src\Analyzers\VisualBasic\Analyzers\QualifyMemberAccess\VisualBasicQualifyMemberAccessDiagnosticAnalyzer.vb (1)
43
Return unaryExpressionSyntax.Operand.
GetLocation
()
src\roslyn\src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
32
syntaxContext.ReportDiagnostic(Diagnostic.Create(Descriptor, modifier.GetLocation(), additionalLocations:={parameterSyntax.
GetLocation
()}))
src\roslyn\src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57
context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor, variableDeclarator.
GetLocation
(), styleOption.Notification,
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (1)
56
nameColonEquals.
GetLocation
(),
src\roslyn\src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
76
ImmutableArray.Create(notExpression.
GetLocation
()),
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (5)
Microsoft.NetCore.Analyzers\Runtime\BasicSpecifyCultureForToLowerAndToUpper.vb (2)
20
Return DirectCast(invocation.Expression, MemberAccessExpressionSyntax).Name.
GetLocation
()
25
Return DirectCast(node, MemberAccessExpressionSyntax).Name.
GetLocation
()
Microsoft.NetCore.Analyzers\Runtime\BasicUseOrdinalStringComparison.vb (3)
19
Return DirectCast(invocation.Expression, MemberAccessExpressionSyntax).Name.
GetLocation
()
21
Return DirectCast(invocation.Expression, ConditionalAccessExpressionSyntax).WhenNotNull.
GetLocation
()
24
Return invocation.
GetLocation
()
System.Windows.Forms.Analyzers.VisualBasic (1)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.vb (1)
96
invocationExpr.
GetLocation
())