From 481eb5425a45db9bcf18186753388962a6fa5361 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:26:19 +0100 Subject: [PATCH] Fix rbi for parsing options offset and verbose don't exist anymore. --- templates/sig/prism.rbs.erb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/sig/prism.rbs.erb b/templates/sig/prism.rbs.erb index 5c74cee8f8..68358a1240 100644 --- a/templates/sig/prism.rbs.erb +++ b/templates/sig/prism.rbs.erb @@ -23,15 +23,16 @@ module Prism def self.<%= method %>: ( String source, + ?command_line: String, ?encoding: Encoding | false, ?filepath: String, ?freeze: bool, ?frozen_string_literal: bool, ?line: Integer, ?main_script: bool, - ?offset: Integer, + ?partial_script: bool, ?scopes: Array[Array[Symbol]], - ?verbose: bool + ?version: String ) -> <%= return_type %> <%- end -%> @@ -61,14 +62,15 @@ module Prism def self.<%= method %>: ( String filepath, + ?command_line: String, ?encoding: Encoding | false, ?freeze: bool, ?frozen_string_literal: bool, ?line: Integer, ?main_script: bool, - ?offset: Integer, + ?partial_script: bool, ?scopes: Array[Array[Symbol]], - ?verbose: bool + ?version: String ) -> <%= return_type %> <%- end -%> @@ -78,15 +80,16 @@ module Prism def self.parse_stream: ( _Stream stream, + ?command_line: String, ?encoding: Encoding | false, ?filepath: String, ?freeze: bool, ?frozen_string_literal: bool, ?line: Integer, ?main_script: bool, - ?offset: Integer, + ?partial_script: bool, ?scopes: Array[Array[Symbol]], - ?verbose: bool + ?version: String ) -> ParseResult def self.scope: (?locals: Array[Symbol], ?forwarding: Array[Symbol]) -> Scope