-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete ProtobufDescriptorPool (#3076)
* Delete ProtobufDescriptorPool This was always a hack. There's now a far better solution, which is to use <https://github.com/coinbase/protoc-gen-rbi> to generate typed RBIs. * wip: try suppressing an error kind for autogen * Add test for changes to autogen
- Loading branch information
Showing
10 changed files
with
169 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# ParsedFile: test/cli/autogen-ignore/autogen-ignore.rb | ||
requires: [] | ||
## defs: | ||
[def id=0] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
[def id=1] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Opus] | ||
[def id=2] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Autogen] | ||
[def id=3] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Proto] | ||
[def id=4] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Com] | ||
[def id=5] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Stripe] | ||
[def id=6] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Payserver] | ||
[def id=7] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Events] | ||
[def id=8] | ||
type=module | ||
defines_behavior=0 | ||
is_empty=0 | ||
defining_ref=[Privacy] | ||
[def id=9] | ||
type=casgn | ||
defines_behavior=1 | ||
is_empty=0 | ||
defining_ref=[NewDeletionManifest] | ||
[def id=10] | ||
type=casgn | ||
defines_behavior=1 | ||
is_empty=0 | ||
defining_ref=[NewDeletionManifest RootType] | ||
## refs: | ||
[ref id=0] | ||
scope=[] | ||
name=[Opus] | ||
nesting=[] | ||
resolved=[Opus] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:3 | ||
is_defining_ref=1 | ||
[ref id=1] | ||
scope=[Opus] | ||
name=[Autogen] | ||
nesting=[[Opus]] | ||
resolved=[Opus Autogen] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:4 | ||
is_defining_ref=1 | ||
[ref id=2] | ||
scope=[Opus Autogen] | ||
name=[Proto] | ||
nesting=[[Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:5 | ||
is_defining_ref=1 | ||
[ref id=3] | ||
scope=[Opus Autogen Proto] | ||
name=[Com] | ||
nesting=[[Opus Autogen Proto] [Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto Com] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:6 | ||
is_defining_ref=1 | ||
[ref id=4] | ||
scope=[Opus Autogen Proto Com] | ||
name=[Stripe] | ||
nesting=[[Opus Autogen Proto Com] [Opus Autogen Proto] [Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto Com Stripe] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:7 | ||
is_defining_ref=1 | ||
[ref id=5] | ||
scope=[Opus Autogen Proto Com Stripe] | ||
name=[Payserver] | ||
nesting=[[Opus Autogen Proto Com Stripe] [Opus Autogen Proto Com] [Opus Autogen Proto] [Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto Com Stripe Payserver] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:8 | ||
is_defining_ref=1 | ||
[ref id=6] | ||
scope=[Opus Autogen Proto Com Stripe Payserver] | ||
name=[Events] | ||
nesting=[[Opus Autogen Proto Com Stripe Payserver] [Opus Autogen Proto Com Stripe] [Opus Autogen Proto Com] [Opus Autogen Proto] [Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto Com Stripe Payserver Events] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:9 | ||
is_defining_ref=1 | ||
[ref id=7] | ||
scope=[Opus Autogen Proto Com Stripe Payserver Events] | ||
name=[Privacy] | ||
nesting=[[Opus Autogen Proto Com Stripe Payserver Events] [Opus Autogen Proto Com Stripe Payserver] [Opus Autogen Proto Com Stripe] [Opus Autogen Proto Com] [Opus Autogen Proto] [Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto Com Stripe Payserver Events Privacy] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:10 | ||
is_defining_ref=1 | ||
[ref id=8] | ||
scope=[Opus Autogen Proto Com Stripe Payserver Events Privacy] | ||
name=[NewDeletionManifest] | ||
nesting=[[Opus Autogen Proto Com Stripe Payserver Events Privacy] [Opus Autogen Proto Com Stripe Payserver Events] [Opus Autogen Proto Com Stripe Payserver] [Opus Autogen Proto Com Stripe] [Opus Autogen Proto Com] [Opus Autogen Proto] [Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto Com Stripe Payserver Events Privacy NewDeletionManifest] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:11 | ||
is_defining_ref=1 | ||
[ref id=9] | ||
scope=[] | ||
name=[Google Protobuf DescriptorPool] | ||
nesting=[] | ||
resolved=[] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:11 | ||
is_defining_ref=0 | ||
[ref id=10] | ||
scope=[Opus Autogen Proto Com Stripe Payserver Events Privacy] | ||
name=[NewDeletionManifest RootType] | ||
nesting=[[Opus Autogen Proto Com Stripe Payserver Events Privacy] [Opus Autogen Proto Com Stripe Payserver Events] [Opus Autogen Proto Com Stripe Payserver] [Opus Autogen Proto Com Stripe] [Opus Autogen Proto Com] [Opus Autogen Proto] [Opus Autogen] [Opus]] | ||
resolved=[Opus Autogen Proto Com Stripe Payserver Events Privacy NewDeletionManifest RootTypeNo errors! Great job. | ||
] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:12 | ||
is_defining_ref=1 | ||
[ref id=11] | ||
scope=[] | ||
name=[Google Protobuf DescriptorPool] | ||
nesting=[] | ||
resolved=[] | ||
loc=test/cli/autogen-ignore/autogen-ignore.rb:12 | ||
is_defining_ref=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# typed: ignore | ||
|
||
module Opus | ||
module Autogen | ||
module Proto | ||
module Com | ||
module Stripe | ||
module Payserver | ||
module Events | ||
module Privacy | ||
NewDeletionManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.stripe.payserver.events.privacy.NewDeletionManifest").msgclass | ||
NewDeletionManifest::RootType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.stripe.payserver.events.privacy.NewDeletionManifest.RootType").enummodule | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
main/sorbet --silence-dev-message --stop-after=namer -p autogen test/cli/autogen-ignore/autogen-ignore.rb 2>&1 |
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
test/testdata/rewriter/protobuf_descriptor_pool.rb.rewrite-tree.exp
This file was deleted.
Oops, something went wrong.