Class: Parser::CurrentArgStack Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Stack that holds names of current arguments, i.e. while parsing def m1(a = (def m2(b = def m3(c = 1); end); end)); end ^ stack is [:a, :b, :c]
Emulates p->cur_arg
in MRI's parse.y
source://parser//lib/parser/current_arg_stack.rb#14
Instance Method Summary collapse
-
#empty? ⇒ Boolean
private
source://parser//lib/parser/current_arg_stack.rb#22.
-
#initialize ⇒ CurrentArgStack
constructor
private
source://parser//lib/parser/current_arg_stack.rb#17.
-
#pop ⇒ Object
private
source://parser//lib/parser/current_arg_stack.rb#34.
-
#push(value) ⇒ Object
private
source://parser//lib/parser/current_arg_stack.rb#26.
-
#reset ⇒ Object
private
source://parser//lib/parser/current_arg_stack.rb#38.
-
#set(value) ⇒ Object
private
source://parser//lib/parser/current_arg_stack.rb#30.
-
#stack ⇒ Object
private
source://parser//lib/parser/current_arg_stack.rb#15.
-
#top ⇒ Object
private
source://parser//lib/parser/current_arg_stack.rb#42.
Constructor Details
#initialize ⇒ CurrentArgStack
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#17
1644 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1644 def initialize; end |
Instance Method Details
#empty? ⇒ Boolean
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#22
1650 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1650 def empty?; end |
#pop ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#34
1655 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1655 def pop; end |
#push(value) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#26
1660 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1660 def push(value); end |
#reset ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#38
1665 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1665 def reset; end |
#set(value) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#30
1670 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1670 def set(value); end |
#stack ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#15
1675 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1675 def stack; end |
#top ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/current_arg_stack.rb#42
1680 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1680 def top; end |