mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
JavaScript returns can have comments even with no return expression
This commit is contained in:
parent
a9e5ff6a11
commit
50f3dbae48
@ -622,7 +622,7 @@ withStatement :: Assignment
|
|||||||
withStatement = makeTerm <$> symbol WithStatement <*> children (TypeScript.Syntax.With <$> term parenthesizedExpression <*> term statement)
|
withStatement = makeTerm <$> symbol WithStatement <*> children (TypeScript.Syntax.With <$> term parenthesizedExpression <*> term statement)
|
||||||
|
|
||||||
returnStatement :: Assignment
|
returnStatement :: Assignment
|
||||||
returnStatement = makeTerm <$> symbol ReturnStatement <*> children (Statement.Return <$> (term expressions <|> emptyTerm))
|
returnStatement = makeTerm <$> symbol ReturnStatement <*> children (Statement.Return <$> (term expressions <|> term emptyTerm))
|
||||||
|
|
||||||
throwStatement :: Assignment
|
throwStatement :: Assignment
|
||||||
throwStatement = makeTerm <$> symbol Grammar.ThrowStatement <*> children (Statement.Throw <$> term expressions)
|
throwStatement = makeTerm <$> symbol Grammar.ThrowStatement <*> children (Statement.Throw <$> term expressions)
|
||||||
|
Loading…
Reference in New Issue
Block a user