Package wyvern.tools.types.extensions

Examples of wyvern.tools.types.extensions.Intersection


                  meth.getReturnType()));
    }
    if (methTypes.size() == 1)
      return methTypes.get(0);
    else if (methTypes.size() > 1)
      return new Intersection(methTypes);
    return null;
  }
View Full Code Here


      argument = ((Arrow) fnType).getArgument();
    else if (fnType instanceof Intersection) {
      List<Type> args = fnType.getChildren().values().stream()
          .filter(tpe -> tpe instanceof Arrow).map(tpe->((Arrow)tpe).getArgument())
          .collect(Collectors.toList());
      argument = new Intersection(args);
    }
    if (this.argument != null)
      this.argument.typecheck(env, Optional.ofNullable(argument));
   
    if (!(fnType instanceof ApplyableType))
View Full Code Here

TOP

Related Classes of wyvern.tools.types.extensions.Intersection

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.