Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 0 additions & 108 deletions lib/prism/deprecated.rb

This file was deleted.

102 changes: 102 additions & 0 deletions lib/prism/node_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,106 @@ def full_message_loc
attribute_write? ? message_loc&.adjoin("=") : message_loc
end
end

class InNode < Node
#: () -> String
def in # :nodoc
in_keyword
end

#: () -> Location
def in_loc # :nodoc
in_keyword_loc
end

#: () -> String?
def then # :nodoc
then_keyword
end

#: () -> Location?
def then_loc # :nodoc
then_keyword_loc
end
end

class MatchPredicateNode < Node
#: () -> String
def operator # :nodoc
keyword
end

#: () -> Location
def operator_loc # :nodoc
keyword_loc
end
end

class UnlessNode < Node
#: () -> String
def keyword # :nodoc
unless_keyword
end

#: () -> Location
def keyword_loc # :nodoc
unless_keyword_loc
end
end

class UntilNode < Node
#: () -> String
def keyword # :nodoc
until_keyword
end

#: () -> Location
def keyword_loc # :nodoc
until_keyword_loc
end

#: () -> String?
def closing # :nodoc
end_keyword
end

#: () -> Location?
def closing_loc # :nodoc
end_keyword_loc
end
end

class WhenNode < Node
#: () -> String
def keyword # :nodoc
when_keyword
end

#: () -> Location
def keyword_loc # :nodoc
when_keyword_loc
end
end

class WhileNode < Node
#: () -> String
def keyword # :nodoc
while_keyword
end

#: () -> Location
def keyword_loc # :nodoc
while_keyword_loc
end

#: () -> String?
def closing # :nodoc
end_keyword
end

#: () -> Location?
def closing_loc # :nodoc
end_keyword_loc
end
end
end
2 changes: 0 additions & 2 deletions prism.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ Gem::Specification.new do |spec|
"include/prism/version.h",
"lib/prism.rb",
"lib/prism/compiler.rb",
"lib/prism/deprecated.rb",
"lib/prism/desugar_compiler.rb",
"lib/prism/dispatcher.rb",
"lib/prism/dot_visitor.rb",
Expand Down Expand Up @@ -179,7 +178,6 @@ Gem::Specification.new do |spec|
"rbi/rubyvm/node_find.rbi",
"sig/generated/prism.rbs",
"sig/generated/prism/compiler.rbs",
"sig/generated/prism/deprecated.rbs",
"sig/generated/prism/desugar_compiler.rbs",
"sig/generated/prism/dispatcher.rbs",
"sig/generated/prism/dot_visitor.rbs",
Expand Down
66 changes: 66 additions & 0 deletions sig/generated/prism/node_ext.rbs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading