@Override public PType caseAApplyExpressionTraceCoreDefinition( AApplyExpressionTraceCoreDefinition node, TypeCheckInfo question) throws AnalysisException { return node.getCallStatement().apply(THIS, question); }
/** * Returns a deep clone of this {@link AApplyExpressionTraceCoreDefinition} node. * @return a deep clone of this {@link AApplyExpressionTraceCoreDefinition} node */ public AApplyExpressionTraceCoreDefinition clone() { return new AApplyExpressionTraceCoreDefinition( _location, cloneNode(_callStatement), _currentModule ); }
/** * Creates a new complete constructor {@code AApplyExpressionTraceCoreDefinition} 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 callStatement_ the {@link PStm} node for the {@code callStatement} child of this {@link AApplyExpressionTraceCoreDefinition} node * @param currentModule_ the {@link String} node for the {@code currentModule} child of this {@link AApplyExpressionTraceCoreDefinition} node */ public AApplyExpressionTraceCoreDefinition(ILexLocation location_, PStm callStatement_, String currentModule_) { super(location_); this.setCallStatement(callStatement_); this.setCurrentModule(currentModule_); }
List<PExp> args = null; if (core.getCallStatement() instanceof ACallStm) ACallStm stmt = (ACallStm) core.getCallStatement(); args = stmt.getArgs(); } else ACallObjectStm stmt = (ACallObjectStm) core.getCallStatement(); args = stmt.getArgs(); er.setCurrentModule(core.getCurrentModule()); if (core.getCallStatement() instanceof ACallStm) ACallStm stmt = (ACallStm) core.getCallStatement(); newStatement = AstFactory.newACallStm(stmt.getName().clone(), newargs); } else ACallObjectStm stmt = (ACallObjectStm) core.getCallStatement(); ACallObjectStm newCallStatement;
public static AApplyExpressionTraceCoreDefinition newAApplyExpressionTraceCoreDefinition( PStm stmt, String currentModule) { return new AApplyExpressionTraceCoreDefinition(stmt.getLocation(), stmt, currentModule); }
/** * Called by the {@link AApplyExpressionTraceCoreDefinition} node from {@link AApplyExpressionTraceCoreDefinition#apply(IAnalysis)}. * @param node the calling {@link AApplyExpressionTraceCoreDefinition} node */ public void caseAApplyExpressionTraceCoreDefinition(AApplyExpressionTraceCoreDefinition node) throws AnalysisException { _visitedNodes.add(node); inAApplyExpressionTraceCoreDefinition(node); if(node.getCallStatement() != null && !_visitedNodes.contains(node.getCallStatement())) { node.getCallStatement().apply(this); } outAApplyExpressionTraceCoreDefinition(node); }
/** * Creates a deep clone of this {@link AApplyExpressionTraceCoreDefinition} node while putting all * old node-new node relations in the map {@code oldToNewMap}. * @param oldToNewMap the map filled with the old node-new node relation * @return a deep clone of this {@link AApplyExpressionTraceCoreDefinition} node */ public AApplyExpressionTraceCoreDefinition clone(Map<INode,INode> oldToNewMap) { AApplyExpressionTraceCoreDefinition node = new AApplyExpressionTraceCoreDefinition( _location, cloneNode(_callStatement, oldToNewMap), _currentModule ); oldToNewMap.put(this, node); return node; }
/** * Called by the {@link AApplyExpressionTraceCoreDefinition} node from {@link AApplyExpressionTraceCoreDefinition#apply(IAnalysis)}. * @param node the calling {@link AApplyExpressionTraceCoreDefinition} node */ public void caseAApplyExpressionTraceCoreDefinition(AApplyExpressionTraceCoreDefinition node, Q question) throws AnalysisException { _visitedNodes.add(node); inAApplyExpressionTraceCoreDefinition(node, question); if(node.getCallStatement() != null && !_visitedNodes.contains(node.getCallStatement())) { node.getCallStatement().apply(this, question); } outAApplyExpressionTraceCoreDefinition(node, question); }
/** * Called by the {@link AApplyExpressionTraceCoreDefinition} node from {@link AApplyExpressionTraceCoreDefinition#apply(IPOFAnalysis)}. * @param node the calling {@link AApplyExpressionTraceCoreDefinition} node */ public void caseAApplyExpressionTraceCoreDefinition(AApplyExpressionTraceCoreDefinition node) throws AnalysisException { _visitedNodes.add(node); inAApplyExpressionTraceCoreDefinition(node); if(node.getCallStatement() != null && !_visitedNodes.contains(node.getCallStatement())) { node.getCallStatement().apply(this); } outAApplyExpressionTraceCoreDefinition(node); }
/** * Called by the {@link AApplyExpressionTraceCoreDefinition} node from {@link AApplyExpressionTraceCoreDefinition#apply(IAnalysis)}. * @param node the calling {@link AApplyExpressionTraceCoreDefinition} node */ public A caseAApplyExpressionTraceCoreDefinition(AApplyExpressionTraceCoreDefinition node, Q question) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node, question); mergeReturns(retVal,inAApplyExpressionTraceCoreDefinition(node, question)); if(node.getCallStatement() != null && !_visitedNodes.contains(node.getCallStatement())) { mergeReturns(retVal,node.getCallStatement().apply(this, question)); } mergeReturns(retVal,outAApplyExpressionTraceCoreDefinition(node, question)); return retVal; }
/** * Called by the {@link AApplyExpressionTraceCoreDefinition} node from {@link AApplyExpressionTraceCoreDefinition#apply(IAnalysis)}. * @param node the calling {@link AApplyExpressionTraceCoreDefinition} node */ public A caseAApplyExpressionTraceCoreDefinition(AApplyExpressionTraceCoreDefinition node) throws AnalysisException { _visitedNodes.add(node); A retVal = createNewReturnValue(node); mergeReturns(retVal,inAApplyExpressionTraceCoreDefinition(node)); if(node.getCallStatement() != null && !_visitedNodes.contains(node.getCallStatement())) { mergeReturns(retVal,node.getCallStatement().apply(this)); } mergeReturns(retVal,outAApplyExpressionTraceCoreDefinition(node)); return retVal; }
@Override public STraceCoreDeclIR caseAApplyExpressionTraceCoreDefinition( AApplyExpressionTraceCoreDefinition node, IRInfo question) throws AnalysisException { PStm callStm = node.getCallStatement(); SStmIR callStmCg = callStm.apply(question.getStmVisitor(), question); AApplyExpTraceCoreDeclIR applyTraceCoreDecl = new AApplyExpTraceCoreDeclIR(); applyTraceCoreDecl.setCallStm(callStmCg); return applyTraceCoreDecl; }