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