We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea7e400 commit c3cc282Copy full SHA for c3cc282
lib/prism/translation/parser.rb
@@ -116,7 +116,7 @@ def unwrap(result, offset_cache)
116
diagnostics.process(Diagnostic.new(error.message, :error, location))
117
end
118
result.warnings.each do |warning|
119
- next unless valid_error?(warning)
+ next unless valid_warning?(warning)
120
121
location = build_range(warning.location, offset_cache)
122
diagnostics.process(Diagnostic.new(warning.message, :warning, location))
0 commit comments