mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Move location creation to instance method on context
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Semmle.Extraction.CSharp.Entities.Statements
|
||||
var typeSymbol = semanticModel.GetDeclaredSymbol(Stmt);
|
||||
var type = typeSymbol.GetAnnotatedType();
|
||||
|
||||
var location = cx.Create(Stmt.Identifier.GetLocation());
|
||||
var location = cx.CreateLocation(Stmt.Identifier.GetLocation());
|
||||
|
||||
Expressions.VariableDeclaration.Create(cx, typeSymbol, type, Stmt.Type, location, Stmt.Type.IsVar, this, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user