-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from jez/jez-fix-49
Don't crash if SourceCodeInfo() has returned `nil`
- Loading branch information
Showing
5 changed files
with
194 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
.idea | ||
|
||
# Ignore these binary files so that if they are different. We don't actually | ||
# care whether there are differences in these files, as they're generated from | ||
# protoc itself, not from protoc-gen-rbi, and can simply be different if protoc | ||
# changes, or if the input proto file changes. | ||
testbinary/*_bin.proto | ||
testdata/*.proto.bin |
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 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,121 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: testbinary/example_bin.proto | ||
# typed: strict | ||
|
||
class Example::Request | ||
include ::Google::Protobuf::MessageExts | ||
extend ::Google::Protobuf::MessageExts::ClassMethods | ||
|
||
sig { params(str: String).returns(Example::Request) } | ||
def self.decode(str) | ||
end | ||
|
||
sig { params(msg: Example::Request).returns(String) } | ||
def self.encode(msg) | ||
end | ||
|
||
sig { params(str: String, kw: T.untyped).returns(Example::Request) } | ||
def self.decode_json(str, **kw) | ||
end | ||
|
||
sig { params(msg: Example::Request, kw: T.untyped).returns(String) } | ||
def self.encode_json(msg, **kw) | ||
end | ||
|
||
sig { returns(::Google::Protobuf::Descriptor) } | ||
def self.descriptor | ||
end | ||
|
||
sig do | ||
params( | ||
name: T.nilable(String) | ||
).void | ||
end | ||
def initialize( | ||
name: "" | ||
) | ||
end | ||
|
||
sig { returns(String) } | ||
def name | ||
end | ||
|
||
sig { params(value: String).void } | ||
def name=(value) | ||
end | ||
|
||
sig { void } | ||
def clear_name | ||
end | ||
|
||
sig { params(field: String).returns(T.untyped) } | ||
def [](field) | ||
end | ||
|
||
sig { params(field: String, value: T.untyped).void } | ||
def []=(field, value) | ||
end | ||
|
||
sig { returns(T::Hash[Symbol, T.untyped]) } | ||
def to_h | ||
end | ||
end | ||
|
||
class Example::Response | ||
include ::Google::Protobuf::MessageExts | ||
extend ::Google::Protobuf::MessageExts::ClassMethods | ||
|
||
sig { params(str: String).returns(Example::Response) } | ||
def self.decode(str) | ||
end | ||
|
||
sig { params(msg: Example::Response).returns(String) } | ||
def self.encode(msg) | ||
end | ||
|
||
sig { params(str: String, kw: T.untyped).returns(Example::Response) } | ||
def self.decode_json(str, **kw) | ||
end | ||
|
||
sig { params(msg: Example::Response, kw: T.untyped).returns(String) } | ||
def self.encode_json(msg, **kw) | ||
end | ||
|
||
sig { returns(::Google::Protobuf::Descriptor) } | ||
def self.descriptor | ||
end | ||
|
||
sig do | ||
params( | ||
greeting: T.nilable(String) | ||
).void | ||
end | ||
def initialize( | ||
greeting: "" | ||
) | ||
end | ||
|
||
sig { returns(String) } | ||
def greeting | ||
end | ||
|
||
sig { params(value: String).void } | ||
def greeting=(value) | ||
end | ||
|
||
sig { void } | ||
def clear_greeting | ||
end | ||
|
||
sig { params(field: String).returns(T.untyped) } | ||
def [](field) | ||
end | ||
|
||
sig { params(field: String, value: T.untyped).void } | ||
def []=(field, value) | ||
end | ||
|
||
sig { returns(T::Hash[Symbol, T.untyped]) } | ||
def to_h | ||
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,29 @@ | ||
# Code generated by protoc-gen-rbi. DO NOT EDIT. | ||
# source: testbinary/example_bin.proto | ||
# typed: strict | ||
|
||
module Example::Greeter | ||
class Service | ||
include ::GRPC::GenericService | ||
end | ||
|
||
class Stub < ::GRPC::ClientStub | ||
sig do | ||
params( | ||
host: String, | ||
creds: T.any(::GRPC::Core::ChannelCredentials, Symbol), | ||
kw: T.untyped, | ||
).void | ||
end | ||
def initialize(host, creds, **kw) | ||
end | ||
|
||
sig do | ||
params( | ||
request: Example::Request | ||
).returns(Example::Response) | ||
end | ||
def hello(request) | ||
end | ||
end | ||
end |