123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::Ext::RegexpParser::Map

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Parser::Source::Map
Instance Chain:
self, Parser::Source::Map
Inherits: Parser::Source::Map
  • Object
Defined in: lib/rubocop/ext/regexp_parser.rb

Overview

Source map for RegexpParser nodes

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(expression, body:, quantifier: nil, begin_l: nil, end_l: nil) ⇒ Map

[ GitHub ]

  
# File 'lib/rubocop/ext/regexp_parser.rb', line 11

def initialize(expression, body:, quantifier: nil, begin_l: nil, end_l: nil)
  @begin = begin_l
  @end = end_l
  @body = body
  @quantifier = quantifier
  super(expression)
end

Instance Attribute Details

#begin (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ext/regexp_parser.rb', line 9

attr_reader :body, :quantifier, :begin, :end

#body (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ext/regexp_parser.rb', line 9

attr_reader :body, :quantifier, :begin, :end

#end (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ext/regexp_parser.rb', line 9

attr_reader :body, :quantifier, :begin, :end

#quantifier (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ext/regexp_parser.rb', line 9

attr_reader :body, :quantifier, :begin, :end