Package com.caucho.quercus

Examples of com.caucho.quercus.Location


    _isTop = false;
   
    String label = pushForLabel();
   
    try {
      Location location = getLocation();

      expect('(');

      Expr init = null;
View Full Code Here


    _isTop = false;
   
    String label = pushForeachLabel();
   
    try {
      Location location = getLocation();

      expect('(');

      Expr objExpr = parseTopExpr();
View Full Code Here

  {
    boolean oldTop = _isTop;
    _isTop = false;
   
    try {
      Location location = getLocation();
     
      Statement block = null;
     
      try {
        block = parseStatement();
View Full Code Here

      _function.setDeclaringClass(_classDef);
      _function.setPageStatic(oldTop);
     
      _function.setReturnsReference(_returnsReference);

      Location location = getLocation();

      expect('(');

      Arg []args = parseFunctionArgDefinition();
     
View Full Code Here

    /*
    if (! _isTop && _loopLabelList.size() == 0)
      throw error(L.l("cannot 'break' inside a function"));
    */
   
    Location location = getLocation();
   
    int token = parseToken();

    switch (token) {
    case ';':
View Full Code Here

    /*
    if (! _isTop && _loopLabelList.size() == 0)
      throw error(L.l("cannot 'continue' inside a function"));
    */
   
    Location location = getLocation();

    int token = parseToken();

    switch (token) {
    case ';':
View Full Code Here

   * Parses the 'return' statement
   */
  private Statement parseReturn()
    throws IOException
  {
    Location location = getLocation();

    int token = parseToken();

    switch (token) {
    case ';':
View Full Code Here

   * Parses the 'throw' statement
   */
  private Statement parseThrow()
    throws IOException
  {
    Location location = getLocation();
   
    Expr expr = parseExpr();

    return _factory.createThrow(location, expr);
  }
View Full Code Here

   * Parses an expression statement.
   */
  private Statement parseExprStatement()
    throws IOException
  {
    Location location = getLocation();

    Expr expr = parseTopExpr();

    Statement statement = _factory.createExpr(location, expr);

View Full Code Here

                                  @Optional("0") int code)
  {
    value.putField(env, "message", message);
    value.putField(env, "code", LongValue.create(code));

    Location location = env.getLocation();
    if (location != null) {
      if (location.getFileName() != null)
        value.putField(env, "file", env.createString(location.getFileName(), null));
      else
        value.putField(env, "file", env.createStringOld("unknown"));

      value.putField(env, "line", LongValue.create(location.getLineNumber()));
    }

    value.putField(env, "trace", ErrorModule.debug_backtrace(env));
    QuercusException e = new QuercusException();
    e.fillInStackTrace();
View Full Code Here

TOP

Related Classes of com.caucho.quercus.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.