Class: LibRubyParser::Nodes::Pin

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

Overview

Represents a pattern based on a "pinned" variable (e.g. ^foo)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

case foo; in ^bar; end
             ~~~~

Returns:



3250
3251
3252
# File 'lib/lib-ruby-parser/nodes.rb', line 3250

def expression_l
  @expression_l
end

#selector_lLoc (readonly)

Location of the ^ operator

case foo; in ^bar; end
             ~

Returns:



3241
3242
3243
# File 'lib/lib-ruby-parser/nodes.rb', line 3241

def selector_l
  @selector_l
end

#varNode (readonly)

Variable that is pinned

Returns:



3232
3233
3234
# File 'lib/lib-ruby-parser/nodes.rb', line 3232

def var
  @var
end