Package ro.redeul.google.go.lang.psi.impl.types.interfaces

Examples of ro.redeul.google.go.lang.psi.impl.types.interfaces.MethodSetDiscover


                    @Override
                    public PsiElement resolve(@NotNull InterfaceMethodReference interfaceMethodReference, boolean incompleteCode) {
                        if ( type == null || type.getPsiType() == null)
                            return null;

                        GoTypeInterfaceMethodSet methodSet = new MethodSetDiscover(type).getMethodSet();

                        for (GoFunctionDeclaration declaration : methodSet.getMethods())
                            if (getElement().getText().equals(declaration.getFunctionName()))
                                return declaration;
View Full Code Here


    @Override
    public Object[] getVariants() {
        if ( type == null )
            return EMPTY_ARRAY;

        GoTypeInterfaceMethodSet methodSet = new MethodSetDiscover(type).getMethodSet();

        List<LookupElementBuilder> variants = new ArrayList<LookupElementBuilder>();
        for (GoFunctionDeclaration functionDeclaration : methodSet.getMethods()) {
            variants.add(functionDeclaration.getLookupPresentation());
        }
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.lang.psi.impl.types.interfaces.MethodSetDiscover

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.