Examples of ASTAssignment


Examples of fr.insalyon.citi.golo.compiler.parser.ASTAssignment

      List<GoloCompilationException.Problem> problems = expected.getProblems();
      assertThat(problems.size(), is(1));
      Problem problem = problems.get(0);
      assertThat(problem.getType(), is(UNDECLARED_REFERENCE));
      assertThat(problem.getSource(), instanceOf(ASTAssignment.class));
      ASTAssignment assignment = (ASTAssignment) problem.getSource();
      assertThat(assignment.getName(), is("bar"));
      assertThat(assignment.getLineInSourceCode(), is(5));
      assertThat(assignment.getColumnInSourceCode(), is(3));
      throw expected;
    }
  }
View Full Code Here

Examples of org.openntf.formula.ast.ASTAssignment

        }
      }
      break;
    case KW_FIELD:
      jj_consume_token(KW_FIELD);
      ASTAssignment jjtn003 = new ASTAssignment(this, JJTASSIGNMENT);
      boolean jjtc003 = true;
      jjtree.openNodeScope(jjtn003);
      try {
        t = jj_consume_token(Identifier);
        jj_consume_token(Assign);
        jjtn003.init(t.image, ASTAssignment.FIELD);
        opBool();
      } catch (Throwable jjte003) {
        if (jjtc003) {
          jjtree.clearNodeScope(jjtn003);
          jjtc003 = false;
        } else {
          jjtree.popNode();
        }
        if (jjte003 instanceof RuntimeException) {
          {
            if (true)
              throw (RuntimeException) jjte003;
          }
        }
        if (jjte003 instanceof ParseException) {
          {
            if (true)
              throw (ParseException) jjte003;
          }
        }
        {
          if (true)
            throw (Error) jjte003;
        }
      } finally {
        if (jjtc003) {
          jjtree.closeNodeScope(jjtn003, true);
        }
      }
      break;
    default:
      jj_la1[9] = jj_gen;
      if (jj_2_1(2)) {
        ASTAssignment jjtn004 = new ASTAssignment(this, JJTASSIGNMENT);
        boolean jjtc004 = true;
        jjtree.openNodeScope(jjtn004);
        try {
          t = jj_consume_token(Identifier);
          jj_consume_token(Assign);
          jjtn004.init(t.image, ASTAssignment.VAR);
          opBool();
        } catch (Throwable jjte004) {
          if (jjtc004) {
            jjtree.clearNodeScope(jjtn004);
            jjtc004 = false;
          } else {
            jjtree.popNode();
          }
          if (jjte004 instanceof RuntimeException) {
            {
              if (true)
                throw (RuntimeException) jjte004;
            }
          }
          if (jjte004 instanceof ParseException) {
            {
              if (true)
                throw (ParseException) jjte004;
            }
          }
          {
            if (true)
              throw (Error) jjte004;
          }
        } finally {
          if (jjtc004) {
            jjtree.closeNodeScope(jjtn004, true);
          }
        }
      } else {
        switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case KW_ENVIRONMENT:
          jj_consume_token(KW_ENVIRONMENT);
          ASTAssignment jjtn005 = new ASTAssignment(this, JJTASSIGNMENT);
          boolean jjtc005 = true;
          jjtree.openNodeScope(jjtn005);
          try {
            t = jj_consume_token(Identifier);
            jj_consume_token(Assign);
            jjtn005.init(t.image, ASTAssignment.ENV);
            opBool();
          } catch (Throwable jjte005) {
            if (jjtc005) {
              jjtree.clearNodeScope(jjtn005);
              jjtc005 = false;
            } else {
              jjtree.popNode();
            }
            if (jjte005 instanceof RuntimeException) {
              {
                if (true)
                  throw (RuntimeException) jjte005;
              }
            }
            if (jjte005 instanceof ParseException) {
              {
                if (true)
                  throw (ParseException) jjte005;
              }
            }
            {
              if (true)
                throw (Error) jjte005;
            }
          } finally {
            if (jjtc005) {
              jjtree.closeNodeScope(jjtn005, true);
            }
          }
          break;
        case KW_DEFAULT:
          jj_consume_token(KW_DEFAULT);
          ASTAssignment jjtn006 = new ASTAssignment(this, JJTASSIGNMENT);
          boolean jjtc006 = true;
          jjtree.openNodeScope(jjtn006);
          try {
            t = jj_consume_token(Identifier);
            jj_consume_token(Assign);
            jjtn006.init(t.image, ASTAssignment.DEFAULT);
            opBool();
          } catch (Throwable jjte006) {
            if (jjtc006) {
              jjtree.clearNodeScope(jjtn006);
              jjtc006 = false;
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.