Examples of lookupDeclaration()


Examples of anvil.script.statements.DefinitionStatement.lookupDeclaration()

    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) {
View Full Code Here

Examples of anvil.script.statements.DefinitionStatement.lookupDeclaration()

    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);
View Full Code Here

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

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

Examples of anvil.script.statements.InterfaceStatement.lookupDeclaration()

    jj_consume_token(SEMICOLON);
        Location location = toLocation(t);
        String name = s.image;
        InterfaceStatement intrface = flowPeek().getInterfaceStatement();
        InterfaceMethodStatement method = new InterfaceMethodStatement(location, intrface, name, t.document, parameters);
        if (intrface.lookupDeclaration(name) == null) {
          intrface.declare(method);
        } else {
          error(location, "Entity '" + name + "' is already declared");
        }
  }
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.