Examples of lookupConstructor()


Examples of com.google.dart.engine.type.InterfaceType.lookUpConstructor()

      }
    }
    // Evaluate explicit or implicit call to super().
    InterfaceType superclass = definingClass.getSuperclass();
    if (superclass != null && !superclass.isObject()) {
      ConstructorElement superConstructor = superclass.lookUpConstructor(
          superName,
          constructor.getLibrary());
      if (superConstructor != null) {
        if (superArguments == null) {
          superArguments = new NodeList<Expression>(null);

Examples of com.google.dart.engine.type.InterfaceType.lookUpConstructor()

    // look up ConstructorElement
    ConstructorElement constructor;
    SimpleIdentifier name = node.getName();
    InterfaceType interfaceType = (InterfaceType) type;
    if (name == null) {
      constructor = interfaceType.lookUpConstructor(null, definingLibrary);
    } else {
      constructor = interfaceType.lookUpConstructor(name.getName(), definingLibrary);
      name.setStaticElement(constructor);
    }
    node.setStaticElement(constructor);

Examples of com.google.dart.engine.type.InterfaceType.lookUpConstructor()

    SimpleIdentifier name = node.getName();
    InterfaceType interfaceType = (InterfaceType) type;
    if (name == null) {
      constructor = interfaceType.lookUpConstructor(null, definingLibrary);
    } else {
      constructor = interfaceType.lookUpConstructor(name.getName(), definingLibrary);
      name.setStaticElement(constructor);
    }
    node.setStaticElement(constructor);
    return null;
  }

Examples of com.google.dart.engine.type.InterfaceType.lookUpConstructor()

      // TODO(brianwilkerson) Report this error.
      return null;
    }
    SimpleIdentifier name = node.getConstructorName();
    String superName = name != null ? name.getName() : null;
    ConstructorElement element = superType.lookUpConstructor(superName, definingLibrary);
    if (element == null) {
      if (name != null) {
        resolver.reportErrorForNode(
            CompileTimeErrorCode.UNDEFINED_CONSTRUCTOR_IN_INITIALIZER,
            node,

Examples of org.eclipse.imp.pdb.facts.type.TypeStore.lookupConstructor()

      argsTypes[i] = children[i].getType();
    }
   
    try {
      org.eclipse.imp.pdb.facts.type.Type constructor
      = store.lookupConstructor(t, name.getValue(), TypeFactory.getInstance().tupleType(argsTypes));
     
      if (constructor == null) {
        // TODO: improve error messaging, using specialized exception
        throw RuntimeExceptionFactory.illegalArgument(type, null, null);
      }
TOP
Copyright © 2018 www.massapi.com. 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.