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

Examples of ro.redeul.google.go.lang.psi.resolve.ReferenceSolvingVisitor


    @Override
    public PackageSolver self() { return this; }

    public PackageSolver(final PackageReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {
            public void visitImportDeclaration(GoImportDeclaration declaration) {
                if (isReferenceTo(declaration))
                    addTarget(declaration);
            }
View Full Code Here


    @Override
    public TypeNameSolver self() { return this; }

    public TypeNameSolver(final TypeNameReference reference, boolean methodReceiver) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {
                 @Override
                 public void visitTypeSpec(GoTypeSpec type) {
                     if (checkReference(type.getTypeNameDeclaration())) {
                         addTarget(type.getTypeNameDeclaration());
                     }
View Full Code Here

    public TypedConstSolver self() {
        return this;
    }

    public TypedConstSolver(final TypedConstReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {

            @Override
            public void visitConstDeclaration(GoConstDeclaration declaration) {
                String referenceName = reference.name();
View Full Code Here

    @Override
    public PackageSymbolSolver self() { return this; }

    public PackageSymbolSolver(final PackageSymbolReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {
            @Override
            public void visitConstDeclaration(GoConstDeclaration declaration) {
                checkIdentifiers(reference.name(), declaration.getIdentifiers());
            }
View Full Code Here

    @Override
    public VarOrConstSolver self() { return this; }

    public VarOrConstSolver(final VarOrConstReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {
            @Override
            public void visitMethodReceiver(GoMethodReceiver receiver) {
                if ( receiver.getIdentifier() != null )
                    checkIdentifiers(reference.name(), receiver.getIdentifier());
            }
View Full Code Here

import ro.redeul.google.go.lang.psi.types.struct.GoTypeStructPromotedFields;

public class StructFieldSolver extends VisitingReferenceSolver<StructFieldReference, StructFieldSolver> {

    public StructFieldSolver(final StructFieldReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {
            @Override
            public void visitTypeStructField(GoTypeStructField field) {
                checkIdentifiers(reference.name(), field.getIdentifiers());
            }
View Full Code Here

    @Override
    public MethodSolver self() { return this; }

    public MethodSolver(final MethodReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {
            @Override
            public void visitMethodDeclaration(GoMethodDeclaration declaration) {
                if (isReferenceTo(declaration))
                    addTarget(declaration);
            }
View Full Code Here

    private static final ElementPattern<GoLiteralIdentifier> SHORT_VAR =
            psiElement(GoLiteralIdentifier.class).withParent(
                    psiElement(GoShortVarDeclaration.class));

    public ShortVarSolver(final ShortVarReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {
            @Override
            public void visitShortVarDeclaration(GoShortVarDeclaration declaration) {
                checkIdentifiers(reference.name(), declaration.getDeclarations());
            }
View Full Code Here

    @Override
    public FunctionOrTypeNameSolver self() { return this; }

    public FunctionOrTypeNameSolver(final FunctionOrTypeNameReference reference) {
        solveWithVisitor(new ReferenceSolvingVisitor(this, reference) {

            @Override
            public void visitFunctionDeclaration(GoFunctionDeclaration declaration) {
                if (isReferenceTo(declaration))
                    addTarget(declaration);
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.lang.psi.resolve.ReferenceSolvingVisitor

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.