19 references to GetLocation
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Await.cs (5)
211
Error(diagnostics, info, nodeOrToken.
GetLocation
()!);
231
Error(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.
GetLocation
()!);
236
Error(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.
GetLocation
()!);
247
Error(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.
GetLocation
()!);
253
Error(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.
GetLocation
()!);
Binder\Binder_Expressions.cs (1)
2606
var location = thisOrBaseToken.
GetLocation
();
Binder\Binder_Symbols.cs (1)
2823
=> CheckFeatureAvailability(syntax.SyntaxTree!, feature, diagnostics.DiagnosticBag, (location, syntax), static tuple => tuple.location ?? tuple.syntax.
GetLocation
()!);
Binder\Binder_Unsafe.cs (2)
31
ReportDiagnosticsIfUnsafeMemberAccess(bag, symbol, node, static node => node.
GetLocation
());
202
static node => node.
GetLocation
(),
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\RefSafetyAnalysis.cs (1)
1463
var location = syntax.
GetLocation
();
FlowAnalysis\NullableWalker.cs (1)
1147
Diagnostics.Add(ErrorCode.WRN_MemberNotNull, syntax.
GetLocation
(), member.Name);
Symbols\Source\SourceLabelSymbol.cs (1)
83
: ImmutableArray.Create<Location>(_identifierNodeOrToken.
GetLocation
()!);
Microsoft.CodeAnalysis.Workspaces (2)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
375
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);
461
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);