/** * Creates a new complete constructor {@code AMapUnionPattern} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param left_ the {@link PPattern} node for the {@code left} child of this {@link AMapUnionPattern} node * @param right_ the {@link PPattern} node for the {@code right} child of this {@link AMapUnionPattern} node */ public AMapUnionPattern(ILexLocation location_, List<? extends PDefinition> definitions_, Boolean resolved_, PPattern left_, PPattern right_) { super(location_,definitions_,resolved_); this.setLeft(left_); this.setRight(right_); }
public static AMapUnionPattern newAMapUnionPattern(PPattern left, ILexLocation location, PPattern right) { AMapUnionPattern result = new AMapUnionPattern(); initPattern(result, location); result.setLeft(left); result.setRight(right); return result; }