# File lib/puppet-lint/data.rb, line 137 def find_resource_type_token(index) tokens[tokens[0..index].rindex { |token| token.type == :LBRACE }].prev_code_token end