Package org.eclipse.jdt.internal.compiler.ast

Examples of org.eclipse.jdt.internal.compiler.ast.EmptyStatement


}
protected void consumeEmptyStatement() {
  // EmptyStatement ::= ';'
  char[] source = this.scanner.source;
  if (source[this.endStatementPosition] == ';') {
    pushOnAstStack(new EmptyStatement(this.endStatementPosition, this.endStatementPosition));
  } else {
    if(source.length > 5) {
      int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
      int pos = this.endStatementPosition - 4;
      while (source[pos] == 'u') {
        pos--;
      }
      if (source[pos] == '\\' &&
          !((c1 = ScannerHelper.getHexadecimalValue(source[this.endStatementPosition - 3])) > 15
            || c1 < 0
            || (c2 = ScannerHelper.getHexadecimalValue(source[this.endStatementPosition - 2])) > 15
            || c2 < 0
            || (c3 = ScannerHelper.getHexadecimalValue(source[this.endStatementPosition - 1])) > 15
            || c3 < 0
            || (c4 = ScannerHelper.getHexadecimalValue(source[this.endStatementPosition])) > 15
            || c4 < 0) &&
          ((char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4)) == ';'){
        // we have a Unicode for the ';' (/u003B)
        pushOnAstStack(new EmptyStatement(pos, this.endStatementPosition));
        return;
      }
    }
    pushOnAstStack(new EmptyStatement(this.endPosition + 1, this.endStatementPosition));
  }
}
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.EmptyStatement

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.