From 6e59dcc24cb37cedbfdb59086db0706b32d120c0 Mon Sep 17 00:00:00 2001 From: joshvera Date: Thu, 24 Aug 2017 12:23:15 -0400 Subject: [PATCH] A program is a list of statements --- src/Language/TypeScript/Syntax.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/TypeScript/Syntax.hs b/src/Language/TypeScript/Syntax.hs index 2c9367c0e..54d862b70 100644 --- a/src/Language/TypeScript/Syntax.hs +++ b/src/Language/TypeScript/Syntax.hs @@ -621,7 +621,7 @@ instance Show1 RestParameter where liftShowsPrec = genericLiftShowsPrec -- | Assignment from AST in Ruby’s grammar onto a program in TypeScript’s syntax. assignment :: Assignment -assignment = handleError $ makeTerm <$> symbol Program <*> children (Syntax.Program <$> many expression) +assignment = handleError $ makeTerm <$> symbol Program <*> children (Syntax.Program <$> many statement) expression :: Assignment expression = handleError $