14 references to SourceLocation
Microsoft.CodeAnalysis (6)
Diagnostic\Location.cs (1)
165return new SourceLocation(syntaxTree, textSpan);
Diagnostic\SourceLocation.cs (5)
27: this(node.SyntaxTree, node.Span) 32: this(token.SyntaxTree!, token.Span) 37: this(nodeOrToken.SyntaxTree!, nodeOrToken.Span) 43: this(trivia.SyntaxTree!, trivia.Span) 49: this(syntaxRef.SyntaxTree, syntaxRef.Span)
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (1)
5535var loc = new SourceLocation(argSyntax.SyntaxTree, errorSpan);
Binder\Binder_Query.cs (1)
737SourceLocation errorLocation = new SourceLocation(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart));
Compilation\CSharpCompilation.cs (1)
3404new SourceLocation(syntaxTree, filterSpanWithinTree.Value) :
Compiler\DocumentationCommentCompiler.cs (1)
699Location location = new SourceLocation(trivia.SyntaxTree, new TextSpan(trivia.SpanStart, 0));
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
104_diagnostics.Add(ErrorCode.WRN_UnprocessedXMLComment, new SourceLocation(trivia.SyntaxTree, new TextSpan(start, length)));
DocumentationComments\SourceDocumentationCommentUtils.cs (1)
81diagnostics.Add(ErrorCode.WRN_UnprocessedXMLComment, new SourceLocation(tree, new TextSpan(start, length)));
Syntax\CSharpSyntaxTree.cs (1)
761return new SourceLocation(this, span);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
60yield return new CSDiagnostic(sdi, new SourceLocation(syntaxTree, TextSpan.FromBounds(spanStart, spanEnd)));