[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:
James Kuszmaul
2022-12-22 12:59:40 -08:00
committed by GitHub
parent 449d5649d6
commit e43a80c322
54 changed files with 104 additions and 83 deletions

View File

@@ -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);

View File

@@ -35,7 +35,7 @@ dUnderscore():bigint {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_InnerStruct';
return 'MyGame.Example.InnerStruct';
}
static sizeOf():number {
@@ -129,7 +129,7 @@ f(index: number):number|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_OuterStruct';
return 'MyGame.Example.OuterStruct';
}
static sizeOf():number {
@@ -271,7 +271,7 @@ e(index: number):bigint|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_NestedStruct';
return 'MyGame.Example.NestedStruct';
}
static sizeOf():number {
@@ -407,7 +407,7 @@ g(index: number):bigint|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_ArrayStruct';
return 'MyGame.Example.ArrayStruct';
}
static sizeOf():number {
@@ -563,7 +563,7 @@ cUnderscore(obj?:ArrayStruct):ArrayStruct|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_ArrayTable';
return 'MyGame.Example.ArrayTable';
}
static startArrayTable(builder:flatbuffers.Builder) {

View File

@@ -24,7 +24,7 @@ export class Ability {
return true;
}
static getFullyQualifiedName() {
return 'MyGame_Example_Ability';
return 'MyGame.Example.Ability';
}
static sizeOf() {
return 8;

View File

@@ -32,7 +32,7 @@ mutate_distance(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_Ability';
return 'MyGame.Example.Ability';
}
static sizeOf():number {

View File

@@ -610,11 +610,23 @@ export class Monster {
this.bb.writeFloat32(this.bb_pos + offset, value);
return true;
}
doubleInfDefault() {
const offset = this.bb.__offset(this.bb_pos, 126);
return offset ? this.bb.readFloat64(this.bb_pos + offset) : Infinity;
}
mutate_double_inf_default(value) {
const offset = this.bb.__offset(this.bb_pos, 126);
if (offset === 0) {
return false;
}
this.bb.writeFloat64(this.bb_pos + offset, value);
return true;
}
static getFullyQualifiedName() {
return 'MyGame_Example_Monster';
return 'MyGame.Example.Monster';
}
static startMonster(builder) {
builder.startObject(61);
builder.startObject(62);
}
static addPos(builder, posOffset) {
builder.addFieldStruct(0, posOffset, 0);
@@ -975,6 +987,9 @@ export class Monster {
static addNegativeInfinityDefault(builder, negativeInfinityDefault) {
builder.addFieldFloat32(60, negativeInfinityDefault, -Infinity);
}
static addDoubleInfDefault(builder, doubleInfDefault) {
builder.addFieldFloat64(61, doubleInfDefault, Infinity);
}
static endMonster(builder) {
const offset = builder.endObject();
builder.requiredField(offset, 10); // name
@@ -1011,7 +1026,7 @@ export class Monster {
return null;
}
return temp.unpack();
})(), this.bb.createScalarList(this.vectorOfEnums.bind(this), this.vectorOfEnumsLength()), this.signedEnum(), this.bb.createScalarList(this.testrequirednestedflatbuffer.bind(this), this.testrequirednestedflatbufferLength()), this.bb.createObjList(this.scalarKeySortedTables.bind(this), this.scalarKeySortedTablesLength()), (this.nativeInline() !== null ? this.nativeInline().unpack() : null), this.longEnumNonEnumDefault(), this.longEnumNormalDefault(), this.nanDefault(), this.infDefault(), this.positiveInfDefault(), this.infinityDefault(), this.positiveInfinityDefault(), this.negativeInfDefault(), this.negativeInfinityDefault());
})(), this.bb.createScalarList(this.vectorOfEnums.bind(this), this.vectorOfEnumsLength()), this.signedEnum(), this.bb.createScalarList(this.testrequirednestedflatbuffer.bind(this), this.testrequirednestedflatbufferLength()), this.bb.createObjList(this.scalarKeySortedTables.bind(this), this.scalarKeySortedTablesLength()), (this.nativeInline() !== null ? this.nativeInline().unpack() : null), this.longEnumNonEnumDefault(), this.longEnumNormalDefault(), this.nanDefault(), this.infDefault(), this.positiveInfDefault(), this.infinityDefault(), this.positiveInfinityDefault(), this.negativeInfDefault(), this.negativeInfinityDefault(), this.doubleInfDefault());
}
unpackTo(_o) {
_o.pos = (this.pos() !== null ? this.pos().unpack() : null);
@@ -1092,10 +1107,11 @@ export class Monster {
_o.positiveInfinityDefault = this.positiveInfinityDefault();
_o.negativeInfDefault = this.negativeInfDefault();
_o.negativeInfinityDefault = this.negativeInfinityDefault();
_o.doubleInfDefault = this.doubleInfDefault();
}
}
export class MonsterT {
constructor(pos = null, mana = 150, hp = 100, name = null, inventory = [], color = Color.Blue, testType = Any.NONE, test = null, test4 = [], testarrayofstring = [], testarrayoftables = [], enemy = null, testnestedflatbuffer = [], testempty = null, testbool = false, testhashs32Fnv1 = 0, testhashu32Fnv1 = 0, testhashs64Fnv1 = BigInt('0'), testhashu64Fnv1 = BigInt('0'), testhashs32Fnv1a = 0, testhashu32Fnv1a = 0, testhashs64Fnv1a = BigInt('0'), testhashu64Fnv1a = BigInt('0'), testarrayofbools = [], testf = 3.14159, testf2 = 3.0, testf3 = 0.0, testarrayofstring2 = [], testarrayofsortedstruct = [], flex = [], test5 = [], vectorOfLongs = [], vectorOfDoubles = [], parentNamespaceTest = null, vectorOfReferrables = [], singleWeakReference = BigInt('0'), vectorOfWeakReferences = [], vectorOfStrongReferrables = [], coOwningReference = BigInt('0'), vectorOfCoOwningReferences = [], nonOwningReference = BigInt('0'), vectorOfNonOwningReferences = [], anyUniqueType = AnyUniqueAliases.NONE, anyUnique = null, anyAmbiguousType = AnyAmbiguousAliases.NONE, anyAmbiguous = null, vectorOfEnums = [], signedEnum = Race.None, testrequirednestedflatbuffer = [], scalarKeySortedTables = [], nativeInline = null, longEnumNonEnumDefault = BigInt('0'), longEnumNormalDefault = BigInt('2'), nanDefault = NaN, infDefault = Infinity, positiveInfDefault = Infinity, infinityDefault = Infinity, positiveInfinityDefault = Infinity, negativeInfDefault = -Infinity, negativeInfinityDefault = -Infinity) {
constructor(pos = null, mana = 150, hp = 100, name = null, inventory = [], color = Color.Blue, testType = Any.NONE, test = null, test4 = [], testarrayofstring = [], testarrayoftables = [], enemy = null, testnestedflatbuffer = [], testempty = null, testbool = false, testhashs32Fnv1 = 0, testhashu32Fnv1 = 0, testhashs64Fnv1 = BigInt('0'), testhashu64Fnv1 = BigInt('0'), testhashs32Fnv1a = 0, testhashu32Fnv1a = 0, testhashs64Fnv1a = BigInt('0'), testhashu64Fnv1a = BigInt('0'), testarrayofbools = [], testf = 3.14159, testf2 = 3.0, testf3 = 0.0, testarrayofstring2 = [], testarrayofsortedstruct = [], flex = [], test5 = [], vectorOfLongs = [], vectorOfDoubles = [], parentNamespaceTest = null, vectorOfReferrables = [], singleWeakReference = BigInt('0'), vectorOfWeakReferences = [], vectorOfStrongReferrables = [], coOwningReference = BigInt('0'), vectorOfCoOwningReferences = [], nonOwningReference = BigInt('0'), vectorOfNonOwningReferences = [], anyUniqueType = AnyUniqueAliases.NONE, anyUnique = null, anyAmbiguousType = AnyAmbiguousAliases.NONE, anyAmbiguous = null, vectorOfEnums = [], signedEnum = Race.None, testrequirednestedflatbuffer = [], scalarKeySortedTables = [], nativeInline = null, longEnumNonEnumDefault = BigInt('0'), longEnumNormalDefault = BigInt('2'), nanDefault = NaN, infDefault = Infinity, positiveInfDefault = Infinity, infinityDefault = Infinity, positiveInfinityDefault = Infinity, negativeInfDefault = -Infinity, negativeInfinityDefault = -Infinity, doubleInfDefault = Infinity) {
this.pos = pos;
this.mana = mana;
this.hp = hp;
@@ -1156,6 +1172,7 @@ export class MonsterT {
this.positiveInfinityDefault = positiveInfinityDefault;
this.negativeInfDefault = negativeInfDefault;
this.negativeInfinityDefault = negativeInfinityDefault;
this.doubleInfDefault = doubleInfDefault;
}
pack(builder) {
const name = (this.name !== null ? builder.createString(this.name) : 0);
@@ -1246,6 +1263,7 @@ export class MonsterT {
Monster.addPositiveInfinityDefault(builder, this.positiveInfinityDefault);
Monster.addNegativeInfDefault(builder, this.negativeInfDefault);
Monster.addNegativeInfinityDefault(builder, this.negativeInfinityDefault);
Monster.addDoubleInfDefault(builder, this.doubleInfDefault);
return Monster.endMonster(builder);
}
}

View File

@@ -812,7 +812,7 @@ mutate_double_inf_default(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_Monster';
return 'MyGame.Example.Monster';
}
static startMonster(builder:flatbuffers.Builder) {

View File

@@ -30,7 +30,7 @@ export class Referrable {
return true;
}
static getFullyQualifiedName() {
return 'MyGame_Example_Referrable';
return 'MyGame.Example.Referrable';
}
static startReferrable(builder) {
builder.startObject(1);

View File

@@ -39,7 +39,7 @@ mutate_id(value:bigint):boolean {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_Referrable';
return 'MyGame.Example.Referrable';
}
static startReferrable(builder:flatbuffers.Builder) {

View File

@@ -46,7 +46,7 @@ export class Stat {
return true;
}
static getFullyQualifiedName() {
return 'MyGame_Example_Stat';
return 'MyGame.Example.Stat';
}
static startStat(builder) {
builder.startObject(3);

View File

@@ -62,7 +62,7 @@ mutate_count(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_Stat';
return 'MyGame.Example.Stat';
}
static startStat(builder:flatbuffers.Builder) {

View File

@@ -14,7 +14,7 @@ export class StructOfStructsOfStructs {
return (obj || new StructOfStructs()).__init(this.bb_pos, this.bb);
}
static getFullyQualifiedName() {
return 'MyGame_Example_StructOfStructsOfStructs';
return 'MyGame.Example.StructOfStructsOfStructs';
}
static sizeOf() {
return 20;

View File

@@ -19,7 +19,7 @@ a(obj?:StructOfStructs):StructOfStructs|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_StructOfStructsOfStructs';
return 'MyGame.Example.StructOfStructsOfStructs';
}
static sizeOf():number {

View File

@@ -21,7 +21,7 @@ export class StructOfStructs {
return (obj || new Ability()).__init(this.bb_pos + 12, this.bb);
}
static getFullyQualifiedName() {
return 'MyGame_Example_StructOfStructs';
return 'MyGame.Example.StructOfStructs';
}
static sizeOf() {
return 20;

View File

@@ -28,7 +28,7 @@ c(obj?:Ability):Ability|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_StructOfStructs';
return 'MyGame.Example.StructOfStructs';
}
static sizeOf():number {

View File

@@ -31,7 +31,7 @@ export class TestSimpleTableWithEnum {
return true;
}
static getFullyQualifiedName() {
return 'MyGame_Example_TestSimpleTableWithEnum';
return 'MyGame.Example.TestSimpleTableWithEnum';
}
static startTestSimpleTableWithEnum(builder) {
builder.startObject(1);

View File

@@ -40,7 +40,7 @@ mutate_color(value:Color):boolean {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_TestSimpleTableWithEnum';
return 'MyGame.Example.TestSimpleTableWithEnum';
}
static startTestSimpleTableWithEnum(builder:flatbuffers.Builder) {

View File

@@ -24,7 +24,7 @@ export class Test {
return true;
}
static getFullyQualifiedName() {
return 'MyGame_Example_Test';
return 'MyGame.Example.Test';
}
static sizeOf() {
return 4;

View File

@@ -32,7 +32,7 @@ mutate_b(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_Test';
return 'MyGame.Example.Test';
}
static sizeOf():number {

View File

@@ -162,7 +162,7 @@ export class TypeAliases {
return offset ? new Float64Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
}
static getFullyQualifiedName() {
return 'MyGame_Example_TypeAliases';
return 'MyGame.Example.TypeAliases';
}
static startTypeAliases(builder) {
builder.startObject(12);

View File

@@ -213,7 +213,7 @@ vf64Array():Float64Array|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_TypeAliases';
return 'MyGame.Example.TypeAliases';
}
static startTypeAliases(builder:flatbuffers.Builder) {

View File

@@ -49,7 +49,7 @@ export class Vec3 {
return (obj || new Test()).__init(this.bb_pos + 26, this.bb);
}
static getFullyQualifiedName() {
return 'MyGame_Example_Vec3';
return 'MyGame.Example.Vec3';
}
static sizeOf() {
return 32;

View File

@@ -65,7 +65,7 @@ test3(obj?:Test):Test|null {
}
static getFullyQualifiedName():string {
return 'MyGame_Example_Vec3';
return 'MyGame.Example.Vec3';
}
static sizeOf():number {

View File

@@ -18,7 +18,7 @@ export class Monster {
return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static getFullyQualifiedName() {
return 'MyGame_Example2_Monster';
return 'MyGame.Example2.Monster';
}
static startMonster(builder) {
builder.startObject(0);

View File

@@ -23,7 +23,7 @@ static getSizePrefixedRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Mon
}
static getFullyQualifiedName():string {
return 'MyGame_Example2_Monster';
return 'MyGame.Example2.Monster';
}
static startMonster(builder:flatbuffers.Builder) {

View File

@@ -18,7 +18,7 @@ export class InParentNamespace {
return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static getFullyQualifiedName() {
return 'MyGame_InParentNamespace';
return 'MyGame.InParentNamespace';
}
static startInParentNamespace(builder) {
builder.startObject(0);

View File

@@ -23,7 +23,7 @@ static getSizePrefixedRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:In
}
static getFullyQualifiedName():string {
return 'MyGame_InParentNamespace';
return 'MyGame.InParentNamespace';
}
static startInParentNamespace(builder:flatbuffers.Builder) {

View File

@@ -208,7 +208,7 @@ defaultEnum():OptionalByte {
}
static getFullyQualifiedName():string {
return 'optional_scalars_ScalarStuff';
return 'optional_scalars.ScalarStuff';
}
static startScalarStuff(builder:flatbuffers.Builder) {

View File

@@ -56,7 +56,7 @@ export class EnumVal {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_EnumVal';
return 'reflection.EnumVal';
}
static startEnumVal(builder) {
builder.startObject(6);

View File

@@ -75,7 +75,7 @@ attributesLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_EnumVal';
return 'reflection.EnumVal';
}
static startEnumVal(builder:flatbuffers.Builder) {

View File

@@ -69,7 +69,7 @@ export class Enum {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_Enum';
return 'reflection.Enum';
}
static startEnum(builder) {
builder.startObject(7);

View File

@@ -96,7 +96,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_Enum';
return 'reflection.Enum';
}
static startEnum(builder:flatbuffers.Builder) {

View File

@@ -155,7 +155,7 @@ export class Field {
return true;
}
static getFullyQualifiedName() {
return 'reflection_Field';
return 'reflection.Field';
}
static startField(builder) {
builder.startObject(13);

View File

@@ -206,7 +206,7 @@ mutate_padding(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'reflection_Field';
return 'reflection.Field';
}
static startField(builder:flatbuffers.Builder) {

View File

@@ -26,7 +26,7 @@ export class KeyValue {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_KeyValue';
return 'reflection.KeyValue';
}
static startKeyValue(builder) {
builder.startObject(2);

View File

@@ -37,7 +37,7 @@ value(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_KeyValue';
return 'reflection.KeyValue';
}
static startKeyValue(builder:flatbuffers.Builder) {

View File

@@ -88,7 +88,7 @@ export class Object_ {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_Object';
return 'reflection.Object';
}
static startObject(builder) {
builder.startObject(8);

View File

@@ -122,7 +122,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_Object';
return 'reflection.Object';
}
static startObject(builder:flatbuffers.Builder) {

View File

@@ -48,7 +48,7 @@ export class RPCCall {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_RPCCall';
return 'reflection.RPCCall';
}
static startRPCCall(builder) {
builder.startObject(5);

View File

@@ -64,7 +64,7 @@ documentationLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_RPCCall';
return 'reflection.RPCCall';
}
static startRPCCall(builder:flatbuffers.Builder) {

View File

@@ -35,7 +35,7 @@ export class SchemaFile {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_SchemaFile';
return 'reflection.SchemaFile';
}
static startSchemaFile(builder) {
builder.startObject(2);

View File

@@ -53,7 +53,7 @@ includedFilenamesLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_SchemaFile';
return 'reflection.SchemaFile';
}
static startSchemaFile(builder:flatbuffers.Builder) {

View File

@@ -85,7 +85,7 @@ export class Schema {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_Schema';
return 'reflection.Schema';
}
static startSchema(builder) {
builder.startObject(8);

View File

@@ -110,7 +110,7 @@ fbsFilesLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_Schema';
return 'reflection.Schema';
}
static startSchema(builder:flatbuffers.Builder) {

View File

@@ -52,7 +52,7 @@ export class Service {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_Service';
return 'reflection.Service';
}
static startService(builder) {
builder.startObject(5);

View File

@@ -74,7 +74,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_Service';
return 'reflection.Service';
}
static startService(builder:flatbuffers.Builder) {

View File

@@ -97,7 +97,7 @@ export class Type {
return true;
}
static getFullyQualifiedName() {
return 'reflection_Type';
return 'reflection.Type';
}
static startType(builder) {
builder.startObject(6);

View File

@@ -126,7 +126,7 @@ mutate_element_size(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'reflection_Type';
return 'reflection.Type';
}
static startType(builder:flatbuffers.Builder) {

View File

@@ -128,7 +128,7 @@ export class Type {
return true;
}
static getFullyQualifiedName() {
return 'reflection_Type';
return 'reflection.Type';
}
static startType(builder) {
builder.startObject(6);
@@ -216,7 +216,7 @@ export class KeyValue {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_KeyValue';
return 'reflection.KeyValue';
}
static startKeyValue(builder) {
builder.startObject(2);
@@ -311,7 +311,7 @@ export class EnumVal {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_EnumVal';
return 'reflection.EnumVal';
}
static startEnumVal(builder) {
builder.startObject(6);
@@ -455,7 +455,7 @@ export class Enum {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_Enum';
return 'reflection.Enum';
}
static startEnum(builder) {
builder.startObject(7);
@@ -712,7 +712,7 @@ export class Field {
return true;
}
static getFullyQualifiedName() {
return 'reflection_Field';
return 'reflection.Field';
}
static startField(builder) {
builder.startObject(13);
@@ -925,7 +925,7 @@ export class Object_ {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_Object';
return 'reflection.Object';
}
static startObject(builder) {
builder.startObject(8);
@@ -1082,7 +1082,7 @@ export class RPCCall {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_RPCCall';
return 'reflection.RPCCall';
}
static startRPCCall(builder) {
builder.startObject(5);
@@ -1213,7 +1213,7 @@ export class Service {
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
}
static getFullyQualifiedName() {
return 'reflection_Service';
return 'reflection.Service';
}
static startService(builder) {
builder.startObject(5);
@@ -1340,7 +1340,7 @@ export class SchemaFile {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_SchemaFile';
return 'reflection.SchemaFile';
}
static startSchemaFile(builder) {
builder.startObject(2);
@@ -1472,7 +1472,7 @@ export class Schema {
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
}
static getFullyQualifiedName() {
return 'reflection_Schema';
return 'reflection.Schema';
}
static startSchema(builder) {
builder.startObject(8);

View File

@@ -156,7 +156,7 @@ mutate_element_size(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'reflection_Type';
return 'reflection.Type';
}
static startType(builder:flatbuffers.Builder) {
@@ -281,7 +281,7 @@ value(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_KeyValue';
return 'reflection.KeyValue';
}
static startKeyValue(builder:flatbuffers.Builder) {
@@ -410,7 +410,7 @@ attributesLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_EnumVal';
return 'reflection.EnumVal';
}
static startEnumVal(builder:flatbuffers.Builder) {
@@ -604,7 +604,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_Enum';
return 'reflection.Enum';
}
static startEnum(builder:flatbuffers.Builder) {
@@ -941,7 +941,7 @@ mutate_padding(value:number):boolean {
}
static getFullyQualifiedName():string {
return 'reflection_Field';
return 'reflection.Field';
}
static startField(builder:flatbuffers.Builder) {
@@ -1227,7 +1227,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_Object';
return 'reflection.Object';
}
static startObject(builder:flatbuffers.Builder) {
@@ -1439,7 +1439,7 @@ documentationLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_RPCCall';
return 'reflection.RPCCall';
}
static startRPCCall(builder:flatbuffers.Builder) {
@@ -1615,7 +1615,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
}
static getFullyQualifiedName():string {
return 'reflection_Service';
return 'reflection.Service';
}
static startService(builder:flatbuffers.Builder) {
@@ -1790,7 +1790,7 @@ includedFilenamesLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_SchemaFile';
return 'reflection.SchemaFile';
}
static startSchemaFile(builder:flatbuffers.Builder) {
@@ -1964,7 +1964,7 @@ fbsFilesLength():number {
}
static getFullyQualifiedName():string {
return 'reflection_Schema';
return 'reflection.Schema';
}
static startSchema(builder:flatbuffers.Builder) {

View File

@@ -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);

View File

@@ -128,7 +128,7 @@ reflect(obj?:Schema):Schema|null {
}
static getFullyQualifiedName():string {
return 'typescript_Object';
return 'typescript.Object';
}
static startObject(builder:flatbuffers.Builder) {

View File

@@ -102,7 +102,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);

View File

@@ -131,7 +131,7 @@ reflect(obj?:Schema):Schema|null {
}
static getFullyQualifiedName():string {
return 'typescript_Object';
return 'typescript.Object';
}
static startObject(builder:flatbuffers.Builder) {