Class: LibRubyParser::Nodes::MatchNilPattern

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents empty hash pattern that is used in pattern matching (i.e. ‘in **nil`)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

“‘text in **nil

~~~~~

“‘

Returns:



2705
2706
2707
# File 'lib/lib-ruby-parser/nodes.rb', line 2705

def expression_l
  @expression_l
end

#name_lLoc (readonly)

Location of the name

“‘text in **nil

~~~

“‘

Returns:



2696
2697
2698
# File 'lib/lib-ruby-parser/nodes.rb', line 2696

def name_l
  @name_l
end

#operator_lLoc (readonly)

Location of the ‘**` operator

“‘text in **nil

~~

“‘

Returns:



2687
2688
2689
# File 'lib/lib-ruby-parser/nodes.rb', line 2687

def operator_l
  @operator_l
end