mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 01:57:33 +00:00
[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>
This commit is contained in:
@@ -98,7 +98,7 @@ export class Object_ {
|
||||
return offset ? (obj || new Schema()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'typescript_Object';
|
||||
return 'typescript.Object';
|
||||
}
|
||||
static startObject(builder) {
|
||||
builder.startObject(7);
|
||||
|
||||
@@ -128,7 +128,7 @@ reflect(obj?:Schema):Schema|null {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'typescript_Object';
|
||||
return 'typescript.Object';
|
||||
}
|
||||
|
||||
static startObject(builder:flatbuffers.Builder) {
|
||||
|
||||
Reference in New Issue
Block a user