58 instantiations of SourceLocation
Microsoft.CodeAnalysis (2)
Diagnostic\Location.cs (1)
165
return new
SourceLocation
(syntaxTree, textSpan);
Syntax\SyntaxNode.cs (1)
694
return !tree.SupportsLocations ? NoLocation.Singleton : new
SourceLocation
(this);
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Expressions.cs (1)
5535
var loc = new
SourceLocation
(argSyntax.SyntaxTree, errorSpan);
Binder\Binder_Invocation.cs (1)
1425
return new
SourceLocation
(token);
Binder\Binder_Query.cs (1)
737
SourceLocation errorLocation = new
SourceLocation
(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart));
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)
1783
diagnostics.ReportUseSiteDiagnostic(useSiteInfo.DiagnosticInfo, new
SourceLocation
(syntax));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1208
SourceLocation sourceLocation = new
SourceLocation
(argument.Syntax);
Compilation\CSharpCompilation.cs (3)
3404
new
SourceLocation
(syntaxTree, filterSpanWithinTree.Value) :
3405
new
SourceLocation
(root);
4058
diagnostics.Add(ErrorCode.WRN_ConflictingChecksum, new
SourceLocation
(checksumDirective), path);
Compiler\ClsComplianceChecker.cs (1)
666
location = new
SourceLocation
(syntaxRef);
Compiler\DocumentationCommentCompiler.cs (1)
699
Location location = new
SourceLocation
(trivia.SyntaxTree, new TextSpan(trivia.SpanStart, 0));
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
104
_diagnostics.Add(ErrorCode.WRN_UnprocessedXMLComment, new
SourceLocation
(trivia.SyntaxTree, new TextSpan(start, length)));
Declarations\DeclarationTreeBuilder.cs (11)
227
nameLocation: new
SourceLocation
(container),
236
var nameLocation = new
SourceLocation
(firstGlobalStatement.GetFirstToken());
240
nameLocation = new
SourceLocation
(firstGlobalStatement.GetFirstToken(includeSkipped: true));
317
directives.Add(new ReferenceDirective(directiveNode.File.ValueText, new
SourceLocation
(directiveNode)));
342
nameLocation: new
SourceLocation
(parentReference),
355
nameLocation: new
SourceLocation
(parentReference),
516
nameLocation: new
SourceLocation
(dotted.Right),
621
nameLocation: new
SourceLocation
(name),
804
nameLocation: new
SourceLocation
(isExtension ? node.Keyword : node.Identifier),
852
nameLocation: new
SourceLocation
(node.Identifier),
890
nameLocation: new
SourceLocation
(node.Identifier),
Declarations\RootSingleNamespaceDeclaration.cs (1)
39
nameLocation: new
SourceLocation
(treeNode),
Declarations\SingleNamespaceOrTypeDeclaration.cs (1)
39
return new
SourceLocation
(this.SyntaxReference);
DocumentationComments\SourceDocumentationCommentUtils.cs (1)
81
diagnostics.Add(ErrorCode.WRN_UnprocessedXMLComment, new
SourceLocation
(tree, new TextSpan(start, length)));
FlowAnalysis\ControlFlowPass.cs (5)
218
var loc = new
SourceLocation
(leave.Syntax.GetFirstToken());
226
var loc = new
SourceLocation
(leave.Syntax.GetFirstToken());
268
Diagnostics.Add(ErrorCode.WRN_UnreachableCode, new
SourceLocation
(firstToken));
303
var location = new
SourceLocation
(branch.Branch.Syntax.GetFirstToken());
381
new
SourceLocation
(syntax), syntax.ToString());
FlowAnalysis\DefiniteAssignment.cs (2)
423
location = new
SourceLocation
(node);
2332
Diagnostics.Add(ErrorCode.ERR_FixedLocalInLambda, new
SourceLocation
(node.Syntax), localSymbol);
Symbols\Source\ExplicitInterfaceHelpers.cs (2)
211
var location = new
SourceLocation
(explicitInterfaceSyntax);
227
var location = new
SourceLocation
(explicitInterfaceSyntax);
Symbols\Source\SourceCustomEventSymbol.cs (1)
223
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
283
diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, new
SourceLocation
(arglistToken));
Symbols\Source\SourceMemberContainerSymbol.cs (2)
6066
diagnostics.Add(ErrorCode.ERR_GlobalStatement, new
SourceLocation
(globalStatement));
6092
diagnostics.Add(errorCode, new
SourceLocation
(locationSyntax));
Symbols\Source\SourceMemberFieldSymbol.cs (1)
194
var errorLocation = new
SourceLocation
(firstIdentifier);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
206
var location = new
SourceLocation
(tp.Identifier);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
230
return new
SourceLocation
(b);
520
var location = new
SourceLocation
(typeSyntax);
680
diagnostics.Add(ErrorCode.ERR_ObjectCantHaveBases, new
SourceLocation
(name));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
35
var location = new
SourceLocation
(nameToken);
1133
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(syntax.ExplicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceParameterSymbol.cs (1)
47
var location = new
SourceLocation
(name == "" ? syntax.Type : identifier);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1035
_explicitInterfaceType.CheckAllConstraints(compilation, conversions, new
SourceLocation
(explicitInterfaceSpecifier.Name), diagnostics);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
337
diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, new
SourceLocation
(arglistToken));
1031
_explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new
SourceLocation
(name), diagnostics);
Syntax\CSharpSyntaxNode.cs (1)
195
return new
SourceLocation
(this);
Syntax\CSharpSyntaxTree.cs (1)
761
return new
SourceLocation
(this, span);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
60
yield return new CSDiagnostic(sdi, new
SourceLocation
(syntaxTree, TextSpan.FromBounds(spanStart, spanEnd)));
58 references to SourceLocation
Microsoft.CodeAnalysis (3)
Diagnostic\SourceLocation.cs (3)
15
internal sealed class SourceLocation : Location, IEquatable<
SourceLocation
?>
108
public bool Equals(
SourceLocation
? other)
120
return this.Equals(obj as
SourceLocation
);
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder_Expressions.cs (1)
5535
var
loc = new SourceLocation(argSyntax.SyntaxTree, errorSpan);
Binder\Binder_Invocation.cs (2)
1413
private static
SourceLocation
GetCallerLocation(SyntaxNode syntax)
1691
var
callerSourceLocation = enableCallerInfo ? GetCallerLocation(syntax) : null;
Binder\Binder_Query.cs (1)
737
SourceLocation
errorLocation = new SourceLocation(let.SyntaxTree, new TextSpan(let.Identifier.SpanStart, let.Expression.Span.End - let.Identifier.SpanStart));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1208
SourceLocation
sourceLocation = new SourceLocation(argument.Syntax);
Compilation\CSharpCompilation.cs (1)
3399
SourceLocation
? location = null;
Declarations\DeclarationTreeBuilder.cs (1)
236
var
nameLocation = new SourceLocation(firstGlobalStatement.GetFirstToken());
Declarations\MergedNamespaceDeclaration.cs (1)
71
SourceLocation
loc = decl.NameLocation;
Declarations\MergedTypeDeclaration.cs (2)
188
public OneOrMany<
SourceLocation
> NameLocations
195
var builder = ArrayBuilder<
SourceLocation
>.GetInstance(Declarations.Length);
Declarations\SingleNamespaceDeclaration.cs (2)
18
SourceLocation
nameLocation,
68
SourceLocation
nameLocation,
Declarations\SingleNamespaceDeclarationEx.cs (1)
18
SyntaxReference syntaxReference,
SourceLocation
nameLocation,
Declarations\SingleNamespaceOrTypeDeclaration.cs (4)
14
private readonly
SourceLocation
_nameLocation;
26
SourceLocation
nameLocation,
35
public
SourceLocation
Location
51
public
SourceLocation
NameLocation
Declarations\SingleTypeDeclaration.cs (1)
84
SourceLocation
nameLocation,
FlowAnalysis\ControlFlowPass.cs (3)
218
var
loc = new SourceLocation(leave.Syntax.GetFirstToken());
226
var
loc = new SourceLocation(leave.Syntax.GetFirstToken());
303
var
location = new SourceLocation(branch.Branch.Syntax.GetFirstToken());
Symbols\MergedNamespaceSymbol.cs (1)
120
internal override void ForceComplete(
SourceLocation
locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\NamespaceOrTypeSymbol.cs (1)
227
var
loc = declaration.NameLocation;
Symbols\Source\ExplicitInterfaceHelpers.cs (2)
211
var
location = new SourceLocation(explicitInterfaceSyntax);
227
var
location = new SourceLocation(explicitInterfaceSyntax);
Symbols\Source\SourceAssemblySymbol.cs (1)
906
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1574
internal override void ForceComplete(
SourceLocation
locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Source\SourceConstructorSymbol.cs (1)
277
internal sealed override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceEnumConstantSymbol.cs (1)
101
internal sealed override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceEventSymbol.cs (1)
76
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
219
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
574
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceMemberFieldSymbol.cs (3)
194
var
errorLocation = new SourceLocation(firstIdentifier);
268
static bool reportBadMemberFlagIfAny(DeclarationModifiers result, DeclarationModifiers modifier, BindingDiagnosticBag diagnostics,
SourceLocation
errorLocation)
281
internal sealed override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
877
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceModuleSymbol.cs (1)
226
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
206
var
location = new SourceLocation(tp.Identifier);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (6)
118
var
location = singleDeclaration.NameLocation;
164
var
location = singleDeclaration.NameLocation;
212
private
SourceLocation
FindBaseRefSyntax(NamedTypeSymbol baseSym)
294
SourceLocation
baseTypeLocation = null;
296
var interfaceLocations = SpecializedSymbolCollections.GetPooledSymbolDictionaryInstance<NamedTypeSymbol,
SourceLocation
>();
520
var
location = new SourceLocation(typeSyntax);
Symbols\Source\SourceNamespaceSymbol_Completion.cs (1)
13
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
35
var
location = new SourceLocation(nameToken);
442
internal sealed override void ForceComplete(
SourceLocation
locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Source\SourceParameterSymbol.cs (2)
47
var
location = new SourceLocation(name == "" ? syntax.Type : identifier);
173
internal override void ForceComplete(
SourceLocation
locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Source\SourcePropertySymbol.cs (1)
166
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1784
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
350
internal override void ForceComplete(
SourceLocation
locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Symbol.cs (2)
50
internal virtual void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
965
internal static void ForceCompleteMemberConditionally(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, Symbol member, CancellationToken cancellationToken)
Symbols\Tuples\TupleFieldSymbol.cs (1)
148
internal override void ForceComplete(
SourceLocation
? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)