mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 16:48:03 +00:00
Add initialisition
This commit is contained in:
parent
b0fea68f05
commit
9d35956735
@ -1,11 +1,12 @@
|
||||
package de.maishai.typedast.typedclass;
|
||||
|
||||
import de.maishai.ast.records.*;
|
||||
import de.maishai.ast.records.Class;
|
||||
import de.maishai.ast.records.Constructor;
|
||||
import de.maishai.ast.records.Declaration;
|
||||
import de.maishai.ast.records.Method;
|
||||
import de.maishai.typedast.CodeGenUtils;
|
||||
import de.maishai.typedast.TypedNode;
|
||||
import de.maishai.typedast.Type;
|
||||
import de.maishai.typedast.TypedStatement;
|
||||
import de.maishai.typedast.TypedNode;
|
||||
import lombok.Data;
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
import org.objectweb.asm.Opcodes;
|
||||
@ -51,6 +52,9 @@ public class TypedClass implements TypedNode {
|
||||
@Override
|
||||
public TypedNode convertToTypedAST(Map<String, Type> localVar, Map<String, TypedClass> classes, de.maishai.ast.records.Node unTypedAST) {
|
||||
TypedClass typedClass = new TypedClass();
|
||||
typedClass.setTypedFields(new ArrayList<>());
|
||||
typedClass.setTypedMethods(new ArrayList<>());
|
||||
typedClass.setTypedConstructors(new ArrayList<>());
|
||||
Class c = (Class) unTypedAST;
|
||||
|
||||
for (Declaration field : c.fieldDeclarations()) {
|
||||
|
Loading…
Reference in New Issue
Block a user