Method: RuboCop::Ext::RegexpParser::Expression::Base#loc

Defined in:
lib/rubocop/ext/regexp_parser.rb

#locObject

E.g.

[a-z]{2,}
^^^^^^^^^ expression
     ^^^^ quantifier
^^^^^     body
^         begin
    ^     end

Please open issue if you need other locations



44
45
46
# File 'lib/rubocop/ext/regexp_parser.rb', line 44

def loc
  @loc ||= Map.new(expression, **build_location)
end