mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 01:28:06 +00:00
chore(generate-code): Generate the JS code after mutation has been added.
This commit is contained in:
@@ -70,6 +70,21 @@ NamespaceA.TableInFirstNS.prototype.fooEnum = function() {
|
||||
return offset ? /** @type {NamespaceA.NamespaceB.EnumInNestedNS} */ (this.bb.readInt8(this.bb_pos + offset)) : NamespaceA.NamespaceB.EnumInNestedNS.A;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {NamespaceA.NamespaceB.EnumInNestedNS} value
|
||||
* @returns {boolean}
|
||||
*/
|
||||
NamespaceA.TableInFirstNS.prototype.mutate_foo_enum = function(value) {
|
||||
var offset = this.bb.__offset(this.bb_pos, 6)
|
||||
|
||||
if (offset === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this.bb.writeInt8(this.bb_pos + offset, value);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {NamespaceA.NamespaceB.StructInNestedNS=} obj
|
||||
* @returns {NamespaceA.NamespaceB.StructInNestedNS}
|
||||
|
||||
Reference in New Issue
Block a user