mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
forStatement has an expressionStatement not an expression
This commit is contained in:
parent
edcc9e24c0
commit
c82fa0e36d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user