Files
Jonathan Tran 92da86391a CM KCL: Support = in record init (#4933)
Support `=` in record init

Co-authored-by: Matt Mundell <matt@mundell.me>
2025-01-06 10:16:42 -05:00

21 lines
599 B
Plaintext

# colon (deprecated)
x = { k: 123 }
==>
Program(VariableDeclaration(VariableDefinition,
Equals,
ObjectExpression(ObjectProperty(PropertyName,
Number))))
# equal
x = { k = 123 }
==>
Program(VariableDeclaration(VariableDefinition,
Equals,
ObjectExpression(ObjectProperty(PropertyName,
Equals,
Number))))