From e43a80c32229e7b1acadfba44b626366eeff5951 Mon Sep 17 00:00:00 2001 From: James Kuszmaul Date: Thu, 22 Dec 2022 12:59:40 -0800 Subject: [TS] Fix getFullyQualifiedName codegen for typescript (#7730) #7451 caused getFullyQualifiedName to return a name with underscores, not periods. Because the fully qualified name is a property of FlatBuffers, not the language being codegen'd for, it should use periods. Fixes #7564. Co-authored-by: Derek Bailey --- src/idl_gen_ts.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/idl_gen_ts.cpp b/src/idl_gen_ts.cpp index d37a4079..ce3404bd 100644 --- a/src/idl_gen_ts.cpp +++ b/src/idl_gen_ts.cpp @@ -1898,7 +1898,10 @@ class TsGenerator : public BaseGenerator { if (parser_.opts.generate_name_strings) { GenDocComment(code_ptr); code += "static getFullyQualifiedName():string {\n"; - code += " return '" + WrapInNameSpace(struct_def) + "';\n"; + code += + " return '" + + struct_def.defined_namespace->GetFullyQualifiedName(struct_def.name) + + "';\n"; code += "}\n\n"; } -- cgit v1.2.3