19 references to GetLocation
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder.cs (3)
556
var location = syntax.
GetLocation
();
563
var location = syntax.
GetLocation
();
728
diagnostics.Add(info, node.
GetLocation
());
Binder\Binder_Conversions.cs (2)
324
CheckFeatureAvailability(syntax.SyntaxTree, MessageID.IDS_FeatureStaticAbstractMembersInInterfaces, diagnostics, syntax.
GetLocation
()!);
336
CheckFeatureAvailability(syntax.SyntaxTree, MessageID.IDS_FeatureCheckedUserDefinedOperators, diagnostics, syntax.
GetLocation
()!);
Binder\RefSafetyAnalysis.cs (1)
887
var location = syntax.
GetLocation
();
Symbols\Source\SourceLabelSymbol.cs (1)
83
: ImmutableArray.Create<Location>(_identifierNodeOrToken.
GetLocation
()!);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
248
context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, nodeOrToken.
GetLocation
(), messageArgs: nodeOrToken.ToString()));
Microsoft.CodeAnalysis.VisualBasic (9)
Analysis\FlowAnalysis\ControlFlowPass.vb (1)
177
Me.diagnostics.Add(errId, errorLocation.
GetLocation
())
Binding\Binder.vb (3)
877
Dim diag As New VBDiagnostic(info, syntax.
GetLocation
())
907
Dim diag As New VBDiagnostic(info, syntax.
GetLocation
())
929
Return diagBag.Add(useSiteInfo, syntax.
GetLocation
())
Binding\BindingDiagnosticBag.vb (1)
90
Return Add(syntax.
GetLocation
(), useSiteInfo)
Binding\ImplicitVariableBinder.vb (1)
192
_possiblyShadowingVariables.Add(name, New ShadowedVariableInfo(name, syntax.
GetLocation
(), errorId))
Errors\DiagnosticBagExtensions.vb (1)
81
Return Not useSiteDiagnostics.IsNullOrEmpty AndAlso diagnostics.Add(node.
GetLocation
, useSiteDiagnostics)
Symbols\Source\SourceMethodSymbol.vb (1)
2168
diagBag.Add(diag.UseSiteInfo, errorLocation.
GetLocation
())
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
201
diagBag.Add(diag.UseSiteInfo, errorLocation.
GetLocation
())
Microsoft.CodeAnalysis.Workspaces (2)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
369
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);
451
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);