mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Remove manyTerm and use term on importSymbol
This commit is contained in:
parent
b29c8eacb0
commit
8bc503534d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user