This commit is contained in:
Ahmad 2024-05-02 15:07:14 +02:00
commit b022244498
4 changed files with 4 additions and 4 deletions

View File

@ -2,5 +2,5 @@ package de.maishai.ast.records;
import java.util.List; import java.util.List;
public record Constructor(Id id, List<Parameter> params, Block block) { public record Constructor(Id id, List<Parameter> params, Block block) implements Node {
} }

View File

@ -2,5 +2,5 @@ package de.maishai.ast.records;
import de.maishai.ast.Type; import de.maishai.ast.Type;
public record Field(Id name, Type type) { public record Field(Id name, Type type) implements Node {
} }

View File

@ -1,4 +1,4 @@
package de.maishai.ast.records; package de.maishai.ast.records;
public record FieldId(Boolean field, Expression recipient, Id id) { public record FieldId(Boolean field, Expression recipient, Id id) implements Node {
} }

View File

@ -1,4 +1,4 @@
package de.maishai.ast.records; package de.maishai.ast.records;
public sealed interface Node permits Block, Class, Expression, LocalVariable, MainMethod, Method, Parameter, Program, Statement { public sealed interface Node permits Block, Class, Constructor, Expression, Field, FieldId, LocalVariable, MainMethod, Method, Parameter, Program, Statement {
} }