Skip to content

Commit

Permalink
Prism::Compiler should be a subclass of Prism::Visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
paracycle committed Mar 6, 2024
1 parent 548b549 commit a01d6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/lib/prism/compiler.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Prism
# Prism.parse("1 + 2").value.accept(SExpressions.new)
# # => [:program, [[[:call, [[:integer], [:arguments, [[:integer]]]]]]]]
#
class Compiler
class Compiler < Visitor
# Visit an individual node.
def visit(node)
node&.accept(self)
Expand Down

0 comments on commit a01d6a4

Please sign in to comment.