/** * Sets the {@code _superdef} child of this {@link AInheritedDefinition} node. * @param value the new {@code _superdef} child of this {@link AInheritedDefinition} node */ public void setSuperdef(PDefinition value) { if( value != null && value.parent() == null) { value.parent(this); } this._superdef = value; }
/** * Sets the {@code _ctorDefinition} child of this {@link ANewExp} node. * @param value the new {@code _ctorDefinition} child of this {@link ANewExp} node */ public void setCtorDefinition(PDefinition value) { if( value != null && value.parent() == null) { value.parent(this); } this._ctorDefinition = value; }
/** * Sets the {@code _stateDefinition} child of this {@link AImplicitOperationDefinition} node. * @param value the new {@code _stateDefinition} child of this {@link AImplicitOperationDefinition} node */ public void setStateDefinition(PDefinition value) { if( value != null && value.parent() == null) { value.parent(this); } this._stateDefinition = value; }
/** * Sets the {@code _def} child of this {@link AExists1Exp} node. * @param value the new {@code _def} child of this {@link AExists1Exp} node */ public void setDef(PDefinition value) { if (this._def != null) { this._def.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._def = value; }
/** * Sets the {@code _typedef} child of this {@link AIsExp} node. * @param value the new {@code _typedef} child of this {@link AIsExp} node */ public void setTypedef(PDefinition value) { if (this._typedef != null) { this._typedef.parent(null); } if (value != null) { if (value.parent() != null) { value.parent().removeChild(value); } value.parent(this); } this._typedef = value; }
d.parent(result);
p.parent(result);
@Override public LexNameSet caseASeqCompSeqExp(ASeqCompSeqExp node, FreeVarInfo info) throws AnalysisException { FreeVarInfo local = null; LexNameSet names = new LexNameSet(); // Note "first" is conditional if (node.getSeqBind() != null) { PDefinition def = AstFactory.newAMultiBindListDefinition(node.getLocation(), af.createPBindAssistant().getMultipleBindList(node.getSeqBind())); def.parent(node.getSeqBind()); local = info.set(new FlatEnvironment(af, def, info.env)); names.addAll(node.getSeqBind().apply(this, local)); } else if (node.getSetBind() != null) { PDefinition def = AstFactory.newAMultiBindListDefinition(node.getLocation(), af.createPBindAssistant().getMultipleBindList(node.getSetBind())); def.parent(node.getSetBind()); local = info.set(new FlatEnvironment(af, def, info.env)); names.addAll(node.getSetBind().apply(this, local)); } if (node.getPredicate() != null) { node.getPredicate().apply(this, local); } return names; }