27 references to SourceLocation
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Invocation.cs (1)
1161
return new
SourceLocation
(token);
Declarations\DeclarationTreeBuilder.cs (4)
169
nameLocation: new
SourceLocation
(firstGlobalStatement.GetFirstToken()),
682
nameLocation: new
SourceLocation
(node.Identifier),
730
nameLocation: new
SourceLocation
(node.Identifier),
768
nameLocation: new
SourceLocation
(node.Identifier),
FlowAnalysis\ControlFlowPass.cs (4)
219
var loc = new
SourceLocation
(leave.Syntax.GetFirstToken());
227
var loc = new
SourceLocation
(leave.Syntax.GetFirstToken());
269
Diagnostics.Add(ErrorCode.WRN_UnreachableCode, new
SourceLocation
(firstToken));
303
var location = new
SourceLocation
(branch.Branch.Syntax.GetFirstToken());
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
288
diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, new
SourceLocation
(arglistToken));
Symbols\Source\SourceMemberContainerSymbol.cs (10)
4655
new
SourceLocation
(fieldSyntax.Declaration.Variables.First().Identifier));
4699
new
SourceLocation
(methodSyntax.Identifier));
4713
new
SourceLocation
(constructorSyntax.Identifier));
4732
new
SourceLocation
(destructorSyntax.Identifier));
4750
new
SourceLocation
(propertySyntax.Identifier));
4802
new
SourceLocation
(eventFieldSyntax.Declaration.Variables.First().Identifier));
4855
new
SourceLocation
(eventSyntax.Identifier));
4875
new
SourceLocation
(indexerSyntax.ThisKeyword));
4892
new
SourceLocation
(conversionOperatorSyntax.OperatorKeyword));
4907
new
SourceLocation
(operatorSyntax.OperatorKeyword));
Symbols\Source\SourceMemberFieldSymbol.cs (1)
183
var errorLocation = new
SourceLocation
(firstIdentifier);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
205
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)
61
var location = new
SourceLocation
(nameToken);
Symbols\Source\SourceParameterSymbol.cs (1)
47
var locations = ImmutableArray.Create<Location>(new
SourceLocation
(identifier));
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
243
diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, new
SourceLocation
(arglistToken));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9194
var loc = new
SourceLocation
(tree.GetCompilationUnitRoot().FindToken(6));