Class: Parser::Source::TreeRewriter::Action Private

Inherits:
Object
  • Object
show all
Defined in:
sorbet/rbi/parser@3.3.8.0.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.

source://parser//lib/parser/source/tree_rewriter/action.rb#14

Instance Method Summary collapse

Constructor Details

#initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)) ⇒ Action

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/source/tree_rewriter/action.rb#17



6953
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6953

def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end

Instance Method Details

#combine(action) ⇒ 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/source/tree_rewriter/action.rb#29



6956
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6956

def combine(action); end

#contractObject

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/source/tree_rewriter/action.rb#68



6959
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6959

def contract; end

#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/source/tree_rewriter/action.rb#34

Returns:

  • (Boolean)


6962
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6962

def empty?; end

#insert_afterObject

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/source/tree_rewriter/action.rb#15



6965
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6965

def insert_after; end

#insert_beforeObject

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/source/tree_rewriter/action.rb#15



6968
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6968

def insert_before; end

#insertion?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/source/tree_rewriter/action.rb#58

Returns:

  • (Boolean)


6971
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6971

def insertion?; end

#moved(source_buffer, offset) ⇒ 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/source/tree_rewriter/action.rb#81



6974
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6974

def moved(source_buffer, offset); end

#nested_actionsObject

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/source/tree_rewriter/action.rb#50



6977
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6977

def nested_actions; end

#ordered_replacementsObject

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/source/tree_rewriter/action.rb#41



6980
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6980

def ordered_replacements; end

#rangeObject

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/source/tree_rewriter/action.rb#15



6983
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6983

def range; end

#replacementObject

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/source/tree_rewriter/action.rb#15



6986
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 6986

def replacement; end