/** * Creates a new AST. * * @param type The type of the AST. * * @param children The children of the AST. * * @param position The position of the AST. */ public AST(final E type, final List<IAST<E>> children, final Position position) { this.type = type; this.children = children; this.position = position; assert invariants(); }
/** * Creates a new AST. * * @param type The type of the AST. * * @param children The children of the AST. * * @param position The position of the AST. */ public AST(final E type, final List<IAST<E>> children, final Position position) { this.type = type; this.children = children; this.position = position; assert invariants(); }