mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 01:35:45 +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:
@@ -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);
|
||||
|
||||
@@ -75,7 +75,7 @@ attributesLength():number {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_EnumVal';
|
||||
return 'reflection.EnumVal';
|
||||
}
|
||||
|
||||
static startEnumVal(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -96,7 +96,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_Enum';
|
||||
return 'reflection.Enum';
|
||||
}
|
||||
|
||||
static startEnum(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -155,7 +155,7 @@ export class Field {
|
||||
return true;
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'reflection_Field';
|
||||
return 'reflection.Field';
|
||||
}
|
||||
static startField(builder) {
|
||||
builder.startObject(13);
|
||||
|
||||
@@ -206,7 +206,7 @@ mutate_padding(value:number):boolean {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_Field';
|
||||
return 'reflection.Field';
|
||||
}
|
||||
|
||||
static startField(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -37,7 +37,7 @@ value(optionalEncoding?:any):string|Uint8Array|null {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_KeyValue';
|
||||
return 'reflection.KeyValue';
|
||||
}
|
||||
|
||||
static startKeyValue(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -122,7 +122,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_Object';
|
||||
return 'reflection.Object';
|
||||
}
|
||||
|
||||
static startObject(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -64,7 +64,7 @@ documentationLength():number {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_RPCCall';
|
||||
return 'reflection.RPCCall';
|
||||
}
|
||||
|
||||
static startRPCCall(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -53,7 +53,7 @@ includedFilenamesLength():number {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_SchemaFile';
|
||||
return 'reflection.SchemaFile';
|
||||
}
|
||||
|
||||
static startSchemaFile(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -110,7 +110,7 @@ fbsFilesLength():number {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_Schema';
|
||||
return 'reflection.Schema';
|
||||
}
|
||||
|
||||
static startSchema(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -74,7 +74,7 @@ declarationFile(optionalEncoding?:any):string|Uint8Array|null {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_Service';
|
||||
return 'reflection.Service';
|
||||
}
|
||||
|
||||
static startService(builder:flatbuffers.Builder) {
|
||||
|
||||
@@ -97,7 +97,7 @@ export class Type {
|
||||
return true;
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'reflection_Type';
|
||||
return 'reflection.Type';
|
||||
}
|
||||
static startType(builder) {
|
||||
builder.startObject(6);
|
||||
|
||||
@@ -126,7 +126,7 @@ mutate_element_size(value:number):boolean {
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'reflection_Type';
|
||||
return 'reflection.Type';
|
||||
}
|
||||
|
||||
static startType(builder:flatbuffers.Builder) {
|
||||
|
||||
Reference in New Issue
Block a user