1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Wrap qualified name and variable name in an anonymous term

This commit is contained in:
joshvera 2018-01-19 11:35:59 -05:00
parent a97cb80f29
commit fc29e53963

View File

@ -567,7 +567,7 @@ tryStatement :: Assignment
tryStatement = makeTerm <$> symbol TryStatement <*> children (Statement.Try <$> compoundStatement <*> (((\as b -> as ++ [b]) <$> someTerm catchClause <*> finallyClause) <|> someTerm catchClause <|> someTerm finallyClause))
catchClause :: Assignment
catchClause = makeTerm <$> symbol CatchClause <*> children (Statement.Catch <$> (qualifiedName <|> variableName) <*> compoundStatement)
catchClause = makeTerm <$> symbol CatchClause <*> children (Statement.Catch <$> (makeTerm <$> location <*> ((\a b -> [a, b]) <$> qualifiedName <*> variableName)) <*> compoundStatement)
finallyClause :: Assignment
finallyClause = makeTerm <$> symbol FinallyClause <*> children (Statement.Finally <$> compoundStatement)