Skip to content

Commit

Permalink
🐯
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Jun 30, 2020
1 parent 6ef640f commit c42b398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exe/protoc-gen-rbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ $LOAD_PATH << File.join(__dir__, "../lib")
require "rbs_protobuf"

input = Google::Protobuf::Compiler::CodeGeneratorRequest.decode(STDIN.read)
response = RbsProtobufTest::Translator.new(input).response
response = RbsProtobuf::Translator.new(input).response
print Google::Protobuf::Compiler::CodeGeneratorResponse.encode(response)
2 changes: 1 addition & 1 deletion lib/rbs_protobuf/translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def message_to_decl(message, prefix: RBS::Namespace.empty, maps: {})
key_field, value_field = nested_type.field.to_a
maps["." + decl_namespace.to_s.gsub(/::/, ".") + nested_type.name] = [key_field, value_field]
else
class_decl.members << message_to_decl(nested_type, prefix: decl_namespace, maps: maps)
class_decl.members << message_to_decl(nested_type, prefix: RBS::Namespace.empty, maps: maps)
end
end

Expand Down

0 comments on commit c42b398

Please sign in to comment.