25 references to SourceLocation
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
694return !tree.SupportsLocations ? NoLocation.Singleton : new SourceLocation(this);
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_QueryErrors.cs (4)
50new SourceLocation(queryClause)); 58symbols), new SourceLocation(fromClause != null ? fromClause.Expression : queryClause)); 66symbols), new SourceLocation(fromClause.Expression)); 74symbols), new SourceLocation(fromClause != null ? fromClause.Expression : queryClause));
Binder\Binder_Symbols.cs (1)
1767diagnostics.ReportUseSiteDiagnostic(useSiteInfo.DiagnosticInfo, new SourceLocation(syntax));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1169SourceLocation sourceLocation = new SourceLocation(argument.Syntax);
Compilation\CSharpCompilation.cs (2)
3285new SourceLocation(root); 3937diagnostics.Add(ErrorCode.WRN_ConflictingChecksum, new SourceLocation(checksumDirective), path);
Declarations\DeclarationTreeBuilder.cs (3)
316directives.Add(new ReferenceDirective(directiveNode.File.ValueText, new SourceLocation(directiveNode))); 515nameLocation: new SourceLocation(dotted.Right), 620nameLocation: new SourceLocation(name),
FlowAnalysis\ControlFlowPass.cs (1)
380new SourceLocation(syntax), syntax.ToString());
FlowAnalysis\DefiniteAssignment.cs (2)
423location = new SourceLocation(node); 2331Diagnostics.Add(ErrorCode.ERR_FixedLocalInLambda, new SourceLocation(node.Syntax), localSymbol);
Symbols\Source\ExplicitInterfaceHelpers.cs (2)
207var location = new SourceLocation(explicitInterfaceSyntax); 223var location = new SourceLocation(explicitInterfaceSyntax);
Symbols\Source\SourceCustomEventSymbol.cs (1)
223_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new SourceLocation(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5829diagnostics.Add(ErrorCode.ERR_GlobalStatement, new SourceLocation(globalStatement));
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
230return new SourceLocation(b); 465var 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)
195return new SourceLocation(this);