[JavaScript] anonymousFunction
shouldn't contain functionDeclaration
#3387
Labels
anonymousFunction
shouldn't contain functionDeclaration
#3387
The rules below are from the current
JavaScriptParser.g4
:It seems like
functionDeclaration
shouldn't be a part ofanonymousFunction
. First of all it is clearly not anonymous. Also such rules produce a complex tree for a named async function: for codeasync function fetchNext(continuation) {}
thestatement
subtree is(expressionStatement (expressionSequence (singleExpression (anonymousFunction (functionDeclaration ...))))
instead of just(functionDeclaration ...)
The text was updated successfully, but these errors were encountered: