27 references to SourceLocation
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Invocation.cs (1)
1439
return new
SourceLocation
(token);
Declarations\DeclarationTreeBuilder.cs (5)
235
var nameLocation = new
SourceLocation
(firstGlobalStatement.GetFirstToken());
239
nameLocation = new
SourceLocation
(firstGlobalStatement.GetFirstToken(includeSkipped: true));
783
nameLocation: new
SourceLocation
(isExtension ? node.Keyword : node.Identifier),
831
nameLocation: new
SourceLocation
(node.Identifier),
869
nameLocation: new
SourceLocation
(node.Identifier),
FlowAnalysis\ControlFlowPass.cs (4)
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));
302
var location = new
SourceLocation
(branch.Branch.Syntax.GetFirstToken());
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
278
diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, new
SourceLocation
(arglistToken));
Symbols\Source\SourceMemberContainerSymbol.cs (10)
5517
new
SourceLocation
(fieldSyntax.Declaration.Variables.First().Identifier));
5561
new
SourceLocation
(methodSyntax.Identifier));
5575
new
SourceLocation
(constructorSyntax.Identifier));
5594
new
SourceLocation
(destructorSyntax.Identifier));
5612
new
SourceLocation
(propertySyntax.Identifier));
5664
new
SourceLocation
(eventFieldSyntax.Declaration.Variables.First().Identifier));
5717
new
SourceLocation
(eventSyntax.Identifier));
5737
new
SourceLocation
(indexerSyntax.ThisKeyword));
5754
new
SourceLocation
(conversionOperatorSyntax.OperatorKeyword));
5769
new
SourceLocation
(operatorSyntax.OperatorKeyword));
Symbols\Source\SourceMemberFieldSymbol.cs (1)
194
var errorLocation = new
SourceLocation
(firstIdentifier);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
202
var location = new
SourceLocation
(tp.Identifier);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
625
diagnostics.Add(ErrorCode.ERR_ObjectCantHaveBases, new
SourceLocation
(name));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
35
var location = new
SourceLocation
(nameToken);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
337
diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, new
SourceLocation
(arglistToken));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9415
var loc = new
SourceLocation
(tree.GetCompilationUnitRoot().FindToken(6));