Skip to content

Commit 481eb54

Browse files
committed
Fix rbi for parsing options
offset and verbose don't exist anymore.
1 parent 2a16f00 commit 481eb54

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

templates/sig/prism.rbs.erb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ module Prism
2323

2424
def self.<%= method %>: (
2525
String source,
26+
?command_line: String,
2627
?encoding: Encoding | false,
2728
?filepath: String,
2829
?freeze: bool,
2930
?frozen_string_literal: bool,
3031
?line: Integer,
3132
?main_script: bool,
32-
?offset: Integer,
33+
?partial_script: bool,
3334
?scopes: Array[Array[Symbol]],
34-
?verbose: bool
35+
?version: String
3536
) -> <%= return_type %>
3637
<%- end -%>
3738

@@ -61,14 +62,15 @@ module Prism
6162

6263
def self.<%= method %>: (
6364
String filepath,
65+
?command_line: String,
6466
?encoding: Encoding | false,
6567
?freeze: bool,
6668
?frozen_string_literal: bool,
6769
?line: Integer,
6870
?main_script: bool,
69-
?offset: Integer,
71+
?partial_script: bool,
7072
?scopes: Array[Array[Symbol]],
71-
?verbose: bool
73+
?version: String
7274
) -> <%= return_type %>
7375
<%- end -%>
7476

@@ -78,15 +80,16 @@ module Prism
7880

7981
def self.parse_stream: (
8082
_Stream stream,
83+
?command_line: String,
8184
?encoding: Encoding | false,
8285
?filepath: String,
8386
?freeze: bool,
8487
?frozen_string_literal: bool,
8588
?line: Integer,
8689
?main_script: bool,
87-
?offset: Integer,
90+
?partial_script: bool,
8891
?scopes: Array[Array[Symbol]],
89-
?verbose: bool
92+
?version: String
9093
) -> ParseResult
9194

9295
def self.scope: (?locals: Array[Symbol], ?forwarding: Array[Symbol]) -> Scope

0 commit comments

Comments
 (0)