Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::DesugarCompiler#visit_class_variable_or_write_node
visit_class_variable_or_write_node(node)
lib/prism/desugar_compiler.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/desugar_compiler.rb, line 21
def visit_class_variable_or_write_node(node)
desugar_or_write_defined_node(node, ClassVariableReadNode, ClassVariableWriteNode, node.name)
end
@@foo ||= bar
becomes
defined?(@@foo) ? @@foo : @@foo = bar