Skip to content

Commit 329e187

Browse files
committed
Typecheck _Visitor as Visitor
1 parent 2c88ed8 commit 329e187

3 files changed

Lines changed: 159 additions & 154 deletions

File tree

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ test/prism/fixtures/seattlerb/**/*.txt linguist-vendored
77
test/prism/fixtures/unparser/**/*.txt linguist-vendored
88
test/prism/fixtures/whitequark/**/*.txt linguist-vendored
99
test/prism/snapshots/**/*.txt linguist-generated
10+
11+
rbi/generated/**/*.rbi linguist-generated
1012
sig/generated/**/*.rbs linguist-generated
1113

1214
# All .rb files should have LF line ending, even on Windows, regardless of the git config core.autocrlf value.

rakelib/typecheck.rake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,10 @@ namespace :typecheck do
249249
end
250250
when RBS::Types::Interface
251251
case type.name.name
252-
when :_CodeUnitsCache, :_CommentTarget, :_Field, :_Repository, :_Stream, :_Value, :_Visitor
252+
when :_CodeUnitsCache, :_CommentTarget, :_Field, :_Repository, :_Stream, :_Value
253253
RBI::Type.untyped
254+
when :_Visitor
255+
RBI::Type.simple("Visitor")
254256
else
255257
raise
256258
end
@@ -331,6 +333,7 @@ namespace :typecheck do
331333
- ./lib/prism/node_ext.rb
332334
- ./lib/prism/parse_result.rb
333335
- ./lib/prism/pattern.rb
336+
- ./lib/prism/visitor.rb
334337
- ./lib/prism/translation/parser/lexer.rb
335338
- ./lib/prism/translation/ripper.rb
336339
- ./lib/prism/translation/ripper/sexp.rb

0 commit comments

Comments
 (0)