36 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)
4512
var loc = new
SourceLocation
(argSyntax.SyntaxTree, errorSpan);
Binder\Binder_Query.cs (1)
731
SourceLocation errorLocation = new
SourceLocation
(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart));
Compilation\CSharpCompilation.cs (1)
2961
new
SourceLocation
(syntaxTree, filterSpanWithinTree.Value) :
Compiler\DocumentationCommentCompiler.cs (1)
556
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)
769
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);
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\VisualBasicSyntaxNode.vb (2)
287
Return New VBDiagnostic(errorInfo, If(tree Is Nothing, New
SourceLocation
(tree, nodeOrToken.Span), tree.GetLocation(nodeOrToken.Span)))
294
Return New VBDiagnostic(errorInfo, If(tree Is Nothing, New
SourceLocation
(tree, nodeOrToken.Span), tree.GetLocation(nodeOrToken.Span)))
Syntax\VisualBasicSyntaxTree.vb (1)
498
Return New
SourceLocation
(Me, span)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (8)
LocationTests.vb (8)
74
Dim locX As New
SourceLocation
(tree, xSpan)
75
Dim locXToEndClass As New
SourceLocation
(tree, xToEndClassSpan)
275
Dim loc1 As SourceLocation = New
SourceLocation
(tree, New TextSpan(3, 4))
276
Dim loc2 As SourceLocation = New
SourceLocation
(tree, New TextSpan(3, 4))
277
Dim loc3 As SourceLocation = New
SourceLocation
(tree, New TextSpan(3, 7))
278
Dim loc4 As SourceLocation = New
SourceLocation
(tree2, New TextSpan(3, 4))
299
Dim loc1 = New
SourceLocation
(tree, span1)
300
Dim loc2 = New
SourceLocation
(tree, span2)