module RuboCop::Ext::RegexpParser::Expression::CharacterSet
Provide ‘CharacterSet` with `begin` and `end` locations.
Public Instance Methods
build_location()
click to toggle source
Calls superclass method
# File lib/rubocop/ext/regexp_parser.rb, line 78 def build_location h = super body = h[:body] h.merge!( begin_l: body.with(end_pos: body.begin_pos + 1), end_l: body.with(begin_pos: body.end_pos - 1) ) end