Package dtool.ast.statements

Examples of dtool.ast.statements.EmptyStatement


 
  public static final ParseRuleDescription RULE_FN_BODY = new ParseRuleDescription("FnBody", "FunctionBody");
 
  protected NodeResult<? extends IFunctionBody> parseFunctionBody() {
    if(tryConsume(DeeTokens.SEMICOLON)) {
      return resultConclude(false, srOf(lastLexElement(), new EmptyStatement()));
    }
    NodeResult<BlockStatement> blockResult = thisParser().parseBlockStatement(false, false);
    if(blockResult.node != null)
      return blockResult;
   
View Full Code Here


  }
  protected NodeResult<? extends IStatement> parseStatement(boolean parseCaseDefault, boolean isScoped) {
    switch (lookAhead()) {
    case SEMICOLON:
      consumeLookAhead();
      return resultConclude(false, srOf(lastLexElement(), new EmptyStatement()));
   
    case OPEN_BRACE:return parseBlockStatement(true, true, isScoped);
   
    case KW_IF: return parseStatement_ifStart();
    case KW_WHILE: return parseStatementWhile();
View Full Code Here

TOP

Related Classes of dtool.ast.statements.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.