25 references to SourceLocation
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
694
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)
1767
diagnostics.ReportUseSiteDiagnostic(useSiteInfo.DiagnosticInfo, new
SourceLocation
(syntax));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1169
SourceLocation sourceLocation = new
SourceLocation
(argument.Syntax);
Compilation\CSharpCompilation.cs (2)
3285
new
SourceLocation
(root);
3937
diagnostics.Add(ErrorCode.WRN_ConflictingChecksum, new
SourceLocation
(checksumDirective), path);
Declarations\DeclarationTreeBuilder.cs (3)
316
directives.Add(new ReferenceDirective(directiveNode.File.ValueText, new
SourceLocation
(directiveNode)));
515
nameLocation: new
SourceLocation
(dotted.Right),
620
nameLocation: new
SourceLocation
(name),
FlowAnalysis\ControlFlowPass.cs (1)
380
new
SourceLocation
(syntax), syntax.ToString());
FlowAnalysis\DefiniteAssignment.cs (2)
423
location = new
SourceLocation
(node);
2331
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)
223
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5829
diagnostics.Add(ErrorCode.ERR_GlobalStatement, new
SourceLocation
(globalStatement));
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
230
return new
SourceLocation
(b);
465
var location = new
SourceLocation
(typeSyntax);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
1131
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(syntax.ExplicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1032
_explicitInterfaceType.CheckAllConstraints(compilation, conversions, new
SourceLocation
(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
1031
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(name), diagnostics);
Syntax\CSharpSyntaxNode.cs (1)
195
return new
SourceLocation
(this);