Package com.google.dart.engine.ast

Examples of com.google.dart.engine.ast.PrefixExpression


        // let it affect the propagated type when it would result in a loss
        // of precision.
        overrideExpression(is.getExpression(), is.getType().getType(), false);
      }
    } else if (condition instanceof PrefixExpression) {
      PrefixExpression prefix = (PrefixExpression) condition;
      if (prefix.getOperator().getType() == TokenType.BANG) {
        propagateTrueState(prefix.getOperand());
      }
    } else if (condition instanceof ParenthesizedExpression) {
      propagateFalseState(((ParenthesizedExpression) condition).getExpression());
    }
  }
View Full Code Here


        // let it affect the propagated type when it would result in a loss
        // of precision.
        overrideExpression(is.getExpression(), is.getType().getType(), false);
      }
    } else if (condition instanceof PrefixExpression) {
      PrefixExpression prefix = (PrefixExpression) condition;
      if (prefix.getOperator().getType() == TokenType.BANG) {
        propagateFalseState(prefix.getOperand());
      }
    } else if (condition instanceof ParenthesizedExpression) {
      propagateTrueState(((ParenthesizedExpression) condition).getExpression());
    }
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.ast.PrefixExpression

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.