sig/prism/node.rbs in prism-1.1.0 vs sig/prism/node.rbs in prism-1.2.0
- old
+ new
@@ -136,17 +136,13 @@
# ^^^^^^^^^^^^^
class ArgumentsNode < Node
include _Node
def contains_forwarding?: () -> bool
-
def contains_keywords?: () -> bool
-
def contains_keyword_splat?: () -> bool
-
def contains_splat?: () -> bool
-
def contains_multiple_splats?: () -> bool
attr_reader arguments: Array[Prism::node]
def initialize: (Source source, Integer node_id, Location location, Integer flags, Array[Prism::node] arguments) -> void
@@ -433,15 +429,12 @@
# ^^^^^^^^^^^^^^^^^
class CallAndWriteNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node?
attr_reader call_operator_loc: Location?
attr_reader message_loc: Location?
@@ -482,15 +475,12 @@
# ^^^^^^^^
class CallNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node?
attr_reader call_operator_loc: Location?
attr_reader name: Symbol
@@ -518,15 +508,12 @@
# ^^^^^^^^^^^^^^
class CallOperatorWriteNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node?
attr_reader call_operator_loc: Location?
attr_reader message_loc: Location?
@@ -552,15 +539,12 @@
# ^^^^^^^^^^^^^^^^^
class CallOrWriteNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node?
attr_reader call_operator_loc: Location?
attr_reader message_loc: Location?
@@ -594,15 +578,12 @@
# ^^^^^^^
class CallTargetNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node
attr_reader call_operator_loc: Location
attr_reader name: Symbol
@@ -1676,15 +1657,12 @@
# ^^^^^^^^^^^^^^^^^^^^^^
class IndexAndWriteNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node?
attr_reader call_operator_loc: Location?
attr_reader opening_loc: Location
@@ -1712,15 +1690,12 @@
# ^^^^^^^^^^^^^^^^^^^^^
class IndexOperatorWriteNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node?
attr_reader call_operator_loc: Location?
attr_reader opening_loc: Location
@@ -1748,15 +1723,12 @@
# ^^^^^^^^^^^^^^^^^^^^^^
class IndexOrWriteNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node?
attr_reader call_operator_loc: Location?
attr_reader opening_loc: Location
@@ -1792,15 +1764,12 @@
# ^^^^^^^^
class IndexTargetNode < Node
include _Node
def safe_navigation?: () -> bool
-
def variable_call?: () -> bool
-
def attribute_write?: () -> bool
-
def ignore_visibility?: () -> bool
attr_reader receiver: Prism::node
attr_reader opening_loc: Location
attr_reader arguments: ArgumentsNode?
@@ -1941,15 +1910,12 @@
# ^
class IntegerNode < Node
include _Node
def binary?: () -> bool
-
def decimal?: () -> bool
-
def octal?: () -> bool
-
def hexadecimal?: () -> bool
attr_reader value: Integer
def initialize: (Source source, Integer node_id, Location location, Integer flags, Integer value) -> void
@@ -1966,29 +1932,19 @@
# ^^^^^^^^^^^^^^^^
class InterpolatedMatchLastLineNode < Node
include _Node
def ignore_case?: () -> bool
-
def extended?: () -> bool
-
def multi_line?: () -> bool
-
def once?: () -> bool
-
def euc_jp?: () -> bool
-
def ascii_8bit?: () -> bool
-
def windows_31j?: () -> bool
-
def utf_8?: () -> bool
-
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
-
def forced_us_ascii_encoding?: () -> bool
attr_reader opening_loc: Location
attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode]
attr_reader closing_loc: Location
@@ -2009,29 +1965,19 @@
# ^^^^^^^^^^^^^^^^
class InterpolatedRegularExpressionNode < Node
include _Node
def ignore_case?: () -> bool
-
def extended?: () -> bool
-
def multi_line?: () -> bool
-
def once?: () -> bool
-
def euc_jp?: () -> bool
-
def ascii_8bit?: () -> bool
-
def windows_31j?: () -> bool
-
def utf_8?: () -> bool
-
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
-
def forced_us_ascii_encoding?: () -> bool
attr_reader opening_loc: Location
attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode]
attr_reader closing_loc: Location
@@ -2052,11 +1998,10 @@
# ^^^^^^^^^^^^^^^^
class InterpolatedStringNode < Node
include _Node
def frozen?: () -> bool
-
def mutable?: () -> bool
attr_reader opening_loc: Location?
attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode | InterpolatedStringNode]
attr_reader closing_loc: Location?
@@ -2342,29 +2287,19 @@
# ^^^^^^
class MatchLastLineNode < Node
include _Node
def ignore_case?: () -> bool
-
def extended?: () -> bool
-
def multi_line?: () -> bool
-
def once?: () -> bool
-
def euc_jp?: () -> bool
-
def ascii_8bit?: () -> bool
-
def windows_31j?: () -> bool
-
def utf_8?: () -> bool
-
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
-
def forced_us_ascii_encoding?: () -> bool
attr_reader opening_loc: Location
attr_reader content_loc: Location
attr_reader closing_loc: Location
@@ -2865,15 +2800,12 @@
# ^^^^
class RationalNode < Node
include _Node
def binary?: () -> bool
-
def decimal?: () -> bool
-
def octal?: () -> bool
-
def hexadecimal?: () -> bool
attr_reader numerator: Integer
attr_reader denominator: Integer
@@ -2907,29 +2839,19 @@
# ^^^^^^
class RegularExpressionNode < Node
include _Node
def ignore_case?: () -> bool
-
def extended?: () -> bool
-
def multi_line?: () -> bool
-
def once?: () -> bool
-
def euc_jp?: () -> bool
-
def ascii_8bit?: () -> bool
-
def windows_31j?: () -> bool
-
def utf_8?: () -> bool
-
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
-
def forced_us_ascii_encoding?: () -> bool
attr_reader opening_loc: Location
attr_reader content_loc: Location
attr_reader closing_loc: Location
@@ -3013,11 +2935,11 @@
# rescue Foo, *splat, Bar => ex
# foo
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# end
#
- # `Foo, *splat, Bar` are in the `exceptions` field. `ex` is in the `exception` field.
+ # `Foo, *splat, Bar` are in the `exceptions` field. `ex` is in the `reference` field.
class RescueNode < Node
include _Node
attr_reader keyword_loc: Location
attr_reader exceptions: Array[Prism::node]
@@ -3117,13 +3039,11 @@
# ^^^^^^^^^^^^
class ShareableConstantNode < Node
include _Node
def literal?: () -> bool
-
def experimental_everything?: () -> bool
-
def experimental_copy?: () -> bool
attr_reader write: ConstantWriteNode | ConstantAndWriteNode | ConstantOrWriteNode | ConstantOperatorWriteNode | ConstantPathWriteNode | ConstantPathAndWriteNode | ConstantPathOrWriteNode | ConstantPathOperatorWriteNode
def initialize: (Source source, Integer node_id, Location location, Integer flags, ConstantWriteNode | ConstantAndWriteNode | ConstantOrWriteNode | ConstantOperatorWriteNode | ConstantPathWriteNode | ConstantPathAndWriteNode | ConstantPathOrWriteNode | ConstantPathOperatorWriteNode write) -> void
@@ -3181,15 +3101,12 @@
# ^^^^^^^^
class SourceFileNode < Node
include _Node
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
-
def frozen?: () -> bool
-
def mutable?: () -> bool
attr_reader filepath: String
def initialize: (Source source, Integer node_id, Location location, Integer flags, String filepath) -> void
@@ -3264,15 +3181,12 @@
# ^^^^ ^^^^
class StringNode < Node
include _Node
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
-
def frozen?: () -> bool
-
def mutable?: () -> bool
attr_reader opening_loc: Location?
attr_reader content_loc: Location
attr_reader closing_loc: Location?
@@ -3325,13 +3239,11 @@
# ^^^
class SymbolNode < Node
include _Node
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
-
def forced_us_ascii_encoding?: () -> bool
attr_reader opening_loc: Location?
attr_reader value_loc: Location?
attr_reader closing_loc: Location?
@@ -3495,10 +3407,9 @@
# ^^^^^
class XStringNode < Node
include _Node
def forced_utf8_encoding?: () -> bool
-
def forced_binary_encoding?: () -> bool
attr_reader opening_loc: Location
attr_reader content_loc: Location
attr_reader closing_loc: Location