28 references to SourceLocation
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
690return !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)
1679diagnostics.ReportUseSiteDiagnostic(useSiteInfo.DiagnosticInfo, new SourceLocation(syntax));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1133SourceLocation sourceLocation = new SourceLocation(argument.Syntax);
Compilation\CSharpCompilation.cs (2)
2962new SourceLocation(root); 3533diagnostics.Add(ErrorCode.WRN_ConflictingChecksum, new SourceLocation(checksumDirective), path);
Declarations\DeclarationTreeBuilder.cs (3)
231directives.Add(new ReferenceDirective(directiveNode.File.ValueText, new SourceLocation(directiveNode))); 430nameLocation: new SourceLocation(dotted.Right), 535nameLocation: new SourceLocation(name),
FlowAnalysis\ControlFlowPass.cs (1)
382new SourceLocation(syntax), syntax.ToString());
FlowAnalysis\DefiniteAssignment.cs (2)
464location = new SourceLocation(node); 2211Diagnostics.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)
221_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new SourceLocation(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4967diagnostics.Add(ErrorCode.ERR_GlobalStatement, new SourceLocation(globalStatement));
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
229return new SourceLocation(b); 464var 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)
215return new SourceLocation(this);
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (1)
2631diagnosticBag.Add(ERRID.WRN_MultipleDeclFileExtChecksum, New SourceLocation(checksumDirective), path)
Declarations\DeclarationTreeBuilder.vb (1)
110directives.Add(New ReferenceDirective(directiveNode.File.ValueText, New SourceLocation(directiveNode)))
Syntax\VisualBasicSyntaxNode.vb (1)
462Return New SourceLocation(Me)