23 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 (6)
Binder\Binder_Expressions.cs (1)
5374var loc = new SourceLocation(argSyntax.SyntaxTree, errorSpan);
Compilation\CSharpCompilation.cs (1)
3252new 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)
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)
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);