Examples of GoPsiTypeInterface


Examples of ro.redeul.google.go.lang.psi.types.GoPsiTypeInterface

        discover();
        return myMethodSet;
    }

    private void discover() {
        GoPsiTypeInterface psiType = myTypeInterface.getPsiType();

        myIgnoredNames.add(psiType.getName());
        myMethodSet = new GoTypeInterfaceMethodSet();

        for (GoPsiTypeName embeddedInterface : psiType.getTypeNames()) {

            GoTypeInterface typeInterface = GoTypes.fromPsi(embeddedInterface).underlyingType(GoTypeInterface.class);
            if (typeInterface == null)
                continue;

            GoTypeInterfaceMethodSet methodSet =
                    new MethodSetDiscover(typeInterface, myIgnoredNames).getMethodSet();

            myMethodSet.merge(methodSet);
        }

        for (GoFunctionDeclaration functionDeclaration : psiType.getFunctionDeclarations()) {
            myMethodSet.add(functionDeclaration);
        }
    }
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.