Move location creation to instance method on context

This commit is contained in:
Tamas Vajk
2021-02-10 09:47:02 +01:00
parent 6f07230725
commit 4f693be33b
46 changed files with 85 additions and 95 deletions

View File

@@ -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);