Examples of underlyingType()


Examples of com.foundationdb.server.types.TClass.underlyingType()

        TInstance leftInstance = left.resultType();
        TInstance rightInstance = right.resultType();
        TClass tClass = leftInstance.typeClass();
        assert tClass.compatibleForCompare(rightInstance.typeClass())
                : tClass + " != " + rightInstance.typeClass();
        if (tClass.underlyingType() != UnderlyingType.STRING)
            return null;
        CharacterTypeAttributes leftAttributes = StringAttribute.characterTypeAttributes(leftInstance);
        CharacterTypeAttributes rightAttributes = StringAttribute.characterTypeAttributes(rightInstance);
        return TString.mergeAkCollators(leftAttributes, rightAttributes);
    }
View Full Code Here

Examples of com.foundationdb.server.types.TClass.underlyingType()

    {
        TClass tClass = leftInstance.typeClass();
        assert rightInstance.typeClass().compatibleForCompare(tClass)
                : "type class mismatch: " + leftInstance + " != " + rightInstance;
        if (collator != null) {
            assert tClass.underlyingType() == UnderlyingType.STRING : tClass + ": " + tClass.underlyingType();
            String leftString = leftSource.getString();
            String rightString = rightSource.getString();
            return collator.compare(leftString, rightString);
        }
        else {
View Full Code Here

Examples of com.foundationdb.server.types.TClass.underlyingType()

    {
        TClass tClass = leftInstance.typeClass();
        assert rightInstance.typeClass().compatibleForCompare(tClass)
                : "type class mismatch: " + leftInstance + " != " + rightInstance;
        if (collator != null) {
            assert tClass.underlyingType() == UnderlyingType.STRING : tClass + ": " + tClass.underlyingType();
            String leftString = leftSource.getString();
            String rightString = rightSource.getString();
            return collator.compare(leftString, rightString);
        }
        else {
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.typing.GoType.underlyingType()

                assertNotNull(exprType);

                assertTrue(
                        String.format("%s should be the same as %s",
                                GoTypes.getRepresentation(baseType.underlyingType(), (GoFile) myFile),
                                GoTypes.getRepresentation(exprType.underlyingType(), (GoFile) myFile)),

                        baseType.underlyingType().isIdentical(exprType.underlyingType()));
            }
        }
    }
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.typing.GoType.underlyingType()

                assertTrue(
                        String.format("%s should be the same as %s",
                                GoTypes.getRepresentation(baseType.underlyingType(), (GoFile) myFile),
                                GoTypes.getRepresentation(exprType.underlyingType(), (GoFile) myFile)),

                        baseType.underlyingType().isIdentical(exprType.underlyingType()));
            }
        }
    }

    public void testPredefinedTypes() throws Exception { doTest(); }
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.typing.GoType.underlyingType()

        // we should have a type name now
        if (!(type instanceof GoTypeName))
            return;

        type = type.underlyingType();
        if ( type == null || !(type instanceof GoTypeStruct))
            return;

        GoTypeStruct typeStruct = (GoTypeStruct) type;
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.typing.GoType.underlyingType()

        GoType parentType = parentValue.getType();

        final GoLiteralIdentifier elementKey = getKey();

        return parentType.underlyingType().accept(new TypeVisitor<GoType>(GoType.Unknown) {
            @Override
            public GoType visitArray(GoTypeArray type) {
                return type.getElementType();
            }
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.typing.GoTypeName.underlyingType()

        while ( ! typeNamesToExplore.isEmpty() ) {
            GoTypeName currentTypeName = typeNamesToExplore.poll();

            receiverTypes.add(currentTypeName);

            GoType underlyingType = currentTypeName.underlyingType();
            if ( !(underlyingType instanceof GoTypeStruct) )
                continue;

            GoTypeStruct typeStruct = (GoTypeStruct) underlyingType;
            for (GoTypeStructAnonymousField field : typeStruct.getPsiType().getAnonymousFields()) {
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.