sig/members.rbs in rbs-1.6.2 vs sig/members.rbs in rbs-1.7.0.beta.1
- old
+ new
@@ -23,11 +23,11 @@
# ^^^ keyword
# ^^^^^ kind
# ^^^ name
# ^^^ overload
#
- type loc = Location::WithChildren[:keyword | :name, :kind | :overload]
+ type loc = Location[:keyword | :name, :kind | :overload]
attr_reader name: Symbol
attr_reader kind: kind
attr_reader types: Array[MethodType]
attr_reader annotations: Array[Annotation]
@@ -57,11 +57,11 @@
# self.@all: Array[String]
# ^^^^^ kind
# ^^^^ name
# ^ colon
#
- type loc = Location::WithChildren[:name | :colon, :kind]
+ type loc = Location[:name | :colon, :kind]
attr_reader name: Symbol
attr_reader type: Types::t
attr_reader location: loc?
attr_reader comment: Comment?
@@ -95,11 +95,11 @@
# ^^^^^^^ keyword
# ^^^^^ name
# ^ arg_open
# ^ arg_close
#
- type loc = Location::WithChildren[:name | :keyword, :args]
+ type loc = Location[:name | :keyword, :args]
attr_reader name: TypeName
attr_reader args: Array[Types::t]
attr_reader annotations: Array[Annotation]
attr_reader location: loc?
@@ -139,11 +139,11 @@
# ^^^^ name
# ^^^^^^ ivar
# ^^^^ ivar_name
# ^ colon
#
- type loc = Location::WithChildren[:keyword | :name | :colon, :kind | :ivar | :ivar_name]
+ type loc = Location[:keyword | :name | :colon, :kind | :ivar | :ivar_name]
attr_reader name: Symbol
attr_reader type: Types::t
attr_reader kind: kind
attr_reader ivar_name: Symbol | false | nil
@@ -172,13 +172,13 @@
include Attribute
include _ToJson
end
module LocationOnly
- attr_reader location: Location?
+ attr_reader location: Location[bot, bot]?
- def initialize: (location: Location?) -> void
+ def initialize: (location: Location[bot, bot]?) -> void
include _HashEqual
end
class Public < Base
@@ -204,10 +204,10 @@
# ^^^^^ new_kind
# ^^^ new_name
# ^^^^^ old_kind
# ^^^ old_name
#
- type loc = Location::WithChildren[:keyword | :new_name | :old_name, :new_kind | :old_kind]
+ type loc = Location[:keyword | :new_name | :old_name, :new_kind | :old_kind]
attr_reader new_name: Symbol
attr_reader old_name: Symbol
attr_reader kind: kind
attr_reader annotations: Array[Annotation]