未验证 提交 07dab9da 编写于 作者: Z zyfncg 提交者: GitHub

fix namespace parser in eager_code_gen (#42957)

上级 4d7a9eef
......@@ -447,7 +447,7 @@ class GeneratorBase:
def InferNameSpace(self):
api_yaml_path = self.api_yaml_path
if "sparse" in api_yaml_path:
if re.search(r"sparse[a-zA-Z0-9_]*\.yaml", api_yaml_path):
self.namespace = "sparse::"
elif "strings" in api_yaml_path:
elif re.search(r"strings[a-zA-Z0-9_]*\.yaml", api_yaml_path):
self.namespace = "strings::"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册