Package ro.redeul.google.go.lang.psi.declarations

Examples of ro.redeul.google.go.lang.psi.declarations.GoConstDeclarations


        if (parent instanceof GoConstDeclaration) {
            GoPsiType identifiersType = ((GoConstDeclaration) parent).getIdentifiersType();
            if (identifiersType != null)
                return identifiersType;
            GoConstDeclarations parentDec = (GoConstDeclarations) parent.getParent();
            for (GoConstDeclaration declaration : parentDec.getDeclarations()) {
                identifiersType = declaration.getIdentifiersType();
                if (identifiersType != null)
                    return identifiersType;
            }
            return (GoPsiElement) parent.getLastChild();
View Full Code Here


        }

        String declaration = getExpressionDeclaration(current);
        GoConstDeclarations[] allConstDeclarations = file.getConsts();
        if (allConstDeclarations.length > 0) {
            GoConstDeclarations declarations = allConstDeclarations[allConstDeclarations.length - 1];
            appendConstToLastDeclaration(exprMarkers, declaration, declarations);
        } else {
            appendConstToLastImportOrPackage(exprMarkers, declaration);
        }
    }
View Full Code Here

            }

            @Override
            public void visitLiteralIdentifier(GoLiteralIdentifier identifier) {
                PsiElement resolve = GoPsiUtils.resolveSafely(identifier, PsiElement.class);
                GoConstDeclarations declarations = findParentOfType(resolve, GoConstDeclarations.class);
                if (declarations == null || !(declarations.getParent() instanceof GoFile)) {
                    stopped.set(true);
                }
            }
        }.visitElement(expr);
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.lang.psi.declarations.GoConstDeclarations

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.