Package anvil.script.statements

Examples of anvil.script.statements.ConstantVariableStatement


    symbol = jj_consume_token(SYMBOL);
    jj_consume_token(ASSIGN);
      Location location = toLocation(symbol);
      String name = symbol.image;
      DefinitionStatement target = flowPeek().getDefinitionStatement();
      ConstantVariableStatement constant = new ConstantVariableStatement(location, target, name, null, keyword.document);
      if (target.lookupDeclaration(name) == null && !target.isEntityReserved(name)) {
        target.declare(constant);
      } else {
        error(location, "Entity '" + name + "' is already declared");
      }
      flowPush(constant);
    ValueExpression();
      constant.setExpression((Expression)pop());
      flowPop();
  }
View Full Code Here

TOP

Related Classes of anvil.script.statements.ConstantVariableStatement

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.