1 package org.simantics.scl.compiler.internal.parsing.declarations;
3 import org.simantics.scl.compiler.elaboration.expressions.printing.ExpressionToStringVisitor;
4 import org.simantics.scl.compiler.elaboration.expressions.records.FieldAssignment;
8 public class DModuleHeader extends DeclarationAst {
9 public final FieldAssignment[] fields;
11 public DModuleHeader(FieldAssignment[] fields) {
16 public void toString(int indentation, StringBuilder b) {
17 for(int i=0;i<indentation;++i) b.append(" ");
19 ExpressionToStringVisitor visitor = new ExpressionToStringVisitor(b);
21 for(FieldAssignment field : fields) {
27 for(int i=0;i<=indentation;++i) b.append(" ");
30 field.value.accept(visitor);
33 for(int i=0;i<indentation;++i) b.append(" ");