sorbet-result 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.standard.yml +1 -1
- data/CHANGELOG.md +17 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +85 -68
- data/README.md +4 -4
- data/lib/typed/no_payload_on_failure_error.rb +8 -3
- data/lib/typed/result.rb +33 -3
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/cgi@0.5.0.rbi +2961 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/erb@4.0.4.rbi +910 -0
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.12.2.rbi} +736 -238
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +12 -5
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.5.rbi} +326 -308
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.8.0.rbi} +448 -385
- data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
- data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.6.rbi} +974 -236
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.3.0.rbi} +62 -58
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +6976 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.10.0.rbi} +196 -172
- data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.6.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.45.1.rbi} +1673 -958
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.9.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.75.8.rbi} +9990 -5267
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
- data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{standard-sorbet@0.0.2.rbi → standard-sorbet@0.0.3.rbi} +1 -0
- data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.50.0.rbi} +182 -97
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.7.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.11.rbi} +489 -364
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
- metadata +46 -55
- data/.tool-versions +0 -1
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -0,0 +1,132 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `unicode-display_width` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem unicode-display_width`.
|
6
|
+
|
7
|
+
|
8
|
+
# require "rbconfig"
|
9
|
+
# RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # windows
|
10
|
+
#
|
11
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#3
|
12
|
+
module Unicode; end
|
13
|
+
|
14
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#4
|
15
|
+
class Unicode::DisplayWidth
|
16
|
+
# @return [DisplayWidth] a new instance of DisplayWidth
|
17
|
+
#
|
18
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#229
|
19
|
+
def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end
|
20
|
+
|
21
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#235
|
22
|
+
def get_config(**kwargs); end
|
23
|
+
|
24
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#243
|
25
|
+
def of(string, **kwargs); end
|
26
|
+
|
27
|
+
class << self
|
28
|
+
# source://unicode-display_width//lib/unicode/display_width/index.rb#14
|
29
|
+
def decompress_index(index, level); end
|
30
|
+
|
31
|
+
# Returns width of all considered Emoji and remaining string
|
32
|
+
#
|
33
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#143
|
34
|
+
def emoji_width(string, mode = T.unsafe(nil), ambiguous = T.unsafe(nil)); end
|
35
|
+
|
36
|
+
# Match possible Emoji first, then refine
|
37
|
+
#
|
38
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#173
|
39
|
+
def emoji_width_via_possible(string, emoji_set_regex, strict_eaw = T.unsafe(nil), ambiguous = T.unsafe(nil)); end
|
40
|
+
|
41
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#201
|
42
|
+
def normalize_options(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end
|
43
|
+
|
44
|
+
# Returns monospace display width of string
|
45
|
+
#
|
46
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#51
|
47
|
+
def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end
|
48
|
+
|
49
|
+
# Returns width for ASCII-only strings. Will consider zero-width control symbols.
|
50
|
+
#
|
51
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#133
|
52
|
+
def width_ascii(string); end
|
53
|
+
|
54
|
+
# Returns width of custom overwrites and remaining string
|
55
|
+
#
|
56
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#117
|
57
|
+
def width_custom(string, overwrite); end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#16
|
62
|
+
Unicode::DisplayWidth::AMBIGUOUS_MAP = T.let(T.unsafe(nil), Hash)
|
63
|
+
|
64
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#15
|
65
|
+
Unicode::DisplayWidth::ASCII_BACKSPACE = T.let(T.unsafe(nil), String)
|
66
|
+
|
67
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#13
|
68
|
+
Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp)
|
69
|
+
|
70
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#14
|
71
|
+
Unicode::DisplayWidth::ASCII_NON_ZERO_STRING = T.let(T.unsafe(nil), String)
|
72
|
+
|
73
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#7
|
74
|
+
Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
|
75
|
+
|
76
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#11
|
77
|
+
Unicode::DisplayWidth::DEFAULT_AMBIGUOUS = T.let(T.unsafe(nil), Integer)
|
78
|
+
|
79
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#32
|
80
|
+
Unicode::DisplayWidth::EMOJI_SEQUENCES_REGEX_MAPPING = T.let(T.unsafe(nil), Hash)
|
81
|
+
|
82
|
+
# source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#6
|
83
|
+
module Unicode::DisplayWidth::EmojiSupport
|
84
|
+
class << self
|
85
|
+
# Tries to find out which terminal emulator is used to
|
86
|
+
# set emoji: config to best suiting value
|
87
|
+
#
|
88
|
+
# Please also see section in README.md and
|
89
|
+
# misc/terminal-emoji-width.rb
|
90
|
+
#
|
91
|
+
# Please note: Many terminals do not set any ENV vars,
|
92
|
+
# maybe CSI queries can help?
|
93
|
+
#
|
94
|
+
# source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#15
|
95
|
+
def recommended; end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#28
|
100
|
+
Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Hash)
|
101
|
+
|
102
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#20
|
103
|
+
Unicode::DisplayWidth::FIRST_AMBIGUOUS = T.let(T.unsafe(nil), Hash)
|
104
|
+
|
105
|
+
# source://unicode-display_width//lib/unicode/display_width/index.rb#11
|
106
|
+
Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Hash)
|
107
|
+
|
108
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#8
|
109
|
+
Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String)
|
110
|
+
|
111
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#12
|
112
|
+
Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer)
|
113
|
+
|
114
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#24
|
115
|
+
Unicode::DisplayWidth::NOT_COMMON_NARROW_REGEX = T.let(T.unsafe(nil), Hash)
|
116
|
+
|
117
|
+
# ebase = Unicode::Emoji::REGEX_PROP_MODIFIER_BASE.source
|
118
|
+
#
|
119
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#47
|
120
|
+
Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES = T.let(T.unsafe(nil), Regexp)
|
121
|
+
|
122
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#48
|
123
|
+
Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES_AND_VS16 = T.let(T.unsafe(nil), Regexp)
|
124
|
+
|
125
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#37
|
126
|
+
Unicode::DisplayWidth::REGEX_EMOJI_VS16 = T.let(T.unsafe(nil), Regexp)
|
127
|
+
|
128
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#6
|
129
|
+
Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String)
|
130
|
+
|
131
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#5
|
132
|
+
Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,251 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `unicode-emoji` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem unicode-emoji`.
|
6
|
+
|
7
|
+
|
8
|
+
# This file was generated by a script, please do not edit it by hand.
|
9
|
+
# See `$ rake generate_constants` and data/generate_constants.rb for more info.
|
10
|
+
#
|
11
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#3
|
12
|
+
module Unicode; end
|
13
|
+
|
14
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#4
|
15
|
+
module Unicode::Emoji
|
16
|
+
class << self
|
17
|
+
# Returns ordered list of Emoji, categorized in a three-level deep Hash structure
|
18
|
+
#
|
19
|
+
# source://unicode-emoji//lib/unicode/emoji.rb#80
|
20
|
+
def list(key = T.unsafe(nil), sub_key = T.unsafe(nil)); end
|
21
|
+
|
22
|
+
# Return Emoji properties of character as an Array or nil
|
23
|
+
# See PROPERTY_NAMES constant for possible properties
|
24
|
+
#
|
25
|
+
# Source: see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt
|
26
|
+
#
|
27
|
+
# source://unicode-emoji//lib/unicode/emoji.rb#68
|
28
|
+
def properties(char); end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
# source://unicode-emoji//lib/unicode/emoji.rb#88
|
33
|
+
def get_codepoint_value(char); end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# Last codepoint of tag-based subdivision flags
|
38
|
+
#
|
39
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#31
|
40
|
+
Unicode::Emoji::CANCEL_TAG = T.let(T.unsafe(nil), Integer)
|
41
|
+
|
42
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#7
|
43
|
+
Unicode::Emoji::CLDR_VERSION = T.let(T.unsafe(nil), String)
|
44
|
+
|
45
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#8
|
46
|
+
Unicode::Emoji::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
|
47
|
+
|
48
|
+
# The current list of codepoints with the "Emoji" property
|
49
|
+
# Same characters as \p{Emoji}
|
50
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
51
|
+
#
|
52
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#8
|
53
|
+
Unicode::Emoji::EMOJI_CHAR = T.let(T.unsafe(nil), Array)
|
54
|
+
|
55
|
+
# The current list of codepoints with the "Emoji_Component" property
|
56
|
+
# Same characters as \p{Emoji Component} or \p{EComp}
|
57
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
58
|
+
#
|
59
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#21
|
60
|
+
Unicode::Emoji::EMOJI_COMPONENT = T.let(T.unsafe(nil), Array)
|
61
|
+
|
62
|
+
# The list of characters that can be used as base for keycap sequences
|
63
|
+
#
|
64
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#42
|
65
|
+
Unicode::Emoji::EMOJI_KEYCAPS = T.let(T.unsafe(nil), Array)
|
66
|
+
|
67
|
+
# Combining Enclosing Keycap character
|
68
|
+
#
|
69
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#37
|
70
|
+
Unicode::Emoji::EMOJI_KEYCAP_SUFFIX = T.let(T.unsafe(nil), Integer)
|
71
|
+
|
72
|
+
# The current list of codepoints with the "Emoji_Modifier" property
|
73
|
+
# Same characters as \p{Emoji Modifier} or \p{EMod}
|
74
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
75
|
+
#
|
76
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#31
|
77
|
+
Unicode::Emoji::EMOJI_MODIFIERS = T.let(T.unsafe(nil), Array)
|
78
|
+
|
79
|
+
# The current list of codepoints with the "Emoji_Modifier_Base" property
|
80
|
+
# Same characters as \p{Emoji Modifier Base} or \p{EBase}
|
81
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
82
|
+
#
|
83
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#26
|
84
|
+
Unicode::Emoji::EMOJI_MODIFIER_BASES = T.let(T.unsafe(nil), Array)
|
85
|
+
|
86
|
+
# The current list of codepoints with the "Emoji_Presentation" property
|
87
|
+
# Same characters as \p{Emoji Presentation} or \p{EPres}
|
88
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
89
|
+
#
|
90
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#13
|
91
|
+
Unicode::Emoji::EMOJI_PRESENTATION = T.let(T.unsafe(nil), Array)
|
92
|
+
|
93
|
+
# First codepoint of tag-based subdivision flags
|
94
|
+
#
|
95
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#28
|
96
|
+
Unicode::Emoji::EMOJI_TAG_BASE_FLAG = T.let(T.unsafe(nil), Integer)
|
97
|
+
|
98
|
+
# Variation Selector 16 (VS16), enables emoji presentation mode for preceding codepoint
|
99
|
+
#
|
100
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#22
|
101
|
+
Unicode::Emoji::EMOJI_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer)
|
102
|
+
|
103
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#6
|
104
|
+
Unicode::Emoji::EMOJI_VERSION = T.let(T.unsafe(nil), String)
|
105
|
+
|
106
|
+
# The current list of codepoints with the "Extended_Pictographic" property
|
107
|
+
# Same characters as \p{Extended Pictographic} or \p{ExtPict}
|
108
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
109
|
+
#
|
110
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#36
|
111
|
+
Unicode::Emoji::EXTENDED_PICTOGRAPHIC = T.let(T.unsafe(nil), Array)
|
112
|
+
|
113
|
+
# The current list of codepoints with the "Extended_Pictographic" property that don't have the "Emoji" property
|
114
|
+
#
|
115
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#39
|
116
|
+
Unicode::Emoji::EXTENDED_PICTOGRAPHIC_NO_EMOJI = T.let(T.unsafe(nil), Array)
|
117
|
+
|
118
|
+
# source://unicode-emoji//lib/unicode/emoji/index.rb#11
|
119
|
+
Unicode::Emoji::INDEX = T.let(T.unsafe(nil), Hash)
|
120
|
+
|
121
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#9
|
122
|
+
Unicode::Emoji::INDEX_FILENAME = T.let(T.unsafe(nil), String)
|
123
|
+
|
124
|
+
# Contains an ordered and group list of all currently recommended Emoji (RGI/FQE)
|
125
|
+
#
|
126
|
+
# source://unicode-emoji//lib/unicode/emoji/list.rb#6
|
127
|
+
Unicode::Emoji::LIST = T.let(T.unsafe(nil), Hash)
|
128
|
+
|
129
|
+
# Sometimes, categories change, we issue a warning in these cases
|
130
|
+
#
|
131
|
+
# source://unicode-emoji//lib/unicode/emoji/list.rb#9
|
132
|
+
Unicode::Emoji::LIST_REMOVED_KEYS = T.let(T.unsafe(nil), Array)
|
133
|
+
|
134
|
+
# Unicode properties, see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt
|
135
|
+
#
|
136
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#12
|
137
|
+
Unicode::Emoji::PROPERTY_NAMES = T.let(T.unsafe(nil), Hash)
|
138
|
+
|
139
|
+
# The list RGI tag sequence flags
|
140
|
+
#
|
141
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#51
|
142
|
+
Unicode::Emoji::RECOMMENDED_SUBDIVISION_FLAGS = T.let(T.unsafe(nil), Array)
|
143
|
+
|
144
|
+
# The list of fully-qualified RGI Emoji ZWJ sequences
|
145
|
+
#
|
146
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#54
|
147
|
+
Unicode::Emoji::RECOMMENDED_ZWJ_SEQUENCES = T.let(T.unsafe(nil), Array)
|
148
|
+
|
149
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex.rb#6
|
150
|
+
Unicode::Emoji::REGEX = T.let(T.unsafe(nil), Regexp)
|
151
|
+
|
152
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_basic.rb#6
|
153
|
+
Unicode::Emoji::REGEX_BASIC = T.let(T.unsafe(nil), Regexp)
|
154
|
+
|
155
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_emoji_keycap.rb#6
|
156
|
+
Unicode::Emoji::REGEX_EMOJI_KEYCAP = T.let(T.unsafe(nil), Regexp)
|
157
|
+
|
158
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_include_mqe.rb#6
|
159
|
+
Unicode::Emoji::REGEX_INCLUDE_MQE = T.let(T.unsafe(nil), Regexp)
|
160
|
+
|
161
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_include_mqe_uqe.rb#6
|
162
|
+
Unicode::Emoji::REGEX_INCLUDE_MQE_UQE = T.let(T.unsafe(nil), Regexp)
|
163
|
+
|
164
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_include_text.rb#6
|
165
|
+
Unicode::Emoji::REGEX_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
|
166
|
+
|
167
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_picto.rb#6
|
168
|
+
Unicode::Emoji::REGEX_PICTO = T.let(T.unsafe(nil), Regexp)
|
169
|
+
|
170
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_picto_no_emoji.rb#6
|
171
|
+
Unicode::Emoji::REGEX_PICTO_NO_EMOJI = T.let(T.unsafe(nil), Regexp)
|
172
|
+
|
173
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_possible.rb#6
|
174
|
+
Unicode::Emoji::REGEX_POSSIBLE = T.let(T.unsafe(nil), Regexp)
|
175
|
+
|
176
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_component.rb#6
|
177
|
+
Unicode::Emoji::REGEX_PROP_COMPONENT = T.let(T.unsafe(nil), Regexp)
|
178
|
+
|
179
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_emoji.rb#6
|
180
|
+
Unicode::Emoji::REGEX_PROP_EMOJI = T.let(T.unsafe(nil), Regexp)
|
181
|
+
|
182
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_modifier.rb#6
|
183
|
+
Unicode::Emoji::REGEX_PROP_MODIFIER = T.let(T.unsafe(nil), Regexp)
|
184
|
+
|
185
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_modifier_base.rb#6
|
186
|
+
Unicode::Emoji::REGEX_PROP_MODIFIER_BASE = T.let(T.unsafe(nil), Regexp)
|
187
|
+
|
188
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_presentation.rb#6
|
189
|
+
Unicode::Emoji::REGEX_PROP_PRESENTATION = T.let(T.unsafe(nil), Regexp)
|
190
|
+
|
191
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_text.rb#6
|
192
|
+
Unicode::Emoji::REGEX_TEXT = T.let(T.unsafe(nil), Regexp)
|
193
|
+
|
194
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_text_presentation.rb#6
|
195
|
+
Unicode::Emoji::REGEX_TEXT_PRESENTATION = T.let(T.unsafe(nil), Regexp)
|
196
|
+
|
197
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_valid.rb#6
|
198
|
+
Unicode::Emoji::REGEX_VALID = T.let(T.unsafe(nil), Regexp)
|
199
|
+
|
200
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_valid_include_text.rb#6
|
201
|
+
Unicode::Emoji::REGEX_VALID_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
|
202
|
+
|
203
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_well_formed.rb#6
|
204
|
+
Unicode::Emoji::REGEX_WELL_FORMED = T.let(T.unsafe(nil), Regexp)
|
205
|
+
|
206
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_well_formed_include_text.rb#6
|
207
|
+
Unicode::Emoji::REGEX_WELL_FORMED_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
|
208
|
+
|
209
|
+
# Two regional indicators make up a region
|
210
|
+
#
|
211
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#43
|
212
|
+
Unicode::Emoji::REGIONAL_INDICATORS = T.let(T.unsafe(nil), Array)
|
213
|
+
|
214
|
+
# Tags characters allowed in tag-based subdivision flags
|
215
|
+
#
|
216
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#34
|
217
|
+
Unicode::Emoji::SPEC_TAGS = T.let(T.unsafe(nil), Array)
|
218
|
+
|
219
|
+
# The current list of codepoints with the "Emoji" property that lack the "Emoji Presentation" property
|
220
|
+
#
|
221
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#16
|
222
|
+
Unicode::Emoji::TEXT_PRESENTATION = T.let(T.unsafe(nil), Array)
|
223
|
+
|
224
|
+
# Variation Selector 15 (VS15), enables text presentation mode for preceding codepoint
|
225
|
+
#
|
226
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#25
|
227
|
+
Unicode::Emoji::TEXT_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer)
|
228
|
+
|
229
|
+
# The list of valid regions
|
230
|
+
#
|
231
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#45
|
232
|
+
Unicode::Emoji::VALID_REGION_FLAGS = T.let(T.unsafe(nil), Array)
|
233
|
+
|
234
|
+
# The list of valid subdivisions in regex character class syntax
|
235
|
+
#
|
236
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#48
|
237
|
+
Unicode::Emoji::VALID_SUBDIVISIONS = T.let(T.unsafe(nil), Array)
|
238
|
+
|
239
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#5
|
240
|
+
Unicode::Emoji::VERSION = T.let(T.unsafe(nil), String)
|
241
|
+
|
242
|
+
# The current list of Emoji components that should have a visual representation
|
243
|
+
# Currently skin tone modifiers + hair components
|
244
|
+
#
|
245
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#47
|
246
|
+
Unicode::Emoji::VISUAL_COMPONENT = T.let(T.unsafe(nil), Array)
|
247
|
+
|
248
|
+
# Zero-width-joiner to enable combination of multiple Emoji in a sequence
|
249
|
+
#
|
250
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#40
|
251
|
+
Unicode::Emoji::ZWJ = T.let(T.unsafe(nil), Integer)
|
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `yard-sorbet` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem yard-sorbet`.
|
6
6
|
|
7
|
+
|
7
8
|
class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base
|
8
9
|
include ::YARDSorbet::Handlers::StructClassHandler
|
9
10
|
end
|
@@ -35,7 +36,7 @@ end
|
|
35
36
|
# source://yard-sorbet//lib/yard-sorbet/handlers.rb#7
|
36
37
|
module YARDSorbet::Handlers; end
|
37
38
|
|
38
|
-
#
|
39
|
+
# Applies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present).
|
39
40
|
#
|
40
41
|
# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7
|
41
42
|
class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
|
@@ -94,7 +95,7 @@ end
|
|
94
95
|
#
|
95
96
|
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9
|
96
97
|
class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
|
97
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#
|
98
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#21
|
98
99
|
sig { void }
|
99
100
|
def process; end
|
100
101
|
|
@@ -120,7 +121,7 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
|
120
121
|
|
121
122
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#73
|
122
123
|
sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void }
|
123
|
-
def
|
124
|
+
def document_attrs(method_objects); end
|
124
125
|
|
125
126
|
# An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr*
|
126
127
|
# declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr*
|
@@ -130,7 +131,7 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
|
130
131
|
sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) }
|
131
132
|
def merged_into_attr?(attr_node); end
|
132
133
|
|
133
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
134
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#76
|
134
135
|
sig do
|
135
136
|
params(
|
136
137
|
attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode),
|
@@ -140,15 +141,15 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
|
140
141
|
end
|
141
142
|
def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end
|
142
143
|
|
143
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
144
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#97
|
144
145
|
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
145
146
|
def parse_params(node, docstring); end
|
146
147
|
|
147
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
148
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#107
|
148
149
|
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
149
150
|
def parse_return(node, docstring); end
|
150
151
|
|
151
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#
|
152
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#85
|
152
153
|
sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void }
|
153
154
|
def parse_sig(docstring, include_params: T.unsafe(nil)); end
|
154
155
|
|
@@ -222,27 +223,27 @@ class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
|
|
222
223
|
sig { returns(T::Boolean) }
|
223
224
|
def immutable?; end
|
224
225
|
|
225
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
226
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#42
|
226
227
|
sig { params(kwd: ::String).returns(T.nilable(::String)) }
|
227
228
|
def kw_arg(kwd); end
|
228
229
|
|
229
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
230
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#45
|
230
231
|
sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
|
231
232
|
def make_prop(name); end
|
232
233
|
|
233
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
234
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#56
|
234
235
|
sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) }
|
235
236
|
def params; end
|
236
237
|
|
237
238
|
# Register the field explicitly as an attribute.
|
238
239
|
#
|
239
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
240
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60
|
240
241
|
sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
|
241
242
|
def register_attrs(object, name); end
|
242
243
|
|
243
244
|
# Store the prop for use in the constructor definition
|
244
245
|
#
|
245
|
-
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#
|
246
|
+
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#68
|
246
247
|
sig { params(prop: ::YARDSorbet::TStructProp).void }
|
247
248
|
def update_state(prop); end
|
248
249
|
end
|
@@ -266,13 +267,19 @@ module YARDSorbet::NodeUtils
|
|
266
267
|
end
|
267
268
|
def bfs_traverse(node, &_blk); end
|
268
269
|
|
269
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
270
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#31
|
270
271
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).void }
|
271
272
|
def delete_node(node); end
|
272
273
|
|
274
|
+
# Enqueue the eligible children of a node in the BFS queue
|
275
|
+
#
|
276
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#35
|
277
|
+
sig { params(queue: ::Thread::Queue, node: ::YARD::Parser::Ruby::AstNode).void }
|
278
|
+
def enqueue_children(queue, node); end
|
279
|
+
|
273
280
|
# Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like
|
274
281
|
#
|
275
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
282
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#48
|
276
283
|
sig do
|
277
284
|
params(
|
278
285
|
node: ::YARD::Parser::Ruby::AstNode
|
@@ -284,17 +291,17 @@ module YARDSorbet::NodeUtils
|
|
284
291
|
#
|
285
292
|
# @raise [IndexError] if the node does not have an adjacent sibling (ascending)
|
286
293
|
#
|
287
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
294
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#53
|
288
295
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
|
289
296
|
def sibling_node(node); end
|
290
297
|
|
291
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
298
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#60
|
292
299
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
|
293
300
|
def sigable_node?(node); end
|
294
301
|
|
295
302
|
# @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names
|
296
303
|
#
|
297
|
-
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#
|
304
|
+
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#71
|
298
305
|
sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
299
306
|
def validated_attribute_names(attr_node); end
|
300
307
|
end
|
@@ -328,43 +335,43 @@ module YARDSorbet::SigToYARD
|
|
328
335
|
|
329
336
|
private
|
330
337
|
|
331
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
338
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#58
|
332
339
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
|
333
340
|
def build_generic_type(node); end
|
334
341
|
|
335
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
342
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#67
|
336
343
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
337
344
|
def convert_aref(node); end
|
338
345
|
|
339
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
346
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#79
|
340
347
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
341
348
|
def convert_array(node); end
|
342
349
|
|
343
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
350
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#87
|
344
351
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
345
352
|
def convert_collection(node); end
|
346
353
|
|
347
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
354
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#94
|
348
355
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
349
356
|
def convert_hash(node); end
|
350
357
|
|
351
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
358
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#102
|
352
359
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
353
360
|
def convert_list(node); end
|
354
361
|
|
355
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
362
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#28
|
356
363
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
357
364
|
def convert_node(node); end
|
358
365
|
|
359
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
366
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#40
|
360
367
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
361
368
|
def convert_node_type(node); end
|
362
369
|
|
363
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
370
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#107
|
364
371
|
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
365
372
|
def convert_t_method(node); end
|
366
373
|
|
367
|
-
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#
|
374
|
+
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#118
|
368
375
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
369
376
|
def convert_unknown(node); end
|
370
377
|
end
|
@@ -381,7 +388,7 @@ class YARDSorbet::TStructProp < ::T::Struct
|
|
381
388
|
const :types, T::Array[::String]
|
382
389
|
|
383
390
|
class << self
|
384
|
-
# source://sorbet-runtime/0.5.
|
391
|
+
# source://sorbet-runtime/0.5.11633/lib/types/struct.rb#13
|
385
392
|
def inherited(s); end
|
386
393
|
end
|
387
394
|
end
|
@@ -403,7 +410,7 @@ module YARDSorbet::TagUtils
|
|
403
410
|
|
404
411
|
# Create or update a `YARD` tag with type information
|
405
412
|
#
|
406
|
-
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#
|
413
|
+
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#28
|
407
414
|
sig do
|
408
415
|
params(
|
409
416
|
docstring: ::YARD::Docstring,
|