28 references to GetLocation
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.cs (5)
600
var location = syntax.
GetLocation
();
607
var location = syntax.
GetLocation
();
777
diagnostics.Add(info, node.
GetLocation
());
820
Debug.Assert(syntax.
GetLocation
() != null);
827
syntax.
GetLocation
()!);
Binder\Binder_Await.cs (6)
211
Error(diagnostics, info, nodeOrToken.
GetLocation
()!);
223
Error(diagnostics, ErrorCode.ERR_AwaitInUnsafeContext, nodeOrToken.
GetLocation
()!);
228
Error(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.
GetLocation
()!);
233
Error(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.
GetLocation
()!);
239
Error(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.
GetLocation
()!);
245
Error(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.
GetLocation
()!);
Binder\Binder_Expressions.cs (1)
2606
var location = thisOrBaseToken.
GetLocation
();
Binder\Binder_Unsafe.cs (2)
31
ReportDiagnosticsIfUnsafeMemberAccess(bag, symbol, node, static node => node.
GetLocation
());
197
static node => node.
GetLocation
(),
Binder\RefSafetyAnalysis.cs (1)
1458
var location = syntax.
GetLocation
();
FlowAnalysis\NullableWalker.cs (1)
1110
Diagnostics.Add(ErrorCode.WRN_MemberNotNull, syntax.
GetLocation
(), member.Name);
Symbols\Source\SourceLabelSymbol.cs (1)
83
: ImmutableArray.Create<Location>(_identifierNodeOrToken.
GetLocation
()!);
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)
87
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)
2212
diagBag.Add(diag.UseSiteInfo, errorLocation.
GetLocation
())
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
204
diagBag.Add(diag.UseSiteInfo, errorLocation.
GetLocation
())
Microsoft.CodeAnalysis.Workspaces (2)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
374
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);
455
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);