@Override public void copyState(Parser from) { super.copyState(from); CompletionParser parser = (CompletionParser) from; this.invocationType = parser.invocationType; this.qualifier = parser.qualifier; this.inReferenceExpression = parser.inReferenceExpression; this.hasUnusedModifiers = parser.hasUnusedModifiers; this.canBeExplicitConstructor = parser.canBeExplicitConstructor; } /*
public void copyState(Parser from) { super.copyState(from); CompletionParser parser = (CompletionParser) from; this.invocationType = parser.invocationType; this.qualifier = parser.qualifier; this.inReferenceExpression = parser.inReferenceExpression; this.hasUnusedModifiers = parser.hasUnusedModifiers; this.canBeExplicitConstructor = parser.canBeExplicitConstructor; } /*
public void copyState(Parser from) { super.copyState(from); CompletionParser parser = (CompletionParser) from; this.invocationType = parser.invocationType; this.qualifier = parser.qualifier; this.inReferenceExpression = parser.inReferenceExpression; this.hasUnusedModifiers = parser.hasUnusedModifiers; this.canBeExplicitConstructor = parser.canBeExplicitConstructor; } /*
public void copyState(CommitRollbackParser from) { super.copyState(from); CompletionParser parser = (CompletionParser) from; this.invocationType = parser.invocationType; this.qualifier = parser.qualifier; this.inReferenceExpression = parser.inReferenceExpression; this.hasUnusedModifiers = parser.hasUnusedModifiers; this.canBeExplicitConstructor = parser.canBeExplicitConstructor; } /*
public void copyState(CommitRollbackParser from) { super.copyState(from); CompletionParser parser = (CompletionParser) from; this.invocationType = parser.invocationType; this.qualifier = parser.qualifier; this.inReferenceExpression = parser.inReferenceExpression; this.hasUnusedModifiers = parser.hasUnusedModifiers; this.canBeExplicitConstructor = parser.canBeExplicitConstructor; } /*
protected void commit() { if (this.snapShot == null) { this.snapShot = createSnapShotParser(); } this.snapShot.copyState(this); }
protected void commit() { if (this.snapShot == null) { this.snapShot = createSnapShotParser(); } this.snapShot.copyState(this); }
void commit(boolean isStart) { int newSnapShotPosition = this.scanner.startPosition; if (this.snapShotPtr == -1) { // first commit: addNewSnapShot(newSnapShotPosition); } else { // already have a snapshot, does it match the current position and can thus be reused? int currentStartPosition = isStart ? newSnapShotPosition : this.blockStarts[this.realBlockPtr]; if (currentStartPosition != this.snapShotPositions[this.snapShotPtr]) addNewSnapShot(newSnapShotPosition); // no match, create a new one } this.snapShotStack[this.snapShotPtr].copyState(this); }
if (lastIndexOfElement(K_LAMBDA_EXPRESSION_DELIMITER) >= 0) { parser = createSnapShotParser(); parser.copyState(this);
if (lastIndexOfElement(K_LAMBDA_EXPRESSION_DELIMITER) >= 0) { parser = createSnapShotParser(); parser.copyState(this);
if (lastIndexOfElement(K_LAMBDA_EXPRESSION_DELIMITER) >= 0) { parser = createSnapShotParser(); parser.copyState(this);
return RESTART; this.copyState(this.snapShot); if (assistNodeNeedsStacking()) { this.currentToken = TokenNameSEMICOLON;
return RESTART; this.copyState(this.snapShot); if (assistNodeNeedsStacking()) { this.currentToken = TokenNameSEMICOLON;
return RESTART; this.copyState(this.snapShotStack[this.snapShotPtr]); if (assistNodeNeedsStacking()) { this.currentToken = TokenNameSEMICOLON;