e.g. continue; continue $a;
continue; continue $a;
ContinueStatement : continue [no LineTerminator here] [Identifier] ;
This class represents a continue statement in the storedprocedure language. It extends the Statement that could part of a block.
Statement
84098410841184128413841484158416841784188419
protected void consumeStatementContinueWithLabel() { // ContinueStatement ::= 'continue' Identifier ';' // continue pushs a position on this.intStack in case there is no label pushOnAstStack( new ContinueStatement( this.identifierStack[this.identifierPtr--], this.intStack[this.intPtr--], this.endStatementPosition)); this.identifierLengthPtr--; }
242243244245246247248249250251252
public void testDeleteContinue() throws Exception { String str = "<?php continue $a;?>"; String expected = "<?php continue;?>"; parseAndCompare(str, expected, new ICodeManiplator() { public void manipulate(Program program) { ContinueStatement statement = (ContinueStatement) program .statements().get(0); statement.getExpression().delete(); } }); }
342343344345346347348349
return this; } @Override public StatementEnd continue_() { appendCallElement(new BranchCallElement(new ContinueStatement())); return this; }
348349350351352353354355
return this; } @Override public StatementEnd continue_(String label) { appendCallElement(new BranchCallElement(new ContinueStatement(label))); return this; }
380381382383384385386387
386387388389390391392393
391392393394395396397398
397398399400401402403404
return this; } @Override public StatementEnd continue_(final String label) { appendCallElement(new BranchCallElement(new ContinueStatement(label))); return this; }