Class: Parser::Source::TreeRewriter::Action 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.

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



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

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



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

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



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

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)


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

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



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

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



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

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)


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

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



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

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



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

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



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

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



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

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



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

def replacement; end