27 references to GetLocation
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.cs (5)
561
var location = syntax.
GetLocation
();
568
var location = syntax.
GetLocation
();
738
diagnostics.Add(info, node.
GetLocation
());
760
Debug.Assert(syntax.
GetLocation
() != null);
767
syntax.
GetLocation
()!);
Binder\Binder_Await.cs (6)
195
Error(diagnostics, info, nodeOrToken.
GetLocation
()!);
207
Error(diagnostics, ErrorCode.ERR_AwaitInUnsafeContext, nodeOrToken.
GetLocation
()!);
212
Error(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.
GetLocation
()!);
217
Error(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.
GetLocation
()!);
223
Error(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.
GetLocation
()!);
229
Error(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.
GetLocation
()!);
Binder\Binder_Expressions.cs (1)
2482
var location = thisOrBaseToken.
GetLocation
();
Binder\RefSafetyAnalysis.cs (1)
1109
var location = syntax.
GetLocation
();
FlowAnalysis\NullableWalker.cs (1)
994
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)
2178
diagBag.Add(diag.UseSiteInfo, errorLocation.
GetLocation
())
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
203
diagBag.Add(diag.UseSiteInfo, errorLocation.
GetLocation
())
Microsoft.CodeAnalysis.Workspaces (2)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
372
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);
454
reverseMappedLocations[tokenOrNode.
GetLocation
()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);