27 references to GetLocation
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.cs (5)
561var location = syntax.GetLocation(); 568var location = syntax.GetLocation(); 738diagnostics.Add(info, node.GetLocation()); 760Debug.Assert(syntax.GetLocation() != null); 767syntax.GetLocation()!);
Binder\Binder_Await.cs (6)
195Error(diagnostics, info, nodeOrToken.GetLocation()!); 207Error(diagnostics, ErrorCode.ERR_AwaitInUnsafeContext, nodeOrToken.GetLocation()!); 212Error(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.GetLocation()!); 217Error(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.GetLocation()!); 223Error(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.GetLocation()!); 229Error(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.GetLocation()!);
Binder\Binder_Expressions.cs (1)
2482var location = thisOrBaseToken.GetLocation();
Binder\RefSafetyAnalysis.cs (1)
1109var location = syntax.GetLocation();
FlowAnalysis\NullableWalker.cs (1)
994Diagnostics.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)
248context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, nodeOrToken.GetLocation(), messageArgs: nodeOrToken.ToString()));
Microsoft.CodeAnalysis.VisualBasic (9)
Analysis\FlowAnalysis\ControlFlowPass.vb (1)
177Me.diagnostics.Add(errId, errorLocation.GetLocation())
Binding\Binder.vb (3)
877Dim diag As New VBDiagnostic(info, syntax.GetLocation()) 907Dim diag As New VBDiagnostic(info, syntax.GetLocation()) 929Return diagBag.Add(useSiteInfo, syntax.GetLocation())
Binding\BindingDiagnosticBag.vb (1)
87Return Add(syntax.GetLocation(), useSiteInfo)
Binding\ImplicitVariableBinder.vb (1)
192_possiblyShadowingVariables.Add(name, New ShadowedVariableInfo(name, syntax.GetLocation(), errorId))
Errors\DiagnosticBagExtensions.vb (1)
81Return Not useSiteDiagnostics.IsNullOrEmpty AndAlso diagnostics.Add(node.GetLocation, useSiteDiagnostics)
Symbols\Source\SourceMethodSymbol.vb (1)
2178diagBag.Add(diag.UseSiteInfo, errorLocation.GetLocation())
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
203diagBag.Add(diag.UseSiteInfo, errorLocation.GetLocation())
Microsoft.CodeAnalysis.Workspaces (2)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
372reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan); 454reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);