30 references to GetLocation
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder.cs (5)
594var location = syntax.GetLocation(); 601var location = syntax.GetLocation(); 771diagnostics.Add(info, node.GetLocation()); 806Debug.Assert(syntax.GetLocation() != null); 813syntax.GetLocation()!);
Binder\Binder_Await.cs (6)
211Error(diagnostics, info, nodeOrToken.GetLocation()!); 223Error(diagnostics, ErrorCode.ERR_AwaitInUnsafeContext, nodeOrToken.GetLocation()!); 228Error(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.GetLocation()!); 233Error(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.GetLocation()!); 239Error(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.GetLocation()!); 245Error(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.GetLocation()!);
Binder\Binder_Expressions.cs (1)
2603var location = thisOrBaseToken.GetLocation();
Binder\Binder_Unsafe.cs (3)
30ReportDiagnosticsIfUnsafeMemberAccess(bag, symbol, node, static node => node.GetLocation()); 36ReportDiagnosticsIfUnsafeMemberAccess(diagnostics, symbol, node, static node => node.GetLocation()); 176static node => node.GetLocation(),
Binder\RefSafetyAnalysis.cs (1)
1344var location = syntax.GetLocation();
FlowAnalysis\NullableWalker.cs (1)
1093Diagnostics.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)
2212diagBag.Add(diag.UseSiteInfo, errorLocation.GetLocation())
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
204diagBag.Add(diag.UseSiteInfo, errorLocation.GetLocation())
Microsoft.CodeAnalysis.Workspaces (2)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
374reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan); 455reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);