sorbet-runtime 0.5.10707 → 0.5.10712

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: f6b140cb6f308777fe8f77208f5fed85db77e0952ec88ee49489a84de95cd0a3
4
- data.tar.gz: 1c58f64832466cdf8a390f27898c87e1db5699304128ce77b859d5000d1a25d9
3
+ metadata.gz: a05878c4aaab2081fbdbe2ace767f63ff0258a57cb7f65f0bae8820550464e90
4
+ data.tar.gz: 2754e5e1b1974c35826882127e7eecee89b8d199a799852206e115527dd205e1
5
5
  SHA512:
6
- metadata.gz: b67423dac8382364860fc25d3a33f285b6c0bc3f92ae0e51a721591d1acb00639da882f83111f36c74044b893b27683777169add8e2b4eaf54dd629a58a73cc7
7
- data.tar.gz: a1f5374082120c0826792d001bc6f7347e047b4c261e9967589058d70846916e366093c7c89e5f11390652c08ce16b07daa24d6c4c7eb67539e032b29ef4611a
6
+ metadata.gz: 6c100b9d8d61dced69e10896e745e9488fafa2878a225bf884c50a170cb87f5cdc8e8ec99365e16cf4b6c1a63b4855b870bb486072d91d27c1f5168a793295de
7
+ data.tar.gz: '096e43cc100a66788bf462c58e141c75880a3afc8b30ac397165e9b14a699c7cbbb544ce1bb3e235d0154a8128cd8cdc0729111ca6a6597bfa5c5620acd4db21'
@@ -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.10707
4
+ version: 0.5.10712
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-09 00:00:00.000000000 Z
11
+ date: 2023-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest