Package com.google.dart.engine.ast

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


      if (initializer instanceof ConstructorFieldInitializer) {
        ConstructorFieldInitializer fieldInitializer = (ConstructorFieldInitializer) initializer;
        validateInitializerExpression(parameterElements, fieldInitializer.getExpression());
      }
      if (initializer instanceof RedirectingConstructorInvocation) {
        RedirectingConstructorInvocation invocation = (RedirectingConstructorInvocation) initializer;
        validateInitializerInvocationArguments(parameterElements, invocation.getArgumentList());
      }
      if (initializer instanceof SuperConstructorInvocation) {
        SuperConstructorInvocation invocation = (SuperConstructorInvocation) initializer;
        validateInitializerInvocationArguments(parameterElements, invocation.getArgumentList());
      }
    }
  }
View Full Code Here


              CompileTimeErrorCode.MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS,
              initializer);
          errorReported = true;
        }
        if (node.getFactoryKeyword() == null) {
          RedirectingConstructorInvocation invocation = (RedirectingConstructorInvocation) initializer;
          ConstructorElement redirectingElement = invocation.getStaticElement();
          if (redirectingElement == null) {
            String enclosingTypeName = enclosingClass.getDisplayName();
            String constructorStrName = enclosingTypeName;
            if (invocation.getConstructorName() != null) {
              constructorStrName += '.' + invocation.getConstructorName().getName();
            }
            errorReporter.reportErrorForNode(
                CompileTimeErrorCode.REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR,
                invocation,
                constructorStrName,
View Full Code Here

TOP

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

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.