From 0163f5c0b6f389dd5e0b2cafdf957908d14b22ef Mon Sep 17 00:00:00 2001 From: laurenz Date: Wed, 8 May 2024 11:47:56 +0200 Subject: [PATCH] fixed compile error --- .../java/de/maishai/typedast/typedclass/TypedAssignment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java b/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java index c185962..2804ae8 100644 --- a/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java +++ b/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java @@ -36,7 +36,7 @@ public class TypedAssignment implements TypedStatement { public TypedNode convertToTypedAST(Map localVar, Map classes, de.maishai.ast.records.Node unTypedAST) { Assignment untyped = (Assignment) unTypedAST; TypedAssignment typedAssignment = new TypedAssignment(); - typedAssignment.setVarName(untyped.loc().name()); + typedAssignment.setVarName(untyped.loc().id().name()); typedAssignment.setValue((TypedExpression) value.convertToTypedAST(localVar, classes, untyped.value())); return typedAssignment; }