Examples of inferType()


Examples of org.noname.designer.core.interfaces.ITypeInferer.inferType()

    List<Type> types = new ArrayList<Type>();
    for (int i = 0; i < arguments.size(); i++) {
      Expression expression = (Expression) arguments.get(i);
      ITypeInferer inferer = (ITypeInferer) Platform.getAdapterManager()
          .getAdapter(expression, ITypeInferer.class);
      types.add(inferer.inferType());
    }
    return types;
  }
}
View Full Code Here

Examples of org.openquark.gems.client.Gem.PartInput.inferType()

        final TypeExpr inputTypeExpr;
        TypeExpr outputTypeExpr = TypeExpr.makeParametricType();
       
        //determine the input type
        if (inputPart.isConnected() ) {
            inputTypeExpr = inputPart.inferType(tableTop.getTypeCheckInfo()) ;
            if (recordFieldSelectionGem.getOutputPart().getConnection() != null) {
                outputTypeExpr = recordFieldSelectionGem.getOutputPart().inferType(tableTop.getTypeCheckInfo());
            }
        } else if (inputPart.isBurnt() && recordFieldSelectionGem.getOutputPart().getConnection() != null) {  
            TypeExpr outputType = recordFieldSelectionGem.getOutputPart().inferType(tableTop.getTypeCheckInfo());
View Full Code Here

Examples of org.openquark.gems.client.Gem.PartInput.inferType()

            // Broken if the arg type doesn't unify with its inferred type, or
            // if the attached gem
            // is a value gem and the value system is unable to handle the type
            // of the argument.
            TypeExpr inferredInputType = input.inferType(typeCheckInfo);
            if (!GemGraph.typesWillUnify(argType, inferredInputType, typeCheckInfo)
                    || (input.getConnectedGem() instanceof ValueGem && !valueEditorManager.canInputDefaultValue(argType))) {

                incompatiblyConnectedPartToInferredTypeMap.put(input, inferredInputType);
            }
View Full Code Here
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.