summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Kuszmaul <jkuszmaul@users.noreply.github.com>2022-12-22 12:59:40 -0800
committerGitHub <noreply@github.com>2022-12-22 20:59:40 +0000
commite43a80c32229e7b1acadfba44b626366eeff5951 (patch)
treec3a981ac40017696fc3866efc7abbc798c8c23cd /src
parent449d5649d6ab2c1d2bfed340a32ed15de58c0371 (diff)
downloadflatbuffers-e43a80c32229e7b1acadfba44b626366eeff5951.tar.gz
flatbuffers-e43a80c32229e7b1acadfba44b626366eeff5951.tar.bz2
flatbuffers-e43a80c32229e7b1acadfba44b626366eeff5951.zip
[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 <derekbailey@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/idl_gen_ts.cpp5
1 files changed, 4 insertions, 1 deletions
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";
}