From 8bc503534d05fe459477e128178a7b7a4f926c04 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 17 Jan 2018 16:08:08 -0500 Subject: [PATCH] Remove manyTerm and use term on importSymbol --- src/Language/TypeScript/Assignment.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/TypeScript/Assignment.hs b/src/Language/TypeScript/Assignment.hs index c66750061..2c293a319 100644 --- a/src/Language/TypeScript/Assignment.hs +++ b/src/Language/TypeScript/Assignment.hs @@ -632,7 +632,7 @@ importStatement = makeImport <$> symbol Grammar.ImportStatement <*> children (( identifier' = (declarationImport <$> emptyTerm <*> (pure <$> term identifier)) namespace' = (declarationImport <$> term namespaceImport <*> pure []) - namedImports = symbol Grammar.NamedImports *> children (manyTerm (declarationImport <$> emptyTerm <*> (pure <$> importSymbol))) + namedImports = symbol Grammar.NamedImports *> children (many (declarationImport <$> emptyTerm <*> (pure <$> term importSymbol))) importSymbol = makeTerm <$> symbol Grammar.ImportSpecifier <*> children (Declaration.ImportSymbol <$> term identifier <*> (term identifier <|> emptyTerm)) namespaceImport = symbol Grammar.NamespaceImport *> children (term identifier)