Skip to content

Commit

Permalink
TS: Add missing generate files (google#8075)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Le <[email protected]>
  • Loading branch information
2 people authored and Jochen Parmentier committed Oct 29, 2024
1 parent 9f13a17 commit 905c1cf
Show file tree
Hide file tree
Showing 115 changed files with 1,400 additions and 188 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ var ArrayStructT = class {

// arrays_test_complex/my-game/example/array-table.js
var flatbuffers = __toESM(require("flatbuffers"), 1);
var ArrayTable = class {
var ArrayTable = class _ArrayTable {
constructor() {
this.bb = null;
this.bb_pos = 0;
Expand All @@ -398,11 +398,11 @@ var ArrayTable = class {
return this;
}
static getRootAsArrayTable(bb, obj) {
return (obj || new ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
return (obj || new _ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static getSizePrefixedRootAsArrayTable(bb, obj) {
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
return (obj || new ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
return (obj || new _ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static bufferHasIdentifier(bb) {
return bb.__has_identifier("RHUB");
Expand Down
1 change: 1 addition & 0 deletions tests/ts/arrays_test_complex/my-game/example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// automatically generated by the FlatBuffers compiler, do not modify
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
export { ArrayStruct, ArrayStructT } from './example/array-struct.js';
export { ArrayTable, ArrayTableT } from './example/array-table.js';
export { InnerStruct, InnerStructT } from './example/inner-struct.js';
Expand Down
2 changes: 2 additions & 0 deletions tests/ts/arrays_test_complex/my-game/example.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

export { ArrayStruct, ArrayStructT } from './example/array-struct.js';
export { ArrayTable, ArrayTableT } from './example/array-table.js';
export { InnerStruct, InnerStructT } from './example/inner-struct.js';
Expand Down
2 changes: 2 additions & 0 deletions tests/ts/arrays_test_complex/my-game/example/array-struct.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

import * as flatbuffers from 'flatbuffers';

import { NestedStruct, NestedStructT } from '../../my-game/example/nested-struct.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// automatically generated by the FlatBuffers compiler, do not modify
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
import * as flatbuffers from 'flatbuffers';
import { ArrayStruct } from '../../my-game/example/array-struct.js';
export class ArrayTable {
Expand Down
2 changes: 2 additions & 0 deletions tests/ts/arrays_test_complex/my-game/example/array-table.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

import * as flatbuffers from 'flatbuffers';

import { ArrayStruct, ArrayStructT } from '../../my-game/example/array-struct.js';
Expand Down
2 changes: 2 additions & 0 deletions tests/ts/arrays_test_complex/my-game/example/inner-struct.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

import * as flatbuffers from 'flatbuffers';


Expand Down
2 changes: 2 additions & 0 deletions tests/ts/arrays_test_complex/my-game/example/nested-struct.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

import * as flatbuffers from 'flatbuffers';

import { OuterStruct, OuterStructT } from '../../my-game/example/outer-struct.js';
Expand Down
2 changes: 2 additions & 0 deletions tests/ts/arrays_test_complex/my-game/example/outer-struct.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

import * as flatbuffers from 'flatbuffers';

import { InnerStruct, InnerStructT } from '../../my-game/example/inner-struct.js';
Expand Down
3 changes: 2 additions & 1 deletion tests/ts/arrays_test_complex/my-game/example/test-enum.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// automatically generated by the FlatBuffers compiler, do not modify
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
export var TestEnum;
(function (TestEnum) {
TestEnum[TestEnum["A"] = 0] = "A";
TestEnum[TestEnum["B"] = 1] = "B";
TestEnum[TestEnum["C"] = 2] = "C";
})(TestEnum = TestEnum || (TestEnum = {}));
})(TestEnum || (TestEnum = {}));
2 changes: 2 additions & 0 deletions tests/ts/arrays_test_complex/my-game/example/test-enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

export enum TestEnum {
A = 0,
B = 1,
Expand Down
1 change: 1 addition & 0 deletions tests/ts/foobar.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// automatically generated by the FlatBuffers compiler, do not modify
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
export { Abc } from './foobar/abc.js';
2 changes: 2 additions & 0 deletions tests/ts/foobar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

export { Abc } from './foobar/abc.js';
3 changes: 2 additions & 1 deletion tests/ts/foobar/abc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// automatically generated by the FlatBuffers compiler, do not modify
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
export var Abc;
(function (Abc) {
Abc[Abc["a"] = 0] = "a";
})(Abc = Abc || (Abc = {}));
})(Abc || (Abc = {}));
2 changes: 2 additions & 0 deletions tests/ts/foobar/abc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

export enum Abc {
a = 0
}
3 changes: 2 additions & 1 deletion tests/ts/foobar/class.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// automatically generated by the FlatBuffers compiler, do not modify
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
export var class_;
(function (class_) {
class_[class_["arguments_"] = 0] = "arguments_";
})(class_ = class_ || (class_ = {}));
})(class_ || (class_ = {}));
2 changes: 2 additions & 0 deletions tests/ts/foobar/class.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

export enum class_ {
arguments_ = 0
}
2 changes: 2 additions & 0 deletions tests/ts/foobar/tab.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// automatically generated by the FlatBuffers compiler, do not modify

/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */

import * as flatbuffers from 'flatbuffers';

import { Abc } from '../foobar/abc.js';
Expand Down
1 change: 1 addition & 0 deletions tests/ts/monster_test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// automatically generated by the FlatBuffers compiler, do not modify
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
export { TableA, TableAT } from './table-a.js';
export * as MyGame from './my-game.js';
Loading

0 comments on commit 905c1cf

Please sign in to comment.