Package dtool.ast.expressions

Examples of dtool.ast.expressions.ExpReference


  public boolean isMissing(Expression exp) {
    return exp == null || exp instanceof MissingExpression;
  }
 
  public Expression createExpReference(Reference reference, boolean reportError) {
    ExpReference expReference = createExpReference(reference);
    return conclude(reportError ? createErrorTypeAsExpValue(reference) : null, expReference);
  }
View Full Code Here


    ExpReference expReference = createExpReference(reference);
    return conclude(reportError ? createErrorTypeAsExpValue(reference) : null, expReference);
  }
 
  protected ExpReference createExpReference(Reference ref) {
    ExpReference node = new ExpReference(ref);
    node.setSourceRange(ref.getSourceRange());
    return node;
  }
View Full Code Here

      }
     
      final Expression qualifier = exp;
      exp = null;
      if(qualifier instanceof ExpReference) {
        ExpReference expReference = (ExpReference) qualifier;
        if(expReference.ref instanceof RefQualified) {
          assertTrue(((RefQualified) expReference.ref).isExpressionQualifier);
        } else if(expReference.ref instanceof RefTemplateInstance) {
        } else {
          assertFail(); // ...otherwise refqualified would have been parsed already
View Full Code Here

      varParams = arrayView(varParamsList);
     
      if(parse.consumeExpected(DeeTokens.SEMICOLON)) {
        iterable = parseForeachIterableExpression();
        if(iterable instanceof ExpReference) {
          ExpReference expReference = (ExpReference) iterable;
          if(expReference.ref instanceof RefTypeof) {
            RefTypeof refTypeof = (RefTypeof) expReference.ref;
            refTypeof.detachFromParent();
            // This will remove the typeof error, since foreach allows tuples as the iterable part,
            // and typeof can be used to create a type tuple.
View Full Code Here

TOP

Related Classes of dtool.ast.expressions.ExpReference

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.