23 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 (6)
Binder\Binder_Expressions.cs (1)
5374
var loc = new
SourceLocation
(argSyntax.SyntaxTree, errorSpan);
Compilation\CSharpCompilation.cs (1)
3252
new
SourceLocation
(syntaxTree, filterSpanWithinTree.Value) :
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)
66
_current = new CSDiagnostic(sdi, new
SourceLocation
(_syntaxTree, new TextSpan(spanStart, spanWidth)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Diagnostics\DiagnosticTest.cs (3)
83
Location l1 = new
SourceLocation
(syntaxTree, new TextSpan(5, 8));
98
DiagnosticInfo di3 = new CustomErrorInfo(provider, "OtherSymbol", new
SourceLocation
(syntaxTree, new TextSpan(14, 8)));
99
var d3 = new CSDiagnostic(di3, new
SourceLocation
(syntaxTree, new TextSpan(1, 1)));
Diagnostics\LocationsTests.cs (8)
91
Location locX = new
SourceLocation
(syntaxTree, xSpan);
92
Location locXToCloseBrace = new
SourceLocation
(syntaxTree, xToCloseBraceSpan);
429
SourceLocation loc1 = new
SourceLocation
(syntaxTree, new TextSpan(3, 4));
430
SourceLocation loc2 = new
SourceLocation
(syntaxTree, new TextSpan(3, 4));
431
SourceLocation loc3 = new
SourceLocation
(syntaxTree, new TextSpan(3, 7));
432
SourceLocation loc4 = new
SourceLocation
(tree2, new TextSpan(3, 4));
492
SourceLocation loc1 = new
SourceLocation
(syntaxTree, span1);
493
SourceLocation loc2 = new
SourceLocation
(syntaxTree, span2);