1 package org.simantics.scl.compiler.internal.parsing.declarations;
5 import org.simantics.scl.compiler.elaboration.expressions.Expression;
6 import org.simantics.scl.compiler.internal.parsing.Token;
8 public class DAnnotationAst extends DeclarationAst {
9 public static final DAnnotationAst[] EMPTY_ARRAY = new DAnnotationAst[0];
11 public final Token id;
12 public final Expression[] parameters;
14 public DAnnotationAst(Token id, List<Expression> parameters) {
16 this.parameters = parameters.toArray(new Expression[parameters.size()]);
20 public void toString(int indentation, StringBuilder b) {
21 for(int i=0;i<indentation;++i)