Example #1
0
 /** @see de.unika.ipd.grgen.ast.BaseNode#checkLocal() */
 @Override
 protected boolean checkLocal() {
   if (!(nodeType.getType() instanceof NodeTypeNode)) {
     reportError("argument of nodes(.) must be a node type");
     return false;
   }
   return true;
 }
Example #2
0
 @Override
 protected IR constructIR() {
   return new NodesExpr(nodeType.checkIR(Expression.class), getType().getType());
 }