use of nl.ramsolutions.sw.magik.analysis.helpers.LeaveStatementNodeHelper in project magik-tools by StevenLooman.
the class LocalTypeReasoner method walkPostLeaveStatement.
@Override
protected void walkPostLeaveStatement(final AstNode node) {
// Get results.
final AstNode multiValueExprNode = node.getFirstChild(MagikGrammar.TUPLE);
final ExpressionResult result = multiValueExprNode != null ? this.getNodeType(multiValueExprNode) : new ExpressionResult();
// Find related BODY/EXPRESION nodes.
final LeaveStatementNodeHelper helper = new LeaveStatementNodeHelper(node);
final AstNode bodyNode = helper.getRelatedBodyNode();
final AstNode expressionNode = bodyNode.getFirstAncestor(MagikGrammar.EXPRESSION);
this.addNodeType(expressionNode, result);
}
Aggregations