Package anvil.script.statements

Examples of anvil.script.statements.FunctionStatement.declare()


        {
          consumeSymbol();
          FunctionStatement function = _statement.getFunctionStatement();
          type = function.lookupDeclaration(symbol);
          if (type == null) {
            type = function.declare(symbol);
          }
        }
        break;
       
      case ASSIGN:
View Full Code Here


          type = _statement.lookupAnyDeclaration(symbol);
          if (type == null) {
            consumeSymbol();
            FunctionStatement function = _statement.getFunctionStatement();
            if (function != null) {
              type = function.declare(symbol);
            } else {
              listener.error(_location, "Entity '" + _name + "' is undeclared");
              return null;
            }
          }
View Full Code Here

    case FALSE:
    case TRUE:
    case PATTERN:
      ArrayArgument();
      FunctionStatement function = flowPeek().getFunctionStatement();
      VariableNode var = new VariableNode(function.declare("array$"+root.hashCode()));
      Location location = parent.getLocation();
      AssignmentNode assign = new AssignmentNode(location, 2);
      assign.setChild(0, new EmptyReferenceNode(var));
      assign.setChild(1, pop());
      parent.setChildStatement(new EvalStatement(parent, location,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.