Package anvil

Examples of anvil.Location


    s = jj_consume_token(SYMBOL);
    jj_consume_token(OPEN);
    FunctionParameterList(parameters);
    jj_consume_token(CLOSE);
    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);
View Full Code Here


      t = jj_consume_token(SUPER);
      jj_consume_token(OPEN);
      ArgumentList();
      jj_consume_token(CLOSE);
      jj_consume_token(SEMICOLON);
      Location location = toLocation(t);
      flowPushChild(new EvalStatement(flowPeek(), location, new Expression(
          new LinkNode(flowPeek(), location, new Name().add(t), (Parent)pop(),
          LinkNode.SUPER), location)));
      flowPop();
      break;
View Full Code Here

    s = jj_consume_token(SYMBOL);
    jj_consume_token(OPEN);
    FunctionParameterList(parameters);
    jj_consume_token(CLOSE);
      boolean is_constructor = false;
      Location location = toLocation(t);
      String document = t.document;
      String name = s.image;

      DefinitionStatement target = flowPeek().getDefinitionStatement();
      ClassStatement      parent = flowPeek().getClassStatement();
View Full Code Here

  final public void Interface() throws ParseException {
  Token t;
  Token s;
  InterfaceRef[] interfaces = new InterfaceRef[0];
    t = jj_consume_token(INTERFACE);
      Location location = toLocation(t);
    s = jj_consume_token(SYMBOL);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EXTENDS:
      jj_consume_token(EXTENDS);
      interfaces = Interfaces(location);
View Full Code Here

  ClassRef base = null;
  InterfaceRef[] interfaces = new InterfaceRef[0];
  LinkNode link;
    t = jj_consume_token(CLASS);
    s = jj_consume_token(SYMBOL);
    Location location = toLocation(t);
    String name = s.image;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case EXTENDS:
      jj_consume_token(EXTENDS);
      link = EntityReference(location);
View Full Code Here

  final public void VariableTypePart(boolean statik, String document) throws ParseException {
  Token symbol;
  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);
View Full Code Here

  final public void ConstantVariablePart(Token keyword) throws ParseException {
  Token symbol;
    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);
View Full Code Here

        types = new ExpressionList(count);
        for(count--; count>=0; count--) {
          types.setChild(count, ((Expression)pop()).getChild(0));
        }
      }
      Location location = toLocation(t);
      Expression assignment = (Expression)pop();
      Statement context = (trystmt != null) ? trystmt : flowPeek();
      if (trystmt == null) {
        trystmt = getEnclosingTryBlock();
      }
View Full Code Here

  final public void FinallyStatement(TryStatement trystmt) throws ParseException {
  Token t;
  Token param;
    t = jj_consume_token(FINALLY);
      Location location = toLocation(t);
      Statement context = (trystmt != null) ? trystmt : flowPeek();
      if (trystmt == null) {
        trystmt = getEnclosingTryBlock();
      }
      FinallyStatement finallystmt = new FinallyStatement(trystmt, toLocation(t));
View Full Code Here

      }
    }
  }

  final public void ListExpression() throws ParseException {
  Location loc = getCurrentLocation();
    List(false, false);
    push(new Expression(pop(), loc));
  }
View Full Code Here

TOP

Related Classes of anvil.Location

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.