Package org.eclipse.jdt.internal.compiler.parser

Examples of org.eclipse.jdt.internal.compiler.parser.RecoveredType


    this.isOrphanCompletionNode = false;


    /* if in context of a type, then persists the identifier into a fake field return type */
    if (this.currentElement instanceof RecoveredType){
      RecoveredType recoveredType = (RecoveredType)this.currentElement;
      /* filter out cases where scanner is still inside type header */
      if (recoveredType.foundOpeningBrace) {
        /* generate a pseudo field with a completion on type reference */
        if (orphan instanceof TypeReference){
          this.currentElement = this.currentElement.add(new SelectionOnFieldType((TypeReference)orphan), 0);
View Full Code Here


    if ((this.lastErrorEndPosition >= this.selectionStart)
      && (this.lastErrorEndPosition <= this.selectionEnd+1)){
      return false;
    }
    RecoveredType recoveredType = (RecoveredType)this.currentElement;
    /* filter out cases where scanner is still inside type header */
    if (recoveredType.foundOpeningBrace) {
      this.assistNode = this.getTypeReference(0);
      this.lastCheckPoint = this.assistNode.sourceEnd + 1;
      this.isOrphanCompletionNode = true;
View Full Code Here

        this.expressionStack,
        (this.expressionPtr -= length) + 1,
        arg.annotations = new Annotation[length],
        0,
        length);
      RecoveredType currentRecoveryType = this.currentRecoveryType();
      if (currentRecoveryType != null)
        currentRecoveryType.annotationsConsumed(arg.annotations);
    }

    pushOnAstStack(arg);

    this.assistNode = arg;
View Full Code Here

      if (!(this.currentElement instanceof RecoveredType)) {
        resetStacks();
        return HALT;
      }

      RecoveredType recoveredType = (RecoveredType) this.currentElement;
      if (recoveredType.typeDeclaration != null && recoveredType.typeDeclaration.allocation == this.assistNode) {
        resetStacks();
        return HALT;
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.parser.RecoveredType

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.