Package com.google.dart.engine.ast

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


   * @param body the boy of the function whose propagated return type is to be computed
   * @return the propagated return type that was computed
   */
  private Type computePropagatedReturnTypeOfFunction(FunctionBody body) {
    if (body instanceof ExpressionFunctionBody) {
      ExpressionFunctionBody expressionBody = (ExpressionFunctionBody) body;
      return expressionBody.getExpression().getBestType();
    }
    if (body instanceof BlockFunctionBody) {
      final Type[] result = {null};
      body.accept(new GeneralizingAstVisitor<Void>() {
        @Override
View Full Code Here

TOP

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

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.