1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 04:10:29 +03:00

parse children in nonNullExpression and importAlias

This commit is contained in:
joshvera 2017-09-10 21:49:04 +01:00
parent cca2a03957
commit a0f0dc6b6e

View File

@ -773,10 +773,10 @@ templateSubstitution :: Assignment
templateSubstitution = symbol TemplateSubstitution *> children expression
nonNullExpression' :: Assignment
nonNullExpression' = makeTerm <$> symbol Grammar.NonNullExpression <*> (Language.TypeScript.Syntax.NonNullExpression <$> expression)
nonNullExpression' = makeTerm <$> symbol Grammar.NonNullExpression <*> children (Language.TypeScript.Syntax.NonNullExpression <$> expression)
importAlias' :: Assignment
importAlias' = makeTerm <$> symbol Grammar.ImportAlias <*> (Language.TypeScript.Syntax.ImportAlias <$> identifier <*> (identifier <|> nestedIdentifier))
importAlias' = makeTerm <$> symbol Grammar.ImportAlias <*> children (Language.TypeScript.Syntax.ImportAlias <$> identifier <*> (identifier <|> nestedIdentifier))
number :: Assignment
number = makeTerm <$> symbol Grammar.Number <*> (Literal.Float <$> source)