Examples of GoFunctionDeclaration


Examples of ro.redeul.google.go.lang.psi.toplevel.GoFunctionDeclaration

    @Override
    public boolean execute(@NotNull PsiElement element, @NotNull ResolveState state) {
        if ( element instanceof GoFunctionDeclaration && ! (element instanceof GoMethodDeclaration) ) {

            GoFunctionDeclaration function = (GoFunctionDeclaration) element;

            String functionName = function.getFunctionName();

            if ( GoNamesUtil.isExported(functionName) ) {
                nodeFunctions.add(function);
            }
View Full Code Here

Examples of ro.redeul.google.go.lang.psi.toplevel.GoFunctionDeclaration

    }

    private ParameterInfo findAnchorElement(int offset, PsiFile file) {
        PsiElement element = file.findElementAt(offset);
        GoCallOrConvExpression call = findFunctionCallParent(element, offset);
        GoFunctionDeclaration func = resolveToFunctionDeclaration(call);
        if (func == null) {
            return null;
        }

        PsiElement expressionList = findChildOfType(call, GoElementTypes.EXPRESSION_LIST);
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.