sorbet-runtime 0.5.10710 → 0.5.10722

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba55281d7753c577465cabf8468c1863aba6730ecda3f216057d86d1cf944cbf
4
- data.tar.gz: c038cc9617893d5d879317417d8eb019d72acaa636be1142567d3409958c718e
3
+ metadata.gz: 256f9d18df309da6c9c169d0dd0b8094ac7c61bc8db42e7650b3260acd924afd
4
+ data.tar.gz: 409283a3f5af3642ba25f6a3a38d0906df6e20178f94530c335d646117fb3e9f
5
5
  SHA512:
6
- metadata.gz: 75e721891abac5aea6034d07885567af25d77847c116e90fa691ccb4769842564dab4e54e4b5e097f33a5d5cebf4406b7e20590cdf16f2f6799ee917b4b065b6
7
- data.tar.gz: 1cf23b729fe379651c9c629066a433ef862a267f3658895f50e14cf9e5d467cdf417206d37b10e61107a2b2f4b6c5e6dbfbf8983d5e85554097fdc2de0a216ea
6
+ metadata.gz: '0395cd2b5d77d9eb7c66fbfe6356d4bb285f1042decf1360b4b7927b3c6db812b76ac33c4e2a45da062442dca781ff715c815856ea94d83b352c0f23b4da896b'
7
+ data.tar.gz: 04c277dd51414d85985fc68d5f437e8cdbc934de3a1e2eb7765251317b1c173f8a6d7ebfa32abf20d949def7649ea23d5fabd9753fcf5bab0f3c7791d2fa81bb
@@ -339,9 +339,11 @@ module T::Private::Methods
339
339
  nil
340
340
  end
341
341
 
342
+ declaration_block.loc = nil
343
+
342
344
  signature =
343
345
  if current_declaration
344
- build_sig(hook_mod, method_name, original_method, current_declaration, declaration_block.loc)
346
+ build_sig(hook_mod, method_name, original_method, current_declaration)
345
347
  else
346
348
  Signature.new_untyped(method: original_method)
347
349
  end
@@ -358,7 +360,7 @@ module T::Private::Methods
358
360
  .decl
359
361
  end
360
362
 
361
- def self.build_sig(hook_mod, method_name, original_method, current_declaration, loc)
363
+ def self.build_sig(hook_mod, method_name, original_method, current_declaration)
362
364
  begin
363
365
  # We allow `sig` in the current module's context (normal case) and
364
366
  if hook_mod != current_declaration.mod &&
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorbet-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10710
4
+ version: 0.5.10722
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest