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