36 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)
4512var loc = new SourceLocation(argSyntax.SyntaxTree, errorSpan);
Binder\Binder_Query.cs (1)
731SourceLocation errorLocation = new SourceLocation(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart));
Compilation\CSharpCompilation.cs (1)
2961new SourceLocation(syntaxTree, filterSpanWithinTree.Value) :
Compiler\DocumentationCommentCompiler.cs (1)
556Location 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)
769return 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)
83Location l1 = new SourceLocation(syntaxTree, new TextSpan(5, 8)); 98DiagnosticInfo di3 = new CustomErrorInfo(provider, "OtherSymbol", new SourceLocation(syntaxTree, new TextSpan(14, 8))); 99var d3 = new CSDiagnostic(di3, new SourceLocation(syntaxTree, new TextSpan(1, 1)));
Diagnostics\LocationsTests.cs (8)
91Location locX = new SourceLocation(syntaxTree, xSpan); 92Location locXToCloseBrace = new SourceLocation(syntaxTree, xToCloseBraceSpan); 429SourceLocation loc1 = new SourceLocation(syntaxTree, new TextSpan(3, 4)); 430SourceLocation loc2 = new SourceLocation(syntaxTree, new TextSpan(3, 4)); 431SourceLocation loc3 = new SourceLocation(syntaxTree, new TextSpan(3, 7)); 432SourceLocation loc4 = new SourceLocation(tree2, new TextSpan(3, 4)); 492SourceLocation loc1 = new SourceLocation(syntaxTree, span1); 493SourceLocation loc2 = new SourceLocation(syntaxTree, span2);
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\VisualBasicSyntaxNode.vb (2)
287Return New VBDiagnostic(errorInfo, If(tree Is Nothing, New SourceLocation(tree, nodeOrToken.Span), tree.GetLocation(nodeOrToken.Span))) 294Return New VBDiagnostic(errorInfo, If(tree Is Nothing, New SourceLocation(tree, nodeOrToken.Span), tree.GetLocation(nodeOrToken.Span)))
Syntax\VisualBasicSyntaxTree.vb (1)
498Return New SourceLocation(Me, span)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (8)
LocationTests.vb (8)
74Dim locX As New SourceLocation(tree, xSpan) 75Dim locXToEndClass As New SourceLocation(tree, xToEndClassSpan) 275Dim loc1 As SourceLocation = New SourceLocation(tree, New TextSpan(3, 4)) 276Dim loc2 As SourceLocation = New SourceLocation(tree, New TextSpan(3, 4)) 277Dim loc3 As SourceLocation = New SourceLocation(tree, New TextSpan(3, 7)) 278Dim loc4 As SourceLocation = New SourceLocation(tree2, New TextSpan(3, 4)) 299Dim loc1 = New SourceLocation(tree, span1) 300Dim loc2 = New SourceLocation(tree, span2)