searchcraft 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gem_rbs_collection/actionpack/6.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/actionpack/6.0/actioncontroller.rbs +127 -0
- data/.gem_rbs_collection/actionpack/6.0/actionpack-generated.rbs +12094 -0
- data/.gem_rbs_collection/actionpack/6.0/patch.rbs +93 -0
- data/.gem_rbs_collection/actionview/6.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/actionview/6.0/actionview-generated.rbs +10768 -0
- data/.gem_rbs_collection/actionview/6.0/patch.rbs +64 -0
- data/.gem_rbs_collection/activemodel/7.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/activemodel/7.0/activemodel-7.0.rbs +1 -0
- data/.gem_rbs_collection/activemodel/7.0/activemodel-generated.rbs +4319 -0
- data/.gem_rbs_collection/activemodel/7.0/manifest.yaml +12 -0
- data/.gem_rbs_collection/activemodel/7.0/patch.rbs +20 -0
- data/.gem_rbs_collection/activerecord/7.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/activerecord/7.0/activerecord-7.0.rbs +21 -0
- data/.gem_rbs_collection/activerecord/7.0/activerecord-generated.rbs +24943 -0
- data/.gem_rbs_collection/activerecord/7.0/activerecord.rbs +563 -0
- data/.gem_rbs_collection/activerecord/7.0/manifest.yaml +12 -0
- data/.gem_rbs_collection/activerecord/7.0/patch.rbs +41 -0
- data/.gem_rbs_collection/activerecord/7.0/railties.rbs +120 -0
- data/.gem_rbs_collection/activesupport/7.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/activesupport/7.0/activesupport-7.0.rbs +51 -0
- data/.gem_rbs_collection/activesupport/7.0/activesupport-generated.rbs +12672 -0
- data/.gem_rbs_collection/activesupport/7.0/activesupport.rbs +237 -0
- data/.gem_rbs_collection/activesupport/7.0/manifest.yaml +14 -0
- data/.gem_rbs_collection/activesupport/7.0/patch.rbs +89 -0
- data/.gem_rbs_collection/ast/2.4/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/ast/2.4/ast.rbs +73 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/executor.rbs +26 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/promises.rbs +249 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/utility/processor_counter.rbs +5 -0
- data/.gem_rbs_collection/i18n/1.10/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/i18n/1.10/backend.rbs +269 -0
- data/.gem_rbs_collection/i18n/1.10/i18n.rbs +117 -0
- data/.gem_rbs_collection/listen/3.2/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/listen/3.2/listen.rbs +25 -0
- data/.gem_rbs_collection/listen/3.2/listener.rbs +24 -0
- data/.gem_rbs_collection/nokogiri/1.11/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/nokogiri/1.11/nokogiri.rbs +2332 -0
- data/.gem_rbs_collection/nokogiri/1.11/patch.rbs +4 -0
- data/.gem_rbs_collection/rack/2.2/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rack/2.2/manifest.yaml +3 -0
- data/.gem_rbs_collection/rack/2.2/rack.rbs +1433 -0
- data/.gem_rbs_collection/rails-dom-testing/2.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rails-dom-testing/2.0/rails-dom-testing.rbs +55 -0
- data/.gem_rbs_collection/railties/6.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/railties/6.0/manifest.yaml +2 -0
- data/.gem_rbs_collection/railties/6.0/patch.rbs +56 -0
- data/.gem_rbs_collection/railties/6.0/railties-generated.rbs +4858 -0
- data/.gem_rbs_collection/rainbow/3.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rainbow/3.0/global.rbs +7 -0
- data/.gem_rbs_collection/rainbow/3.0/presenter.rbs +209 -0
- data/.gem_rbs_collection/rainbow/3.0/rainbow.rbs +5 -0
- data/.gem_rbs_collection/rake/13.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rake/13.0/manifest.yaml +2 -0
- data/.gem_rbs_collection/rake/13.0/rake.rbs +28 -0
- data/.gem_rbs_collection/thor/1.2/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/thor/1.2/manifest.yaml +7 -0
- data/.gem_rbs_collection/thor/1.2/thor.rbs +15 -0
- data/.overcommit.yml +10 -27
- data/.standard.yml +1 -1
- data/CHANGELOG.md +18 -3
- data/README.md +85 -1
- data/lib/searchcraft/annotate.rb +0 -2
- data/lib/searchcraft/builder.rb +5 -2
- data/lib/searchcraft/configuration.rb +19 -0
- data/lib/searchcraft/depends_on.rb +5 -12
- data/lib/searchcraft/dump_schema.rb +0 -2
- data/lib/searchcraft/model.rb +34 -32
- data/lib/searchcraft/text_search.rb +31 -0
- data/lib/searchcraft/version.rb +1 -1
- data/lib/searchcraft/view_hash_store.rb +2 -1
- data/lib/searchcraft.rb +2 -1
- data/rbs_collection.lock.yaml +174 -0
- data/rbs_collection.yaml +21 -0
- data/sig/ext/misc.rbs +33 -0
- data/sig/manifest.yaml +5 -0
- data/sig/searchcraft/annotate.rbs +7 -0
- data/sig/searchcraft/builder.rbs +58 -0
- data/sig/searchcraft/configuration.rbs +31 -0
- data/sig/searchcraft/depends_on.rbs +17 -0
- data/sig/searchcraft/dump_schema.rbs +5 -0
- data/sig/searchcraft/model.rbs +19 -0
- data/sig/searchcraft/railtie.rbs +5 -0
- data/sig/searchcraft/text_search.rbs +11 -0
- data/sig/searchcraft/view_hash_store.rbs +17 -0
- data/sig/searchcraft.rbs +17 -1
- metadata +86 -14
- data/Rakefile +0 -14
@@ -0,0 +1,237 @@
|
|
1
|
+
module ActiveSupport
|
2
|
+
module Callbacks
|
3
|
+
module ClassMethods
|
4
|
+
# Manual definition to make block optional
|
5
|
+
def set_callback: (untyped name, *untyped filter_list) ?{ () -> untyped } -> untyped
|
6
|
+
| ...
|
7
|
+
|
8
|
+
# Manual definition to make block optional
|
9
|
+
def skip_callback: (untyped name, *untyped filter_list) ?{ () -> untyped } -> untyped
|
10
|
+
| ...
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module Configurable
|
15
|
+
module ClassMethods
|
16
|
+
# Manual definition to make block optional
|
17
|
+
def config_accessor: (*untyped names, ?instance_accessor: bool instance_accessor, ?instance_writer: bool instance_writer, ?instance_reader: bool instance_reader) ?{ () -> untyped } -> untyped
|
18
|
+
| ...
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class Deprecation
|
23
|
+
class DeprecatedConstantProxy
|
24
|
+
# Manual definition to make block optional
|
25
|
+
def self.new: (*untyped args, **untyped kwargs) ?{ () -> untyped } -> untyped
|
26
|
+
| ...
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
class HashWithIndifferentAccess[T, U] < Hash[T, U]
|
31
|
+
# Manual definition to make block optional
|
32
|
+
def fetch_values: (*untyped indices) ?{ () -> untyped } -> untyped
|
33
|
+
| ...
|
34
|
+
|
35
|
+
# Manual definition to make block optional
|
36
|
+
def merge: (untyped hash) ?{ () -> untyped } -> untyped
|
37
|
+
| ...
|
38
|
+
|
39
|
+
# Manual definition to make block optional
|
40
|
+
def select: (*untyped args) ?{ () -> untyped } -> untyped
|
41
|
+
| ...
|
42
|
+
|
43
|
+
# Manual definition to make block optional
|
44
|
+
def reject: (*untyped args) ?{ () -> untyped } -> untyped
|
45
|
+
| ...
|
46
|
+
|
47
|
+
# Manual definition to make block optional
|
48
|
+
def transform_values: (*untyped args) ?{ () -> untyped } -> untyped
|
49
|
+
| ...
|
50
|
+
|
51
|
+
# Manual definition to make block optional
|
52
|
+
def transform_keys: (*untyped args) ?{ () -> untyped } -> untyped
|
53
|
+
| ...
|
54
|
+
|
55
|
+
# Manual definition to make block optional
|
56
|
+
def transform_keys!: () ?{ (untyped) -> untyped } -> untyped
|
57
|
+
| ...
|
58
|
+
end
|
59
|
+
|
60
|
+
module Testing
|
61
|
+
module TimeHelpers
|
62
|
+
# Manual definition to make block optional
|
63
|
+
def travel: (untyped duration) ?{ () -> untyped } -> untyped
|
64
|
+
| ...
|
65
|
+
|
66
|
+
# Manual definition to make block optional
|
67
|
+
def travel_to: (untyped date_or_time) ?{ () -> untyped } -> untyped
|
68
|
+
| ...
|
69
|
+
|
70
|
+
# Manual definition to make block optional
|
71
|
+
def freeze_time: () ?{ () -> untyped } -> untyped
|
72
|
+
| ...
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
class TimeWithZone
|
77
|
+
include DateAndTime::Calculations
|
78
|
+
|
79
|
+
# class_eval
|
80
|
+
def year: () -> Integer
|
81
|
+
def mon: () -> Integer
|
82
|
+
def month: () -> Integer
|
83
|
+
def day: () -> Integer
|
84
|
+
def mday: () -> Integer
|
85
|
+
def wday: () -> Integer
|
86
|
+
def yday: () -> Integer
|
87
|
+
def hour: () -> Integer
|
88
|
+
def min: () -> Integer
|
89
|
+
def sec: () -> Integer
|
90
|
+
def usec: () -> Integer
|
91
|
+
def nsec: () -> Integer
|
92
|
+
def to_date: () -> Date
|
93
|
+
|
94
|
+
# method_missing
|
95
|
+
def asctime: () -> String
|
96
|
+
alias at_beginning_of_day beginning_of_day
|
97
|
+
alias at_beginning_of_hour beginning_of_hour
|
98
|
+
alias at_beginning_of_minute beginning_of_minute
|
99
|
+
alias at_end_of_day end_of_day
|
100
|
+
alias at_end_of_hour end_of_hour
|
101
|
+
alias at_end_of_minute end_of_minute
|
102
|
+
alias at_midday middle_of_day
|
103
|
+
alias at_middle_of_day middle_of_day
|
104
|
+
alias at_midnight beginning_of_day
|
105
|
+
alias at_noon middle_of_day
|
106
|
+
def beginning_of_day: () -> self
|
107
|
+
def beginning_of_hour: () -> self
|
108
|
+
def beginning_of_minute: () -> self
|
109
|
+
def ceil: (?int ndigits) -> self
|
110
|
+
def compare_with_coercion: (untyped other) -> (-1 | 0 | 1 | nil)
|
111
|
+
def compare_without_coercion: (untyped other) -> (-1 | 0 | 1 | nil)
|
112
|
+
def ctime: () -> String
|
113
|
+
def end_of_day: () -> self
|
114
|
+
def end_of_hour: () -> self
|
115
|
+
def end_of_minute: () -> self
|
116
|
+
def eql_with_coercion: (untyped other) -> bool
|
117
|
+
def eql_without_coercion: (untyped other) -> bool
|
118
|
+
def floor: (?int ndigits) -> self
|
119
|
+
def friday?: () -> bool
|
120
|
+
alias midday middle_of_day
|
121
|
+
def middle_of_day: () -> self
|
122
|
+
alias midnight beginning_of_day
|
123
|
+
def minus_with_coercion: (Time | self arg0) -> Float
|
124
|
+
| (Numeric arg0) -> self
|
125
|
+
def minus_with_duration: (Time | self arg0) -> Float
|
126
|
+
| (Numeric arg0) -> self
|
127
|
+
def minus_without_coercion: (Time | self arg0) -> Float
|
128
|
+
| (Numeric arg0) -> self
|
129
|
+
def minus_without_duration: (Time | self arg0) -> Float
|
130
|
+
| (Numeric arg0) -> self
|
131
|
+
def monday?: () -> bool
|
132
|
+
def next_day: () -> self
|
133
|
+
def next_month: () -> self
|
134
|
+
def next_year: () -> self
|
135
|
+
alias noon middle_of_day
|
136
|
+
def plus_without_duration: (Time | self arg0) -> Float
|
137
|
+
| (Numeric arg0) -> self
|
138
|
+
def prev_day: () -> self
|
139
|
+
def prev_month: () -> self
|
140
|
+
def prev_year: () -> self
|
141
|
+
def round: (?int ndigits) -> self
|
142
|
+
def saturday?: () -> bool
|
143
|
+
def seconds_since_midnight: () -> Float
|
144
|
+
def seconds_until_end_of_day: () -> Integer
|
145
|
+
def sec_fraction: () -> (Integer | Rational)
|
146
|
+
def subsec: () -> (Integer | Rational)
|
147
|
+
def sunday?: () -> bool
|
148
|
+
def thursday?: () -> bool
|
149
|
+
def to_default_s: () -> String
|
150
|
+
def tuesday?: () -> bool
|
151
|
+
def tv_nsec: () -> Integer
|
152
|
+
def tv_usec: () -> Integer
|
153
|
+
def wednesday?: () -> bool
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
class Hash[unchecked out K, unchecked out V]
|
158
|
+
# Manual definition to make block optional
|
159
|
+
def deep_merge: (untyped other_hash) ?{ () -> untyped } -> untyped
|
160
|
+
| ...
|
161
|
+
|
162
|
+
# Manual definition to make block optional
|
163
|
+
def deep_merge!: (untyped other_hash) ?{ () -> untyped } -> untyped
|
164
|
+
| ...
|
165
|
+
|
166
|
+
def stringify_keys: () -> Hash[String, V]
|
167
|
+
|
168
|
+
def stringify_keys!: () -> self
|
169
|
+
|
170
|
+
def symbolize_keys: () -> Hash[Symbol, V]
|
171
|
+
alias to_options symbolize_keys
|
172
|
+
|
173
|
+
def symbolize_keys!: () -> self
|
174
|
+
alias to_options! symbolize_keys!
|
175
|
+
|
176
|
+
def deep_stringify_keys: () -> Hash[String, untyped]
|
177
|
+
|
178
|
+
def deep_stringify_keys!: () -> self
|
179
|
+
|
180
|
+
def deep_symbolize_keys: () -> Hash[Symbol, untyped]
|
181
|
+
|
182
|
+
def deep_symbolize_keys!: () -> self
|
183
|
+
end
|
184
|
+
|
185
|
+
class Module
|
186
|
+
# Manual definition to make block optional
|
187
|
+
def mattr_reader: (*untyped syms, ?default: untyped? default, ?instance_accessor: bool instance_accessor, ?instance_reader: bool instance_reader) ?{ () -> untyped } -> untyped
|
188
|
+
| ...
|
189
|
+
|
190
|
+
# Manual definition to make block optional
|
191
|
+
def mattr_writer: (*untyped syms, ?default: untyped? default, ?instance_accessor: bool instance_accessor, ?instance_writer: bool instance_writer) ?{ () -> untyped } -> untyped
|
192
|
+
| ...
|
193
|
+
|
194
|
+
# Manual definition to make block optional
|
195
|
+
def mattr_accessor: (*untyped syms, ?default: untyped? default, ?instance_accessor: bool instance_accessor, ?instance_writer: bool instance_writer, ?instance_reader: bool instance_reader) ?{ () -> untyped } -> untyped
|
196
|
+
| ...
|
197
|
+
end
|
198
|
+
|
199
|
+
class Integer
|
200
|
+
prepend ActiveSupport::NumericWithFormat
|
201
|
+
end
|
202
|
+
|
203
|
+
class Float
|
204
|
+
prepend ActiveSupport::NumericWithFormat
|
205
|
+
end
|
206
|
+
|
207
|
+
class BigDecimal
|
208
|
+
prepend ActiveSupport::NumericWithFormat
|
209
|
+
end
|
210
|
+
|
211
|
+
module ActiveSupport
|
212
|
+
module Tryable : BasicObject
|
213
|
+
def try: [T] () { (self) -> T } -> T # When yield self
|
214
|
+
| [T] () { () -> T } -> T # When instance_eval
|
215
|
+
| (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> untyped
|
216
|
+
|
217
|
+
def try!: [T] () { (self) -> T } -> T # When yield self
|
218
|
+
| [T] () { () -> T } -> T # When instance_eval
|
219
|
+
| (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> untyped
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
class NilClass
|
224
|
+
def try: () { (untyped) -> untyped } -> nil
|
225
|
+
| () { () -> untyped } -> nil
|
226
|
+
| (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil
|
227
|
+
|
228
|
+
def try!: () { (untyped) -> untyped } -> nil
|
229
|
+
| () { () -> untyped } -> nil
|
230
|
+
| (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil
|
231
|
+
|
232
|
+
end
|
233
|
+
|
234
|
+
class Array[unchecked out Elem]
|
235
|
+
# Manual definition to make block optional
|
236
|
+
def in_groups: (untyped number, ?untyped? fill_with) ?{ (untyped) -> untyped } -> untyped
|
237
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# manifest.yaml describes dependencies which do not appear in the gemspec.
|
2
|
+
# If this gem includes such dependencies, comment-out the following lines and
|
3
|
+
# declare the dependencies.
|
4
|
+
# If all dependencies appear in the gemspec, you should remove this file.
|
5
|
+
#
|
6
|
+
dependencies:
|
7
|
+
- name: date
|
8
|
+
- name: logger
|
9
|
+
- name: monitor
|
10
|
+
- name: mutex_m
|
11
|
+
- name: singleton
|
12
|
+
- name: time
|
13
|
+
- name: securerandom
|
14
|
+
- name: erb
|
@@ -0,0 +1,89 @@
|
|
1
|
+
class Object
|
2
|
+
# Object#sum is actually not defined, but rbs prototype rb generates it mistakenly due to `class << Benchmark`.
|
3
|
+
# So we need to define it to suppress the alias error.
|
4
|
+
def sum: () -> untyped
|
5
|
+
end
|
6
|
+
|
7
|
+
module ActiveSupport
|
8
|
+
class TestCase < ::Minitest::Test
|
9
|
+
# It is necessary to satisfy alias target.
|
10
|
+
# TODO: Define this method to correct place.
|
11
|
+
def name: () -> untyped
|
12
|
+
def assert_raises: (*untyped) -> untyped
|
13
|
+
def refute_empty: (*untyped) -> untyped
|
14
|
+
def refute_equal: (*untyped) -> untyped
|
15
|
+
def refute_in_delta: (*untyped) -> untyped
|
16
|
+
def refute_in_epsilon: (*untyped) -> untyped
|
17
|
+
def refute_includes: (*untyped) -> untyped
|
18
|
+
def refute_instance_of: (*untyped) -> untyped
|
19
|
+
def refute_kind_of: (*untyped) -> untyped
|
20
|
+
def refute_match: (*untyped) -> untyped
|
21
|
+
def refute_nil: (*untyped) -> untyped
|
22
|
+
def refute_operator: (*untyped) -> untyped
|
23
|
+
def refute_predicate: (*untyped) -> untyped
|
24
|
+
def refute_respond_to: (*untyped) -> untyped
|
25
|
+
def refute_same: (*untyped) -> untyped
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# Remove the fake type of Minitest
|
30
|
+
# if the real types are available.
|
31
|
+
module Minitest
|
32
|
+
class Test
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# Remove the fake type of LibXML
|
37
|
+
# if the real types are available.
|
38
|
+
module LibXML
|
39
|
+
module XML
|
40
|
+
module SaxParser
|
41
|
+
module Callbacks
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Remove the fake type of Nokogiri
|
48
|
+
# if the real types are available.
|
49
|
+
module Nokogiri
|
50
|
+
module XML
|
51
|
+
module SAX
|
52
|
+
class Document
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Remove the fake type of TZInfo
|
59
|
+
# if the real types are available.
|
60
|
+
module TZInfo
|
61
|
+
class Timezone
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Remove the fake type of DRb
|
66
|
+
# if the real types are available.
|
67
|
+
module DRb
|
68
|
+
module DRbUndumped
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# Remove the fake types for Gem::Version
|
73
|
+
# if the real types are available.
|
74
|
+
module Gem
|
75
|
+
class Version
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Remove the fake types for OpenSSL::Cipher
|
80
|
+
# if the real types are available.
|
81
|
+
module OpenSSL
|
82
|
+
class Cipher
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
module Rails
|
87
|
+
class Railtie
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
module AST
|
2
|
+
interface _ToAst
|
3
|
+
def to_ast: () -> Node
|
4
|
+
end
|
5
|
+
|
6
|
+
interface _ToSym
|
7
|
+
def to_sym: () -> Symbol
|
8
|
+
end
|
9
|
+
|
10
|
+
class Node
|
11
|
+
public
|
12
|
+
|
13
|
+
attr_reader children: Array[untyped]
|
14
|
+
attr_reader hash: String
|
15
|
+
attr_reader type: Symbol
|
16
|
+
|
17
|
+
alias + concat
|
18
|
+
|
19
|
+
alias << append
|
20
|
+
|
21
|
+
def ==: (untyped other) -> bool
|
22
|
+
|
23
|
+
def append: (untyped element) -> self
|
24
|
+
|
25
|
+
alias clone dup
|
26
|
+
|
27
|
+
def concat: (_ToA[untyped] array) -> self
|
28
|
+
|
29
|
+
def dup: () -> self
|
30
|
+
|
31
|
+
def eql?: (untyped other) -> bool
|
32
|
+
|
33
|
+
def inspect: (?Integer indent) -> String
|
34
|
+
|
35
|
+
alias to_a children
|
36
|
+
|
37
|
+
def to_ast: () -> self
|
38
|
+
|
39
|
+
alias to_s to_sexp
|
40
|
+
|
41
|
+
def to_sexp: (?Integer indent) -> String
|
42
|
+
|
43
|
+
def to_sexp_array: () -> Array[untyped]
|
44
|
+
|
45
|
+
def updated: (?_ToSym? `type`, ?_ToA[untyped]? children, ?Hash[Symbol, untyped]? properties) -> self
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
def initialize: (_ToSym `type`, ?_ToA[untyped]? children, ?Hash[Symbol, untyped] properties) -> void
|
50
|
+
|
51
|
+
alias original_dup dup
|
52
|
+
end
|
53
|
+
|
54
|
+
class Processor
|
55
|
+
include Mixin
|
56
|
+
|
57
|
+
module Mixin
|
58
|
+
public
|
59
|
+
|
60
|
+
def handler_missing: (Node node) -> Node?
|
61
|
+
|
62
|
+
def process: (_ToAst? node) -> Node?
|
63
|
+
|
64
|
+
def process_all: (Array[_ToAst] nodes) -> Array[Node]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
module Sexp
|
69
|
+
public
|
70
|
+
|
71
|
+
def s: (_ToSym `type`, *untyped children) -> Node
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Concurrent
|
2
|
+
module ExecutorService
|
3
|
+
interface _Task
|
4
|
+
def call: () -> void
|
5
|
+
end
|
6
|
+
|
7
|
+
def post: [A] (*A args) { (*A args) -> void } -> bool
|
8
|
+
|
9
|
+
def <<: (_Task task) -> bool
|
10
|
+
|
11
|
+
def can_overflow?: () -> bool
|
12
|
+
|
13
|
+
def serialized?: () -> bool
|
14
|
+
end
|
15
|
+
|
16
|
+
type executor = ExecutorService | :io | :fast | :immediate
|
17
|
+
|
18
|
+
def self.executor: (executor executor_identifier) -> ExecutorService
|
19
|
+
|
20
|
+
def self.global_io_executor: () -> ExecutorService
|
21
|
+
def self.global_fast_executor: () -> ExecutorService
|
22
|
+
def self.global_immediate_executor: () -> ExecutorService
|
23
|
+
|
24
|
+
def self.new_io_executor: (?Hash[Symbol, untyped] opts) -> ExecutorService
|
25
|
+
def self.new_fast_executor: (?Hash[Symbol, untyped] opts) -> ExecutorService
|
26
|
+
end
|