Package anvil.script.statements

Examples of anvil.script.statements.VariableStatement


  Expression expr = null;
    symbol = jj_consume_token(SYMBOL);
      Location location = toLocation(symbol);
      String name = symbol.image;
      DefinitionStatement target = flowPeek().getDefinitionStatement();
      VariableStatement var = null;
      if (target.lookupDeclaration(name) == null && !target.isEntityReserved(name)) {
        var = target.declare(location, name, expr, document, statik);
      } else {
        error(location, "Entity '" + name + "' is already declared");
      }
      if (var != null) {
        flowPush(var);
      }
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case ASSIGN:
      jj_consume_token(ASSIGN);
      ValueExpression();
                                 expr = (Expression)pop();
      break;
    default:
      jj_la1[46] = jj_gen;
      ;
    }
      if (var != null) {
        var.setExpression(expr);
        flowPop();
      }
  }
View Full Code Here

TOP

Related Classes of anvil.script.statements.VariableStatement

Copyright © 2018 www.massapicom. 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.