protected virtual void _visit( JsVariableDeclarationStatement node )
 {
     throw new NotImplementedException( "JsVariableDeclarationStatement" );
 }
        public static JsVariableDeclarationStatement getJsVariableDeclarationStatement(string variableName, JsInvocationExpression initer = null)
        {
            // declare function return object
            JsVariableDeclarationStatement pResult = new JsVariableDeclarationStatement();
            JsVariableDeclarationExpression pExpression = new JsVariableDeclarationExpression();
            pResult.Declaration = pExpression;

            // add variable declarations
            pExpression.Declarators = new List<JsVariableDeclarator>();
            pExpression.Declarators.Add(getJsVariableDeclarator(variableName, initer));
            return pResult;
        }
 protected override void _visit(JsVariableDeclarationStatement node)
 {
     if (node != null)
     {
         visit(node.Declaration);
     }
 }
예제 #4
0
 void _Visit(JsVariableDeclarationStatement node)
 {
     Visit(node.Declaration);
     Semicolon();
 }