Package org.apache.flex.compiler.tree.as

Examples of org.apache.flex.compiler.tree.as.IDefinitionNode


        }
        if (isNameNode())
        {
            // If we are the name node for a declaration, just grab the definition
            // don't have to look anywhere else
            IDefinitionNode defNode = getParentAsDefinition();
            if (defNode != null)
                result = defNode.getDefinition();
        }
        else if (isMemberRef)
        {
            result = resolveMemberRef(project, asScope, name, qualifier);
        }
View Full Code Here


     *
     * @return true if this Node is the Name node of a definition
     */
    private boolean isNameNode()
    {
        IDefinitionNode parent = getParentAsDefinition();
        if (parent != null)
        {
            if (parent.getNameExpressionNode() == this)
                return true;
        }
        return false;
    }
View Full Code Here

            if (!definition.isContingentNeeded(classScope.getProject()))
                continue;

            assert (definition instanceof VariableDefinition) : "The code generator only supports contigent variable definitions";
           
            final IDefinitionNode node = definition.getNode();
            declareVariable((VariableNode) node, (VariableDefinition)definition, definition.isStatic(),
                            definition instanceof IConstantDefinition, LexicalScope.noInitializer);
        }
    }
View Full Code Here

    public IEventDefinition resolveEventTag(ICompilerProject project)
    {
        if (eventNameNode == null)
            return null;
       
        IDefinitionNode classNode = getDecoratedDefinitionNode();
        IClassDefinition classDefinition = (IClassDefinition)classNode.getDefinition();
       
        return classDefinition.getEventDefinition(project.getWorkspace(), getEventName());
    }
View Full Code Here

    }

    @Override
    public int getEnd()
    {
        final IDefinitionNode node = getNode();
        if (node == null)
            return UNKNOWN;

        return node.getEnd();
    }
View Full Code Here

    }

    @Override
    public int getLine()
    {
        final IDefinitionNode node = getNode();
        if (node == null)
            return UNKNOWN;

        return node.getLine();
    }
View Full Code Here

    }

    @Override
    public int getColumn()
    {
        final IDefinitionNode node = getNode();
        if (node == null)
            return UNKNOWN;

        return node.getColumn();
    }
View Full Code Here

    }

    @Override
    public int getAbsoluteEnd()
    {
        final IDefinitionNode node = getNode();
        if (node == null)
            return UNKNOWN;

        return node.getAbsoluteEnd();
    }
View Full Code Here

        return node.getAbsoluteEnd();
    }

    private IExpressionNode getNameNode()
    {
        IDefinitionNode node = getNode();
        if (node == null)
            return null;

        return node.getNameExpressionNode();
    }
View Full Code Here

    }

    @Override
    public IASDocComment getExplicitSourceComment()
    {
        IDefinitionNode node = getNode();
        if (node instanceof IDocumentableDefinitionNode)
            return ((IDocumentableDefinitionNode)node).getASDocComment();
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.as.IDefinitionNode

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.