Class: Parser::CurrentArgStack Private

Inherits:
Object
  • Object
show all
Defined in:
sorbet/rbi/parser@3.3.7.4.rbi

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

Constructor Details

#initializeCurrentArgStack

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

Returns:

  • (Boolean)


1650
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1650

def empty?; end

#popObject

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

#resetObject

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

#stackObject

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

#topObject

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