mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 17:08:03 +00:00
fix missing implementations in records
This commit is contained in:
parent
f544d27250
commit
15efb07f9e
@ -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 {
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user