Пример #1
0
        //
        // statements
        //

        public virtual Statement visit(FunctionDeclaration declaration)
        {
            writeIndent();
            declaration.literal.visitExpression(this);
            write(';');
            return(declaration);
        }
Пример #2
0
        public override Statement visit(FunctionDeclaration functionDeclaration)
        {
            functionDeclaration = (FunctionDeclaration)base.visit(functionDeclaration);

            functionVector.Add(new ExpressionStatement(functionDeclaration.literal));

            return(new EmptyStatement());
        }
Пример #3
0
        //
        // statements
        //

        public virtual Statement visit(FunctionDeclaration declaration)
        {
            write("function declaration");

            return(declaration);
        }