Examples of IASNode


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

            this.superState = SuperState.Armed;
    }

    private boolean isPackageReference(Binding b)
    {
        IASNode n = b.getNode();
        return n instanceof ExpressionNodeBase && ((ExpressionNodeBase)n).isPackageReference();
    }
View Full Code Here

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

    /**
     *  Check foo++ and foo-- expressions.
     */
    public void checkIncDec(IASNode iNode, boolean is_incr)
    {
        IASNode operand = ((IUnaryOperatorNode)iNode).getOperandNode();

        checkImplicitConversion(operand, utils.numberType());

        IDefinition def = utils.getDefinition(operand);
       
View Full Code Here

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

     *  Check a member access expression.
     */
    public void checkMemberAccess(IASNode iNode, Binding member, int opcode)
    {
        //  Don't check synthetic bindings.
        IASNode member_node = member.getNode();

        if ( member_node == null )
            return;

        IDefinition def = utils.getDefinition(member_node);

        if ( def == null && utils.definitionCanBeAnalyzed(member) )
        {
            // if it is foo.mx_internal::someProp, just say it passes
            if (member_node.getParent() instanceof NamespaceAccessExpressionNode)
                return;
           
            if ( utils.isInaccessible(iNode, member) )
            {
                addProblem(new InaccessiblePropertyReferenceProblem(
View Full Code Here

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

     *  Check an import directive.
     *  @param importNode - the import node.
     */
    public void checkImportDirective(IImportNode importNode)
    {
        IASNode site = importNode.getImportNameNode();
       
        if (!SemanticUtils.isValidImport(importNode, project, currentScope.getInInvisibleCompilationUnit()))
        {
            String importName = importNode.getImportName();
            if (importNode.isWildcardImport())
View Full Code Here

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

        ContainerNode contents = getContentsNode();
       
        int childcount = contents.getChildCount();
        for (int i = 0; i < childcount; i++)
        {
            IASNode child = contents.getChild(i);
          
            if (child instanceof ILiteralNode)
                builder.append(((ILiteralNode)child).getValue(rawValue));
            else if (child instanceof IIdentifierNode)
                builder.append(((IIdentifierNode)child).getName());
View Full Code Here

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

    {
        int childCount = conditionsStatementsNode.getChildCount();
        ArrayList<IExpressionNode> retVal = new ArrayList<IExpressionNode>(3);
        for (int i = 0; i < childCount; i++)
        {
            IASNode child = getChild(i);
            if (child instanceof IExpressionNode)
                retVal.add((IExpressionNode)child);
        }

        return retVal.toArray(new IExpressionNode[0]);
View Full Code Here

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

    //

    @Override
    public IExpressionNode getConditionalExpressionNode()
    {
        IASNode child = getConditionalNode();
        if (child instanceof ConditionalNode)
            return ((ConditionalNode)child).getConditionalExpressionNode();
       
        return null;
    }
View Full Code Here

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

        int childCount = getChildCount();
        ArrayList<IConditionalNode> retVal = new ArrayList<IConditionalNode>(childCount);
       
        for (int i = 1; i < childCount; i++)
        {
            IASNode child = getChild(i);
            if (child instanceof IConditionalNode)
                retVal.add((IConditionalNode)child);
        }
       
        return retVal.toArray(new IConditionalNode[0]);
View Full Code Here

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

    public ITerminalNode getDefaultNode()
    {
        int childCount = getChildCount();
        for (int i = childCount - 1; i >= 0; i--)
        {
            IASNode child = getChild(i);
            if (child instanceof ITerminalNode)
                return (ITerminalNode)child;
        }
       
        return null;
View Full Code Here

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

                    // Make the statements inside the script tag the children of this node.
                    int n = fragment.getChildCount();
                    asNodes = new IASNode[n];
                    for (int i = 0; i < n; i++)
                    {
                        IASNode child = fragment.getChild(i);
                        asNodes[i] = child;
                        ((NodeBase)child).setParent(this);
                    }
                }
            }
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.