lib/rubocop/rbs/processed_rbs_source.rb in rubocop-on-rbs-1.2.0 vs lib/rubocop/rbs/processed_rbs_source.rb in rubocop-on-rbs-1.3.0
- old
+ new
@@ -21,15 +21,11 @@
def valid_syntax?
@error.nil?
end
- def tokens(with_trivia: false)
- @tokens ||= begin
- tokens = ::RBS::Parser.lex(buffer).value
- tokens.reject! { |token| token.type == :tTRIVIA } unless with_trivia
- tokens
- end
+ def tokens
+ @tokens ||= ::RBS::Parser.lex(buffer).value
end
end
end
end