19 references to GetLocation
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Await.cs (5)
211Error(diagnostics, info, nodeOrToken.GetLocation()!); 231Error(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.GetLocation()!); 236Error(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.GetLocation()!); 247Error(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.GetLocation()!); 253Error(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.GetLocation()!);
Binder\Binder_Expressions.cs (1)
2606var 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)
31ReportDiagnosticsIfUnsafeMemberAccess(bag, symbol, node, static node => node.GetLocation()); 202static node => node.GetLocation(),
Binder\Binder.cs (5)
600var location = syntax.GetLocation(); 607var location = syntax.GetLocation(); 777diagnostics.Add(info, node.GetLocation()); 820Debug.Assert(syntax.GetLocation() != null); 827syntax.GetLocation()!);
Binder\RefSafetyAnalysis.cs (1)
1463var location = syntax.GetLocation();
FlowAnalysis\NullableWalker.cs (1)
1147Diagnostics.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)
375reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan); 461reverseMappedLocations[tokenOrNode.GetLocation()!] = baseSyntaxTree.GetLocation(conflictAnnotation.OriginalSpan);