diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-04-17 11:28:52 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-04-17 13:54:29 -0400 |
| commit | d186eb36a4abbbefa026ea5630a1b59bb668ef0f (patch) | |
| tree | b502ce29121776aefcead8a7a103e6e8f50f41eb /lib/prism.rb | |
| parent | ee6e591b6afbe765b2b1a612d8a7bdfc7cbc606c (diff) | |
[ruby/prism] Add a reflection API for determining the fields of a node
https://github.com/ruby/prism/commit/f3f9950a74
Diffstat (limited to 'lib/prism.rb')
| -rw-r--r-- | lib/prism.rb | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/prism.rb b/lib/prism.rb index 23a72fa49a..c512cb4015 100644 --- a/lib/prism.rb +++ b/lib/prism.rb @@ -24,6 +24,7 @@ module Prism autoload :NodeInspector, "prism/node_inspector" autoload :Pack, "prism/pack" autoload :Pattern, "prism/pattern" + autoload :Reflection, "prism/reflection" autoload :Serialize, "prism/serialize" autoload :Translation, "prism/translation" autoload :Visitor, "prism/visitor" @@ -64,22 +65,6 @@ module Prism def self.load(source, serialized) Serialize.load(source, serialized) end - - # :call-seq: - # Prism::parse_failure?(source, **options) -> bool - # - # Returns true if the source parses with errors. - def self.parse_failure?(source, **options) - !parse_success?(source, **options) - end - - # :call-seq: - # Prism::parse_file_failure?(filepath, **options) -> bool - # - # Returns true if the file at filepath parses with errors. - def self.parse_file_failure?(filepath, **options) - !parse_file_success?(filepath, **options) - end end require_relative "prism/node" |
