From 80cea119e0910e9c41ba543017bfc3ee0cb0909f Mon Sep 17 00:00:00 2001 From: Lizan Zhou Date: Mon, 9 Dec 2019 14:21:50 -0800 Subject: [PATCH] api_proto_plugin: create visitor per file (#9267) Create visitor.Visitor per proto file to get correct information from TypeWhisperer. This will make it easier to track imports in protoxform as well. Risk Level: Low Testing: CI Fixes #9266 Signed-off-by: Lizan Zhou --- tools/api_proto_plugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/api_proto_plugin/plugin.py b/tools/api_proto_plugin/plugin.py index fdad24c7c581..31ac2c0dbb94 100644 --- a/tools/api_proto_plugin/plugin.py +++ b/tools/api_proto_plugin/plugin.py @@ -17,8 +17,8 @@ # Output files are generated alongside their corresponding input .proto, # with the output_suffix appended. 'output_suffix', - # The visitor is a function to create a visitor.Visitor defining the business - # logic of the plugin for the specific output descriptor. + # The visitor factory is a function to create a visitor.Visitor defining + # the business logic of the plugin for the specific output descriptor. 'visitor_factory', # FileDescriptorProto transformer; this is applied to the input # before any output generation.