14 references to SourceLocation
Microsoft.CodeAnalysis (6)
Diagnostic\Location.cs (1)
165
return 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)
5535
var loc = new
SourceLocation
(argSyntax.SyntaxTree, errorSpan);
Binder\Binder_Query.cs (1)
737
SourceLocation errorLocation = new
SourceLocation
(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart));
Compilation\CSharpCompilation.cs (1)
3404
new
SourceLocation
(syntaxTree, filterSpanWithinTree.Value) :
Compiler\DocumentationCommentCompiler.cs (1)
699
Location 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)
81
diagnostics.Add(ErrorCode.WRN_UnprocessedXMLComment, new
SourceLocation
(tree, new TextSpan(start, length)));
Syntax\CSharpSyntaxTree.cs (1)
761
return new
SourceLocation
(this, span);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
60
yield return new CSDiagnostic(sdi, new
SourceLocation
(syntaxTree, TextSpan.FromBounds(spanStart, spanEnd)));