Project

General

Profile

Actions

Bug #20761

closed

[DOC] `RubyVM::AbstractSyntaxTree.of` examples raise because parser is prism by default

Bug #20761: [DOC] `RubyVM::AbstractSyntaxTree.of` examples raise because parser is prism by default

Added by Earlopain (Earlopain _) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:119301]

Description

https://docs.ruby-lang.org/en/master/RubyVM/AbstractSyntaxTree.html#method-c-of

RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => <internal:ast>:97:in 'RubyVM::AbstractSyntaxTree.of': cannot get AST for ISEQ compiled by prism (RuntimeError)

Same for the method example. Is this method even functional when prism is used, or is the prism gem able to do this somehow?

Actions

Also available in: PDF Atom