Examples of UnknownType


Examples of com.redhat.ceylon.compiler.typechecker.model.UnknownType

    @Override
    public void visit(Tree.EntryType that) {
        super.visit(that);
        ProducedType kt = that.getKeyType().getTypeModel();
        ProducedType vt = that.getValueType()==null ?
                new UnknownType(unit).getType() :
                that.getValueType().getTypeModel();
        that.setTypeModel(unit.getEntryType(kt, vt));
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.UnknownType

        int firstDefaulted = -1;
        for (int i=0; i<ets.size(); i++) {
            Tree.Type st = ets.get(i);
            ProducedType arg = st==null ? null : st.getTypeModel();
            if (arg==null) {
                arg = new UnknownType(unit).getType();
            }
            else if (st instanceof Tree.SpreadType) {
                //currently we only allow a
                //single spread type, but in
                //future we should also allow
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.UnknownType

            }
        }
    }

    private ProducedType newUnknownType() {
        return new UnknownType(typeFactory).getType();
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.UnknownType

        }else if(exceptionMessage == null){
            errorReporter = makeModelErrorReporter(message);
        }else{
            errorReporter = makeModelErrorReporter(message+": "+exceptionMessage);
        }
        UnknownType ret = new UnknownType(typeFactory);
        ret.setErrorReporter(errorReporter);
        return ret.getType();
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.UnknownType

    private void collectUnknownTypes(TypeDeclaration declaration, Map<Declaration, Declaration> visited) {
        if(visited.put(declaration, declaration) != null)
            return;
        if(declaration instanceof UnknownType){
            UnknownType ut = (UnknownType) declaration;
            ut.reportErrors();
            // don't report it twice
            ut.setErrorReporter(null);
        }else if(declaration instanceof UnionType){
            for(ProducedType t : declaration.getCaseTypes()){
                collectUnknownTypesResolved(t, visited);
            }
        }else if(declaration instanceof IntersectionType){
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.UnknownType

    public ProducedType getCallableType(ProducedType resultType) {
        return getCallableType(List.<ProducedType>of(resultType,getEmptyDeclaration().getType()));
    }

    public ProducedType getUnknownType() {
        return new UnknownType(this).getType();
    }
View Full Code Here

Examples of com.sun.corba.se.spi.legacy.interceptor.UnknownType

        int port =
            orb.getLegacyServerSocketManager()
                .legacyGetTransientOrPersistentServerPort(type);
        if (port == -1) {
            throw new UnknownType();
        }
        return port;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.legacy.interceptor.UnknownType

        int port =
            orb.getLegacyServerSocketManager()
                .legacyGetTransientOrPersistentServerPort(type);
        if (port == -1) {
            throw new UnknownType();
        }
        return port;
    }
View Full Code Here

Examples of liquibase.datatype.core.UnknownType

        SortedSet<Class<? extends LiquibaseDataType>> classes = registry.get(dataTypeName.toLowerCase());

        LiquibaseDataType liquibaseDataType = null;
        if (classes == null) {
            if (dataTypeName.toUpperCase().startsWith("INTERVAL")) {
                liquibaseDataType = new UnknownType(dataTypeDefinition);
            } else {
                liquibaseDataType = new UnknownType(dataTypeName);
            }
        } else {

            Iterator<Class<? extends LiquibaseDataType>> iterator = classes.iterator();
            do {
                try {
                    liquibaseDataType = iterator.next().newInstance();
                } catch (Exception e) {
                    throw new UnexpectedLiquibaseException(e);
                }
            } while ((database != null) && !liquibaseDataType.supports(database) && iterator.hasNext());
        }
        if ((database != null) && !liquibaseDataType.supports(database)) {
            throw new UnexpectedLiquibaseException("Could not find type for "+liquibaseDataType.toString()+" for databaes "+database.getShortName());
        }
        if (liquibaseDataType == null) {
            liquibaseDataType = new UnknownType(dataTypeName);

        }
        liquibaseDataType.setAdditionalInformation(additionalInfo);

        if (dataTypeDefinition.matches(".+\\s*\\(.*")) {
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.