@Override public void caseAThreadDefinition(AThreadDefinition node, Environment question) throws AnalysisException { // ORIGINAL CODE FROM ASSISTANT // node.setOperationDef(AThreadDefinitionAssistantTC.getThreadDefinition(node)); // Mine non static call of the code. node.setOperationDef(getThreadDefinition(node)); }
/** * Creates a new tree field only constructor {@code AThreadDefinition TAG=thread} 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 statement_ the {@link PStm} node for the {@code statement} child of this {@link AThreadDefinition} node * @param operationName_ the {@link ILexNameToken} node for the {@code operationName} child of this {@link AThreadDefinition} node * @param operationDef_ the {@link AExplicitOperationDefinition} node for the {@code operationDef} child of this {@link AThreadDefinition} node */ public AThreadDefinition(ILexLocation location_, NameScope nameScope_, Boolean used_, AAccessSpecifierAccessSpecifier access_, Pass pass_, PStm statement_, ILexNameToken operationName_, AExplicitOperationDefinition operationDef_) { super(location_,null,nameScope_,used_,null,access_,null,pass_); this.setStatement(statement_); this.setOperationName(operationName_); this.setOperationDef(operationDef_); }
/** * Creates a new complete constructor {@code AThreadDefinition} 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 statement_ the {@link PStm} node for the {@code statement} child of this {@link AThreadDefinition} node * @param operationName_ the {@link ILexNameToken} node for the {@code operationName} child of this {@link AThreadDefinition} node * @param operationDef_ the {@link AExplicitOperationDefinition} node for the {@code operationDef} child of this {@link AThreadDefinition} node */ public AThreadDefinition(ILexLocation location_, ILexNameToken name_, NameScope nameScope_, Boolean used_, SClassDefinition classDefinition_, AAccessSpecifierAccessSpecifier access_, PType type_, Pass pass_, PStm statement_, ILexNameToken operationName_, AExplicitOperationDefinition operationDef_) { super(location_,name_,nameScope_,used_,classDefinition_,access_,type_,pass_); this.setStatement(statement_); this.setOperationName(operationName_); this.setOperationDef(operationDef_); }