mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-23 21:01:46 +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:
@@ -29,7 +29,7 @@ export class InnerStruct {
|
||||
return this.bb.readInt64(this.bb_pos + 24);
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'MyGame_Example_InnerStruct';
|
||||
return 'MyGame.Example.InnerStruct';
|
||||
}
|
||||
static sizeOf() {
|
||||
return 32;
|
||||
@@ -96,7 +96,7 @@ export class OuterStruct {
|
||||
return this.bb.readFloat64(this.bb_pos + 176 + index * 8);
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'MyGame_Example_OuterStruct';
|
||||
return 'MyGame.Example.OuterStruct';
|
||||
}
|
||||
static sizeOf() {
|
||||
return 208;
|
||||
@@ -188,7 +188,7 @@ export class NestedStruct {
|
||||
return this.bb.readInt64(this.bb_pos + 1056 + index * 8);
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'MyGame_Example_NestedStruct';
|
||||
return 'MyGame.Example.NestedStruct';
|
||||
}
|
||||
static sizeOf() {
|
||||
return 1072;
|
||||
@@ -272,7 +272,7 @@ export class ArrayStruct {
|
||||
return this.bb.readInt64(this.bb_pos + 2640 + index * 8);
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'MyGame_Example_ArrayStruct';
|
||||
return 'MyGame.Example.ArrayStruct';
|
||||
}
|
||||
static sizeOf() {
|
||||
return 2656;
|
||||
@@ -365,7 +365,7 @@ export class ArrayTable {
|
||||
return offset ? (obj || new ArrayStruct()).__init(this.bb_pos + offset, this.bb) : null;
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'MyGame_Example_ArrayTable';
|
||||
return 'MyGame.Example.ArrayTable';
|
||||
}
|
||||
static startArrayTable(builder) {
|
||||
builder.startObject(2);
|
||||
|
||||
Reference in New Issue
Block a user