Examples of VariableDefinitionNode


Examples of com.bazaarvoice.jless.ast.node.VariableDefinitionNode

    /**
     * Variable Ws0 ':' Ws0 ExpressionPhrase
     */
    Rule Parameter() {
        return Sequence(
                Variable(), push(new VariableDefinitionNode(match())), peek().setVisible(!isParserTranslationEnabled()), Ws0(),
                ':', Ws0(),
                ExpressionPhrase(), peek(1).addChild(new ExpressionGroupNode(pop()))
        );
    }
View Full Code Here

Examples of com.bazaarvoice.jless.ast.node.VariableDefinitionNode

    Rule Declaration() {
        return FirstOf(
                Sequence(
                        FirstOf(
                                Sequence(PropertyName(), push(new PropertyNode(match()))),
                                Sequence(Variable(), push(new VariableDefinitionNode(match())), peek().setVisible(!isParserTranslationEnabled()))
                        ), Ws0(),
                        ':', Ws0(),
                        push(new ExpressionGroupNode()),
                        ExpressionPhrase(), peek(1).addChild(pop()),
                        ZeroOrMore(
View Full Code Here

Examples of macromedia.asc.parser.VariableDefinitionNode

        //Create literalObject with key/value pairs
        TypeExpressionNode typeExpression = AbstractSyntaxTreeUtil.generateTypeExpression(nodeFactory, OBJECT, true);  
        LiteralObjectNode literalObject = nodeFactory.literalObject(partsList);
       
        //And finally our completed _skinPart AST
        VariableDefinitionNode skinParts = (VariableDefinitionNode)AbstractSyntaxTreeUtil.generatePrivateStaticVariable(currentContext, typeExpression, _SKINPARTS, literalObject);
       
        //Signature for getter that takes no parameters (of course) and returns an Object
        MemberExpressionNode returnTypeExpression = AbstractSyntaxTreeUtil.generateGetterSelector(nodeFactory, OBJECT, true);
        TypeExpressionNode returnType = nodeFactory.typeExpression(returnTypeExpression, true, false, -1);
        FunctionSignatureNode functionSignature = nodeFactory.functionSignature(null, returnType);
View Full Code Here

Examples of macromedia.asc.parser.VariableDefinitionNode

                            }
                        }
                    }

                    TypeExpressionNode typeExpression = AbstractSyntaxTreeUtil.generateTypeExpression(nodeFactory, node.getValue(0), true);
                    VariableDefinitionNode variableDefinition = AbstractSyntaxTreeUtil.generatePublicVariable(cx, typeExpression, SKINHOSTCOMPONENT);

                    classDef.statements = nodeFactory.statementList(statementList, variableDefinition);
                   
                   
                    BindableFirstPassEvaluator firstPassEvaluator =
View Full Code Here

Examples of macromedia.asc.parser.VariableDefinitionNode

    {
      assert lvalueBase instanceof MemberExpressionNode : lvalueBase.getClass().getName();
      String name = extractName(lvalueBase);

            Node value = generateValueExpr(nodeFactory, configNamespaces, generateDocComments);
            VariableDefinitionNode variableDefinition =
                AbstractSyntaxTreeUtil.generateVariable(nodeFactory, REPEATER,
                                                        standardDefs.CLASS_REPEATER_DOT, true,
                                                        value);
            nodeFactory.statementList(statementList, variableDefinition);
View Full Code Here

Examples of macromedia.asc.parser.VariableDefinitionNode

        MemberExpressionNode memberExpression =
            AbstractSyntaxTreeUtil.generateGetterSelector(nodeFactory, FLASH_EVENTS,
                                                          I_EVENT_DISPATCHER, false);
        classDefinition.interfaces = nodeFactory.list(classDefinition.interfaces, memberExpression);

        VariableDefinitionNode variableDefinition = generateBindingEventDispatcherVariable(nodeFactory);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, variableDefinition);

        DocCommentNode docCommentNode = generateInheritDocComment(context);
        classDefinition.statements =
View Full Code Here

Examples of macromedia.asc.parser.VariableDefinitionNode

    }

    private void addStaticEventDispatcherImplementation(Context context, ClassDefinitionNode classDefinition)
    {
        NodeFactory nodeFactory = context.getNodeFactory();
        VariableDefinitionNode variableDefinition = generateStaticBindingEventDispatcherVariable(nodeFactory);
        classDefinition.statements =
            nodeFactory.statementList(classDefinition.statements, variableDefinition);

        FunctionDefinitionNode addEventListenerFunctionDefinition =
            generateStaticEventDispatcherGetter(context);
View Full Code Here

Examples of macromedia.asc.parser.VariableDefinitionNode

            setterAccessPropertyName = qualifiedBackingPropertyName;
        }

        if (accessorInfo.getIsStatic())
        {
            VariableDefinitionNode variableDefinition =
                generateStaticOldValueVariable(nodeFactory, className, setterAccessPropertyName);
            functionStatementList = nodeFactory.statementList(null, variableDefinition);

            ListNode test = generateOldValueStrictlyNotEqualsValueText(nodeFactory);
            StatementListNode then =
                generateStaticSetterAssignment(nodeFactory, className, qualifiedBackingPropertyName);
            then = generateStaticDispatchEventCall(nodeFactory, then, className, accessorInfo.getQualifiedPropertyName());

            Node ifStatement = nodeFactory.ifStatement(test, then, null);
            functionStatementList = nodeFactory.statementList(functionStatementList, ifStatement);
        }
        else
        {
            VariableDefinitionNode variableDefinition = generateOldValueVariable(nodeFactory, setterAccessPropertyName);
            functionStatementList = nodeFactory.statementList(null, variableDefinition);

            ListNode test = generateOldValueStrictlyNotEqualsValueText(nodeFactory);
            StatementListNode then = generateSetterAssignment(nodeFactory, qualifiedBackingPropertyName);
            then = generateDispatchEventCall(nodeFactory, then, accessorInfo.getQualifiedPropertyName());
View Full Code Here

Examples of macromedia.asc.parser.VariableDefinitionNode

        //   var eventDispatcher:IEventDispatcher = ${bindableInfo.className}.staticEventDispatcher;
        MemberExpressionNode base = AbstractSyntaxTreeUtil.generateGetterSelector(nodeFactory, className, false);
        IdentifierNode staticEventDispatcherIdentifier = nodeFactory.identifier(STATIC_EVENT_DISPATCHER, false);
        GetExpressionNode selector = nodeFactory.getExpression(staticEventDispatcherIdentifier);
        MemberExpressionNode rvalue = nodeFactory.memberExpression(base, selector);
        VariableDefinitionNode variableDefinition =
            AbstractSyntaxTreeUtil.generateVariable(nodeFactory, EVENT_DISPATCHER_VAR,
                                                    FLASH_EVENTS, I_EVENT_DISPATCHER,
                                                    false, rvalue);
        outerThen = nodeFactory.statementList(outerThen, variableDefinition);
       
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.