package org.shedlang.compiler.shid.instructions; import org.shedlang.compiler.sources.Source; import org.shedlang.compiler.types.SimpleStructType; import java.util.List; /** * Push a struct type value onto the temporary value stack with the given * definition. */ public record ShidDefineStruct( SimpleStructType type, // TODO: remove fields? We should have fields from the type info. List fields, Source source ) implements ShidInstruction { public record Field(String name, Source source) { } @Override public boolean isBlockTerminator() { return false; } }