28 references to SourceLocation
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
690
return !tree.SupportsLocations ? NoLocation.Singleton : new
SourceLocation
(this);
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_QueryErrors.cs (4)
50
new
SourceLocation
(queryClause));
58
symbols), new
SourceLocation
(fromClause != null ? fromClause.Expression : queryClause));
66
symbols), new
SourceLocation
(fromClause.Expression));
74
symbols), new
SourceLocation
(fromClause != null ? fromClause.Expression : queryClause));
Binder\Binder_Symbols.cs (1)
1679
diagnostics.ReportUseSiteDiagnostic(useSiteInfo.DiagnosticInfo, new
SourceLocation
(syntax));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1133
SourceLocation sourceLocation = new
SourceLocation
(argument.Syntax);
Compilation\CSharpCompilation.cs (2)
2962
new
SourceLocation
(root);
3533
diagnostics.Add(ErrorCode.WRN_ConflictingChecksum, new
SourceLocation
(checksumDirective), path);
Declarations\DeclarationTreeBuilder.cs (3)
231
directives.Add(new ReferenceDirective(directiveNode.File.ValueText, new
SourceLocation
(directiveNode)));
430
nameLocation: new
SourceLocation
(dotted.Right),
535
nameLocation: new
SourceLocation
(name),
FlowAnalysis\ControlFlowPass.cs (1)
382
new
SourceLocation
(syntax), syntax.ToString());
FlowAnalysis\DefiniteAssignment.cs (2)
464
location = new
SourceLocation
(node);
2211
Diagnostics.Add(ErrorCode.ERR_FixedLocalInLambda, new
SourceLocation
(node.Syntax), localSymbol);
Symbols\Source\ExplicitInterfaceHelpers.cs (2)
207
var location = new
SourceLocation
(explicitInterfaceSyntax);
223
var location = new
SourceLocation
(explicitInterfaceSyntax);
Symbols\Source\SourceCustomEventSymbol.cs (1)
221
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4967
diagnostics.Add(ErrorCode.ERR_GlobalStatement, new
SourceLocation
(globalStatement));
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
229
return new
SourceLocation
(b);
464
var location = new
SourceLocation
(typeSyntax);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
633
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(syntax.ExplicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourcePropertySymbolBase.cs (1)
805
_explicitInterfaceType.CheckAllConstraints(compilation, conversions, new
SourceLocation
(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
833
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(name), diagnostics);
Syntax\CSharpSyntaxNode.cs (1)
215
return new
SourceLocation
(this);
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (1)
2631
diagnosticBag.Add(ERRID.WRN_MultipleDeclFileExtChecksum, New
SourceLocation
(checksumDirective), path)
Declarations\DeclarationTreeBuilder.vb (1)
110
directives.Add(New ReferenceDirective(directiveNode.File.ValueText, New
SourceLocation
(directiveNode)))
Syntax\VisualBasicSyntaxNode.vb (1)
462
Return New
SourceLocation
(Me)