Added missing js/ts generated code.

Change-Id: I146e9e1b8f997c11d1675dbef1b958ddbd181092
parent 93c0960c
...@@ -398,7 +398,7 @@ MyGame.Example.Vec3.prototype.mutate_test2 = function(value) { ...@@ -398,7 +398,7 @@ MyGame.Example.Vec3.prototype.mutate_test2 = function(value) {
/** /**
* @param {MyGame.Example.Test=} obj * @param {MyGame.Example.Test=} obj
* @returns {MyGame.Example.Test} * @returns {MyGame.Example.Test|null}
*/ */
MyGame.Example.Vec3.prototype.test3 = function(obj) { MyGame.Example.Vec3.prototype.test3 = function(obj) {
return (obj || new MyGame.Example.Test).__init(this.bb_pos + 26, this.bb); return (obj || new MyGame.Example.Test).__init(this.bb_pos + 26, this.bb);
...@@ -692,7 +692,7 @@ MyGame.Example.Monster.bufferHasIdentifier = function(bb) { ...@@ -692,7 +692,7 @@ MyGame.Example.Monster.bufferHasIdentifier = function(bb) {
/** /**
* @param {MyGame.Example.Vec3=} obj * @param {MyGame.Example.Vec3=} obj
* @returns {MyGame.Example.Vec3} * @returns {MyGame.Example.Vec3|null}
*/ */
MyGame.Example.Monster.prototype.pos = function(obj) { MyGame.Example.Monster.prototype.pos = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 4); var offset = this.bb.__offset(this.bb_pos, 4);
...@@ -893,7 +893,7 @@ MyGame.Example.Monster.prototype.testarrayoftablesLength = function() { ...@@ -893,7 +893,7 @@ MyGame.Example.Monster.prototype.testarrayoftablesLength = function() {
/** /**
* @param {MyGame.Example.Monster=} obj * @param {MyGame.Example.Monster=} obj
* @returns {MyGame.Example.Monster} * @returns {MyGame.Example.Monster|null}
*/ */
MyGame.Example.Monster.prototype.enemy = function(obj) { MyGame.Example.Monster.prototype.enemy = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 28); var offset = this.bb.__offset(this.bb_pos, 28);
...@@ -927,7 +927,7 @@ MyGame.Example.Monster.prototype.testnestedflatbufferArray = function() { ...@@ -927,7 +927,7 @@ MyGame.Example.Monster.prototype.testnestedflatbufferArray = function() {
/** /**
* @param {MyGame.Example.Stat=} obj * @param {MyGame.Example.Stat=} obj
* @returns {MyGame.Example.Stat} * @returns {MyGame.Example.Stat|null}
*/ */
MyGame.Example.Monster.prototype.testempty = function(obj) { MyGame.Example.Monster.prototype.testempty = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 32); var offset = this.bb.__offset(this.bb_pos, 32);
......
This diff is collapsed.
...@@ -168,7 +168,7 @@ mutate_b(value:number):boolean { ...@@ -168,7 +168,7 @@ mutate_b(value:number):boolean {
* @param {number} b * @param {number} b
* @returns {flatbuffers.Offset} * @returns {flatbuffers.Offset}
*/ */
static createStructInNestedNS(builder:flatbuffers.Builder, a: number, b: number):flatbuffers.Offset { static createStructInNestedNS(builder:flatbuffers.Builder, a: number, b: number):flatbuffers.Offset|null {
builder.prep(4, 8); builder.prep(4, 8);
builder.writeInt32(b); builder.writeInt32(b);
builder.writeInt32(a); builder.writeInt32(a);
......
...@@ -55,7 +55,7 @@ NamespaceA.TableInFirstNS.getRootAsTableInFirstNS = function(bb, obj) { ...@@ -55,7 +55,7 @@ NamespaceA.TableInFirstNS.getRootAsTableInFirstNS = function(bb, obj) {
/** /**
* @param {NamespaceA.NamespaceB.TableInNestedNS=} obj * @param {NamespaceA.NamespaceB.TableInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.TableInNestedNS} * @returns {NamespaceA.NamespaceB.TableInNestedNS|null}
*/ */
NamespaceA.TableInFirstNS.prototype.fooTable = function(obj) { NamespaceA.TableInFirstNS.prototype.fooTable = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 4); var offset = this.bb.__offset(this.bb_pos, 4);
...@@ -87,7 +87,7 @@ NamespaceA.TableInFirstNS.prototype.mutate_foo_enum = function(value) { ...@@ -87,7 +87,7 @@ NamespaceA.TableInFirstNS.prototype.mutate_foo_enum = function(value) {
/** /**
* @param {NamespaceA.NamespaceB.StructInNestedNS=} obj * @param {NamespaceA.NamespaceB.StructInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.StructInNestedNS} * @returns {NamespaceA.NamespaceB.StructInNestedNS|null}
*/ */
NamespaceA.TableInFirstNS.prototype.fooStruct = function(obj) { NamespaceA.TableInFirstNS.prototype.fooStruct = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 8); var offset = this.bb.__offset(this.bb_pos, 8);
...@@ -171,7 +171,7 @@ NamespaceC.TableInC.getRootAsTableInC = function(bb, obj) { ...@@ -171,7 +171,7 @@ NamespaceC.TableInC.getRootAsTableInC = function(bb, obj) {
/** /**
* @param {NamespaceA.TableInFirstNS=} obj * @param {NamespaceA.TableInFirstNS=} obj
* @returns {NamespaceA.TableInFirstNS} * @returns {NamespaceA.TableInFirstNS|null}
*/ */
NamespaceC.TableInC.prototype.referToA1 = function(obj) { NamespaceC.TableInC.prototype.referToA1 = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 4); var offset = this.bb.__offset(this.bb_pos, 4);
...@@ -180,7 +180,7 @@ NamespaceC.TableInC.prototype.referToA1 = function(obj) { ...@@ -180,7 +180,7 @@ NamespaceC.TableInC.prototype.referToA1 = function(obj) {
/** /**
* @param {NamespaceA.SecondTableInA=} obj * @param {NamespaceA.SecondTableInA=} obj
* @returns {NamespaceA.SecondTableInA} * @returns {NamespaceA.SecondTableInA|null}
*/ */
NamespaceC.TableInC.prototype.referToA2 = function(obj) { NamespaceC.TableInC.prototype.referToA2 = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 6); var offset = this.bb.__offset(this.bb_pos, 6);
...@@ -256,7 +256,7 @@ NamespaceA.SecondTableInA.getRootAsSecondTableInA = function(bb, obj) { ...@@ -256,7 +256,7 @@ NamespaceA.SecondTableInA.getRootAsSecondTableInA = function(bb, obj) {
/** /**
* @param {NamespaceC.TableInC=} obj * @param {NamespaceC.TableInC=} obj
* @returns {NamespaceC.TableInC} * @returns {NamespaceC.TableInC|null}
*/ */
NamespaceA.SecondTableInA.prototype.referToC = function(obj) { NamespaceA.SecondTableInA.prototype.referToC = function(obj) {
var offset = this.bb.__offset(this.bb_pos, 4); var offset = this.bb.__offset(this.bb_pos, 4);
......
...@@ -37,9 +37,9 @@ static getRootAsTableInFirstNS(bb:flatbuffers.ByteBuffer, obj?:TableInFirstNS):T ...@@ -37,9 +37,9 @@ static getRootAsTableInFirstNS(bb:flatbuffers.ByteBuffer, obj?:TableInFirstNS):T
/** /**
* @param {NamespaceA.NamespaceB.TableInNestedNS=} obj * @param {NamespaceA.NamespaceB.TableInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.TableInNestedNS} * @returns {NamespaceA.NamespaceB.TableInNestedNS|null}
*/ */
fooTable(obj?:NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS):NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS { fooTable(obj?:NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS):NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS|null {
var offset = this.bb.__offset(this.bb_pos, 4); var offset = this.bb.__offset(this.bb_pos, 4);
return offset ? (obj || new NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null; return offset ? (obj || new NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
}; };
...@@ -69,9 +69,9 @@ mutate_foo_enum(value:NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS ...@@ -69,9 +69,9 @@ mutate_foo_enum(value:NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS
/** /**
* @param {NamespaceA.NamespaceB.StructInNestedNS=} obj * @param {NamespaceA.NamespaceB.StructInNestedNS=} obj
* @returns {NamespaceA.NamespaceB.StructInNestedNS} * @returns {NamespaceA.NamespaceB.StructInNestedNS|null}
*/ */
fooStruct(obj?:NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS):NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS { fooStruct(obj?:NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS):NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS|null {
var offset = this.bb.__offset(this.bb_pos, 8); var offset = this.bb.__offset(this.bb_pos, 8);
return offset ? (obj || new NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS).__init(this.bb_pos + offset, this.bb) : null; return offset ? (obj || new NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS).__init(this.bb_pos + offset, this.bb) : null;
}; };
...@@ -154,18 +154,18 @@ static getRootAsTableInC(bb:flatbuffers.ByteBuffer, obj?:TableInC):TableInC { ...@@ -154,18 +154,18 @@ static getRootAsTableInC(bb:flatbuffers.ByteBuffer, obj?:TableInC):TableInC {
/** /**
* @param {NamespaceA.TableInFirstNS=} obj * @param {NamespaceA.TableInFirstNS=} obj
* @returns {NamespaceA.TableInFirstNS} * @returns {NamespaceA.TableInFirstNS|null}
*/ */
referToA1(obj?:NamespaceA.TableInFirstNS):NamespaceA.TableInFirstNS { referToA1(obj?:NamespaceA.TableInFirstNS):NamespaceA.TableInFirstNS|null {
var offset = this.bb.__offset(this.bb_pos, 4); var offset = this.bb.__offset(this.bb_pos, 4);
return offset ? (obj || new NamespaceA.TableInFirstNS).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null; return offset ? (obj || new NamespaceA.TableInFirstNS).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
}; };
/** /**
* @param {NamespaceA.SecondTableInA=} obj * @param {NamespaceA.SecondTableInA=} obj
* @returns {NamespaceA.SecondTableInA} * @returns {NamespaceA.SecondTableInA|null}
*/ */
referToA2(obj?:NamespaceA.SecondTableInA):NamespaceA.SecondTableInA { referToA2(obj?:NamespaceA.SecondTableInA):NamespaceA.SecondTableInA|null {
var offset = this.bb.__offset(this.bb_pos, 6); var offset = this.bb.__offset(this.bb_pos, 6);
return offset ? (obj || new NamespaceA.SecondTableInA).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null; return offset ? (obj || new NamespaceA.SecondTableInA).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
}; };
...@@ -240,9 +240,9 @@ static getRootAsSecondTableInA(bb:flatbuffers.ByteBuffer, obj?:SecondTableInA):S ...@@ -240,9 +240,9 @@ static getRootAsSecondTableInA(bb:flatbuffers.ByteBuffer, obj?:SecondTableInA):S
/** /**
* @param {NamespaceC.TableInC=} obj * @param {NamespaceC.TableInC=} obj
* @returns {NamespaceC.TableInC} * @returns {NamespaceC.TableInC|null}
*/ */
referToC(obj?:NamespaceC.TableInC):NamespaceC.TableInC { referToC(obj?:NamespaceC.TableInC):NamespaceC.TableInC|null {
var offset = this.bb.__offset(this.bb_pos, 4); var offset = this.bb.__offset(this.bb_pos, 4);
return offset ? (obj || new NamespaceC.TableInC).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null; return offset ? (obj || new NamespaceC.TableInC).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment