sig/prism.rbs in prism-1.0.0 vs sig/prism.rbs in prism-1.1.0
- old
+ new
@@ -8,105 +8,114 @@
# Methods taking a Ruby source code string:
def self.parse: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> ParseResult
def self.profile: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> nil
def self.lex: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> LexResult
def self.lex_compat: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> LexCompat::Result
def self.parse_lex: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> ParseLexResult
def self.dump: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> String
def self.parse_comments: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> Array[comment]
def self.parse_success?: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> bool
def self.parse_failure?: (
String source,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> bool
def self.load: (
String source,
String serialized
@@ -118,98 +127,107 @@
# Methods taking a path to a Ruby file:
def self.parse_file: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> ParseResult
def self.profile_file: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> nil
def self.lex_file: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> LexResult
def self.parse_lex_file: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> ParseLexResult
def self.dump_file: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> String
def self.parse_file_comments: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> Array[comment]
def self.parse_file_success?: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> bool
def self.parse_file_failure?: (
String filepath,
+ ?encoding: Encoding | false,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> bool
interface _Stream
def gets: (?Integer integer) -> (String | nil)
end
def self.parse_stream: (
_Stream stream,
+ ?encoding: Encoding | false,
?filepath: String,
+ ?frozen_string_literal: bool,
?line: Integer,
+ ?main_script: bool,
?offset: Integer,
- ?encoding: Encoding,
- ?frozen_string_literal: bool,
- ?verbose: bool,
- ?scopes: Array[Array[Symbol]]
+ ?scopes: Array[Array[Symbol]],
+ ?verbose: bool
) -> ParseResult
end