Examples of GoTypeNameDeclaration


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

    public static GoTypeSpec resolveTypeSpec(@Nullable GoPsiTypeName type) {
        if (type == null) {
            return null;
        }

        GoTypeNameDeclaration nameDeclaration = resolveSafely(type, GoTypeNameDeclaration.class);
        return nameDeclaration != null ? nameDeclaration.getTypeSpec() : null;
    }
View Full Code Here

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

            return true;
        }

        GoTypeSpec typeSpec = (GoTypeSpec) element;

        GoTypeNameDeclaration typeNameDeclaration = typeSpec.getTypeNameDeclaration();

        if (typeNameDeclaration != null ) {
            String typeName = typeNameDeclaration.getName();

            if ( typeName != null && Character.isUpperCase(typeName.charAt(0)) ) {
                objects.add(qualifiedName.getPackageReference().getString() + "." + typeName);
            }
        }
View Full Code Here

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

        return true;
    }

    private void processTypeSpecification(GoTypeSpec typeSpec, ResolveState state) {

        GoTypeNameDeclaration typeNameDeclaration = typeSpec.getTypeNameDeclaration();

        // include this if:
        //   - inside the same package
        //   - is a public name

        if ( typeNameDeclaration == null ) {
            return;
        }

        String typeName = typeNameDeclaration.getText();

        String typeText = null; // state.get(ResolveStates.PackageName);

        boolean isCandidate = false;
        if ( GoNamesUtil.isExported(typeName) ) {
View Full Code Here

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

        return null;
    }

    @Override
    public String getName() {
        GoTypeNameDeclaration declaration = getTypeNameDeclaration();

        return declaration == null ? "" : declaration.getName();
    }
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.