mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Wrap qualified name and variable name in an anonymous term
This commit is contained in:
parent
a97cb80f29
commit
fc29e53963
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user