We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8273bf commit 8fb5c1bCopy full SHA for 8fb5c1b
src/nodes.coffee
@@ -288,7 +288,8 @@ exports.Base = class Base
288
# Mark AST nodes that correspond to expressions that (implicitly) return.
289
# We can’t do this as part of `astNode` because we need to assemble child
290
# nodes first before marking the parent being returned.
291
- astNode.returns = yes if @astNode? and @canBeReturned
+ if @astNode? and @canBeReturned
292
+ Object.assign astNode, {returns: yes}
293
astNode
294
295
astInitialize: (o, level) ->
0 commit comments