From 370b2dbb06671d013f696463682acc50d2d0d34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krau=C3=9F=2C=20Josefine?= Date: Wed, 8 May 2024 13:51:00 +0200 Subject: [PATCH] delete modifier --- Source/abstractSyntaxTree/Class/MethodDecl.java | 2 ++ Source/abstractSyntaxTree/Program.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/abstractSyntaxTree/Class/MethodDecl.java b/Source/abstractSyntaxTree/Class/MethodDecl.java index fce967a..1d3dc98 100644 --- a/Source/abstractSyntaxTree/Class/MethodDecl.java +++ b/Source/abstractSyntaxTree/Class/MethodDecl.java @@ -8,6 +8,8 @@ import java.util.List; public class MethodDecl implements IClass { + // name + private HashMap>> methodContext; private HashMap> typeContext; diff --git a/Source/abstractSyntaxTree/Program.java b/Source/abstractSyntaxTree/Program.java index 8d06220..c07013f 100644 --- a/Source/abstractSyntaxTree/Program.java +++ b/Source/abstractSyntaxTree/Program.java @@ -10,8 +10,8 @@ import java.util.List; public class Program { public List classes; - public HashMap> typeContext; // (class, (type, identifier)) - public HashMap>> methodContext; // (class, (returntype, (identifier, parameter))) + public HashMap> attributContext; // (class, (type, identifier)) + public HashMap>>> methodContext; // (class, (returntype, (identifier, parameter))) public TypeCheckResult typeCheck() throws Exception{ for(RefType oneClass : classes){