public override Node VisitBlock(ECMAScriptParser.BlockContext context)
 {
     return(new BlockStatement(context)
     {
         Body = ListChildren <Statement>(context.statementList())
     });
 }
Beispiel #2
0
        /// <returns><see cref="BlockStatement"/></returns>
        public UstNode VisitBlock([NotNull] ECMAScriptParser.BlockContext context)
        {
            BlockStatement result;

            if (context.statementList() != null)
            {
                result = (BlockStatement)Visit(context.statementList());
            }
            else
            {
                result = new BlockStatement();
            }
            return(result);
        }