Spec-Zone.ru › Homebrew

Class: Parser::AST::Node

Inherits:
AST::Node
  • Object
  • AST::Node
  • Parser::AST::Node
show all
Defined in:
sorbet/rbi/parser@3.3.8.0.rbi

Overview

Node contains information about a single AST node and its child nodes. It extends the basic AST::Node class provided by gem ast.

source://parser//lib/parser/ast/node.rb#17

Instance Method Summary collapse

  • #assign_properties(properties) ⇒ Object

    Assigns various properties to this AST node.

  • #loc ⇒ Parser::Source::Map

    Source map for this Node.

  • #location ⇒ Parser::Source::Map

    Source map for this Node.

Instance Method Details

#assign_properties(properties) ⇒ Object

Assigns various properties to this AST node. Currently only the location can be set.

source://parser//lib/parser/ast/node.rb#30

Parameters:

  • properties (Hash)

Options Hash (properties):

  • (Object)


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

def assign_properties(properties); end

#loc ⇒ Parser::Source::Map

Source map for this Node.

source://parser//lib/parser/ast/node.rb#18

Returns:

  • (Parser::Source::Map)


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

def loc; end

#location ⇒ Parser::Source::Map

Source map for this Node.

source://parser//lib/parser/ast/node.rb#18

Returns:

  • (Parser::Source::Map)


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

def location; end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Parser/AST/Node.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API