git.s-ol.nu alive / ec3ce34
auto-name Op and Builtin classes for better debugging s-ol 6 months ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
188188 -- @tparam table args table with keys `value` and `meta`
189189 -- @treturn Constant
190190 @meta: (args) ->
191 if args.meta and args.meta.name and
192 type(args.value) == "table" and
193 args.value and args.value.__class and args.value.__parent
194 args.value.__name = args.meta.name
195
191196 with Constant.wrap args.value
192197 .meta = args.meta if args.meta
193198