30 references to GetLocation
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder.cs (5)
594
var location = syntax.
GetLocation
();
601
var location = syntax.
GetLocation
();
771
diagnostics.Add(info, node.
GetLocation
());
806
Debug.Assert(syntax.
GetLocation
() != null);
813
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)
2603
var location = thisOrBaseToken.
GetLocation
();
Binder\Binder_Unsafe.cs (3)
30
ReportDiagnosticsIfUnsafeMemberAccess(bag, symbol, node, static node => node.
GetLocation
());
36
ReportDiagnosticsIfUnsafeMemberAccess(diagnostics, symbol, node, static node => node.
GetLocation
());
176
static node => node.
GetLocation
(),
Binder\RefSafetyAnalysis.cs (1)
1344
var location = syntax.
GetLocation
();
FlowAnalysis\NullableWalker.cs (1)
1093
Diagnostics.Add(ErrorCode.WRN_MemberNotNull, syntax.
GetLocation
(), member.Name);
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)
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);