mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
always wrap 'yield' in () to allow composability with all other operators
This commit is contained in:
@@ -1760,9 +1760,9 @@ exports.Op = class Op extends Base
|
||||
if 'expression' in Object.keys @first
|
||||
parts.push @first.expression.compileToFragments o, LEVEL_OP if @first.expression?
|
||||
else
|
||||
parts.push [@makeCode op]
|
||||
parts.push [@makeCode(' ')]
|
||||
parts.push [@makeCode "(#{op} "]
|
||||
parts.push @first.compileToFragments o, LEVEL_OP
|
||||
parts.push [@makeCode ")"]
|
||||
@joinFragmentArrays parts, ''
|
||||
|
||||
compilePower: (o) ->
|
||||
|
||||
Reference in New Issue
Block a user