From c82fa0e36df682e226316b621a4d6a51f450a287 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 6 Sep 2017 09:36:16 +0100 Subject: [PATCH] forStatement has an expressionStatement not an expression --- 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 59672d1d0..efaa85a83 100644 --- a/src/Language/TypeScript/Syntax.hs +++ b/src/Language/TypeScript/Syntax.hs @@ -1164,7 +1164,7 @@ whileStatement :: Assignment whileStatement = makeTerm <$> symbol WhileStatement <*> children (Statement.While <$> expression <*> statement) forStatement :: Assignment -forStatement = makeTerm <$> symbol ForStatement <*> children (Statement.For <$> (variableDeclaration <|> expressionStatement' <|> emptyStatement) <*> (expression <|> emptyStatement) <*> (expression <|> emptyTerm) <*> statement) +forStatement = makeTerm <$> symbol ForStatement <*> children (Statement.For <$> (variableDeclaration <|> expressionStatement' <|> emptyStatement) <*> (expressionStatement' <|> emptyStatement) <*> (expression <|> emptyTerm) <*> statement) variableDeclaration :: Assignment variableDeclaration = makeTerm <$> (symbol Grammar.VariableDeclaration <|> symbol LexicalDeclaration) <*> children (Language.TypeScript.Syntax.VariableDeclaration <$> many variableDeclarator)