diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-08-20 11:54:37 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-08-20 12:05:37 -0700 |
commit | ea9d60bbdf4c2468eee521e992e86136716bf973 (patch) | |
tree | 574160b447ef24bdf35b32ed15b7e1efc6ceb0d4 | |
parent | c2c3a84aafb6adba7a0c2d841fe248108e1a9d67 (diff) | |
download | flatbuffers-ea9d60bbdf4c2468eee521e992e86136716bf973.tar.gz flatbuffers-ea9d60bbdf4c2468eee521e992e86136716bf973.tar.bz2 flatbuffers-ea9d60bbdf4c2468eee521e992e86136716bf973.zip |
Added missing dart/ts test changes.
Change-Id: I836091193485b890710f1df779d4d770f729a27a
-rw-r--r-- | dart/test/monster_test_my_game.example2_generated.dart | 4 | ||||
-rw-r--r-- | dart/test/monster_test_my_game.example_generated.dart | 2 | ||||
-rw-r--r-- | dart/test/monster_test_my_game_generated.dart | 4 | ||||
-rw-r--r-- | tests/monster_test.bfbs | bin | 6360 -> 6352 bytes | |||
-rw-r--r-- | tests/monster_test_my_game.example2_generated.dart | 2 | ||||
-rw-r--r-- | tests/monster_test_my_game_generated.dart | 2 | ||||
-rw-r--r-- | tests/namespace_test/namespace_test2_generated.ts | 20 |
7 files changed, 20 insertions, 14 deletions
diff --git a/dart/test/monster_test_my_game.example2_generated.dart b/dart/test/monster_test_my_game.example2_generated.dart index eed14bc2..11e51ab2 100644 --- a/dart/test/monster_test_my_game.example2_generated.dart +++ b/dart/test/monster_test_my_game.example2_generated.dart @@ -6,8 +6,10 @@ library my_game.example2; import 'dart:typed_data' show Uint8List; import 'package:flat_buffers/flat_buffers.dart' as fb; -import './monster_test_my_game_generated.dart' as my_game; +import 'include_test1_my_game.example2_generated.dart'; +import 'include_test2_my_game.example2_generated.dart'; import './monster_test_my_game.example_generated.dart' as my_game_example; +import './monster_test_my_game_generated.dart' as my_game; class Monster { Monster._(this._bc, this._bcOffset); diff --git a/dart/test/monster_test_my_game.example_generated.dart b/dart/test/monster_test_my_game.example_generated.dart index 6106a3ed..5adb4f23 100644 --- a/dart/test/monster_test_my_game.example_generated.dart +++ b/dart/test/monster_test_my_game.example_generated.dart @@ -6,6 +6,8 @@ library my_game.example; import 'dart:typed_data' show Uint8List; import 'package:flat_buffers/flat_buffers.dart' as fb; +import 'include_test1_my_game.example_generated.dart'; +import 'include_test2_my_game.example_generated.dart'; import './monster_test_my_game.example2_generated.dart' as my_game_example2; import './monster_test_my_game_generated.dart' as my_game; diff --git a/dart/test/monster_test_my_game_generated.dart b/dart/test/monster_test_my_game_generated.dart index 425bae33..26bb73bb 100644 --- a/dart/test/monster_test_my_game_generated.dart +++ b/dart/test/monster_test_my_game_generated.dart @@ -6,8 +6,10 @@ library my_game; import 'dart:typed_data' show Uint8List; import 'package:flat_buffers/flat_buffers.dart' as fb; -import './monster_test_my_game.example2_generated.dart' as my_game_example2; +import 'include_test1_my_game_generated.dart'; +import 'include_test2_my_game_generated.dart'; import './monster_test_my_game.example_generated.dart' as my_game_example; +import './monster_test_my_game.example2_generated.dart' as my_game_example2; class InParentNamespace { InParentNamespace._(this._bc, this._bcOffset); diff --git a/tests/monster_test.bfbs b/tests/monster_test.bfbs Binary files differindex 16c1648a..a6b87d4a 100644 --- a/tests/monster_test.bfbs +++ b/tests/monster_test.bfbs diff --git a/tests/monster_test_my_game.example2_generated.dart b/tests/monster_test_my_game.example2_generated.dart index eed14bc2..857e66d5 100644 --- a/tests/monster_test_my_game.example2_generated.dart +++ b/tests/monster_test_my_game.example2_generated.dart @@ -6,8 +6,8 @@ library my_game.example2; import 'dart:typed_data' show Uint8List; import 'package:flat_buffers/flat_buffers.dart' as fb; -import './monster_test_my_game_generated.dart' as my_game; import './monster_test_my_game.example_generated.dart' as my_game_example; +import './monster_test_my_game_generated.dart' as my_game; class Monster { Monster._(this._bc, this._bcOffset); diff --git a/tests/monster_test_my_game_generated.dart b/tests/monster_test_my_game_generated.dart index 425bae33..abd538c4 100644 --- a/tests/monster_test_my_game_generated.dart +++ b/tests/monster_test_my_game_generated.dart @@ -6,8 +6,8 @@ library my_game; import 'dart:typed_data' show Uint8List; import 'package:flat_buffers/flat_buffers.dart' as fb; -import './monster_test_my_game.example2_generated.dart' as my_game_example2; import './monster_test_my_game.example_generated.dart' as my_game_example; +import './monster_test_my_game.example2_generated.dart' as my_game_example2; class InParentNamespace { InParentNamespace._(this._bc, this._bcOffset); diff --git a/tests/namespace_test/namespace_test2_generated.ts b/tests/namespace_test/namespace_test2_generated.ts index 90b5f940..d1a305f9 100644 --- a/tests/namespace_test/namespace_test2_generated.ts +++ b/tests/namespace_test/namespace_test2_generated.ts @@ -1,6 +1,6 @@ // automatically generated by the FlatBuffers compiler, do not modify -import * as NS4989953370203581498 from "./namespace_test1_generated"; +import * as NS9459827973991502386 from "./namespace_test1_generated"; /** * @constructor */ @@ -33,24 +33,24 @@ static getRootAsTableInFirstNS(bb:flatbuffers.ByteBuffer, obj?:TableInFirstNS):T * @param NamespaceA.NamespaceB.TableInNestedNS= obj * @returns NamespaceA.NamespaceB.TableInNestedNS|null */ -fooTable(obj?:NS4989953370203581498.NamespaceA.NamespaceB.TableInNestedNS):NS4989953370203581498.NamespaceA.NamespaceB.TableInNestedNS|null { +fooTable(obj?:NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS):NS9459827973991502386.NamespaceA.NamespaceB.TableInNestedNS|null { var offset = this.bb!.__offset(this.bb_pos, 4); - return offset ? (obj || new NS4989953370203581498.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; }; /** * @returns NamespaceA.NamespaceB.EnumInNestedNS */ -fooEnum():NS4989953370203581498.NamespaceA.NamespaceB.EnumInNestedNS { +fooEnum():NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS { var offset = this.bb!.__offset(this.bb_pos, 6); - return offset ? /** */ (this.bb!.readInt8(this.bb_pos + offset)) : NS4989953370203581498.NamespaceA.NamespaceB.EnumInNestedNS.A; + return offset ? /** */ (this.bb!.readInt8(this.bb_pos + offset)) : NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS.A; }; /** * @param NamespaceA.NamespaceB.EnumInNestedNS value * @returns boolean */ -mutate_foo_enum(value:NS4989953370203581498.NamespaceA.NamespaceB.EnumInNestedNS):boolean { +mutate_foo_enum(value:NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS):boolean { var offset = this.bb!.__offset(this.bb_pos, 6); if (offset === 0) { @@ -65,9 +65,9 @@ mutate_foo_enum(value:NS4989953370203581498.NamespaceA.NamespaceB.EnumInNestedNS * @param NamespaceA.NamespaceB.StructInNestedNS= obj * @returns NamespaceA.NamespaceB.StructInNestedNS|null */ -fooStruct(obj?:NS4989953370203581498.NamespaceA.NamespaceB.StructInNestedNS):NS4989953370203581498.NamespaceA.NamespaceB.StructInNestedNS|null { +fooStruct(obj?:NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS):NS9459827973991502386.NamespaceA.NamespaceB.StructInNestedNS|null { var offset = this.bb!.__offset(this.bb_pos, 8); - return offset ? (obj || new NS4989953370203581498.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; }; /** @@ -89,8 +89,8 @@ static addFooTable(builder:flatbuffers.Builder, fooTableOffset:flatbuffers.Offse * @param flatbuffers.Builder builder * @param NamespaceA.NamespaceB.EnumInNestedNS fooEnum */ -static addFooEnum(builder:flatbuffers.Builder, fooEnum:NS4989953370203581498.NamespaceA.NamespaceB.EnumInNestedNS) { - builder.addFieldInt8(1, fooEnum, NS4989953370203581498.NamespaceA.NamespaceB.EnumInNestedNS.A); +static addFooEnum(builder:flatbuffers.Builder, fooEnum:NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS) { + builder.addFieldInt8(1, fooEnum, NS9459827973991502386.NamespaceA.NamespaceB.EnumInNestedNS.A); }; /** |