Lines Matching refs:unions
11 unions, argument
15 var u = new unions.PodUnion();
22 expect(u.$tag).toEqual(unions.PodUnion.Tags.f_uint32);
24 var u = new unions.PodUnion({f_uint64: 64});
26 expect(u.$tag).toEqual(unions.PodUnion.Tags.f_uint64);
30 var u = new unions.PodUnion({
37 var u = new unions.PodUnion({ foo: 64 }); }).toThrow();
40 var u = new unions.PodUnion([1,2,3,4]); }).toThrow();
61 var s = new unions.WrapperStruct({
62 pod_union: new unions.PodUnion({
68 var s = new unions.WrapperStruct({
69 object_union: new unions.ObjectUnion({
70 f_dummy: new unions.DummyStruct({
76 var s = new unions.WrapperStruct({
77 object_union: new unions.ObjectUnion({
83 var s = new unions.WrapperStruct({
84 object_union: new unions.ObjectUnion({
94 var s = new unions.WrapperStruct({
95 object_union: new unions.ObjectUnion()});
101 var s = new unions.SmallStruct({
103 new unions.PodUnion({f_uint32: 32}),
104 new unions.PodUnion({f_uint64: 64}),
113 var s = new unions.SmallStruct({
115 ["thirty-two", new unions.PodUnion({f_uint32: 32})],
116 ["sixty-four", new unions.PodUnion({f_uint64: 64})],
125 var s = new unions.WrapperStruct({
126 object_union: new unions.ObjectUnion({
127 f_pod_union: new unions.PodUnion({f_uint32: 32})
145 var s = new unions.WrapperStruct({
146 object_union: new unions.ObjectUnion({
152 var s = new unions.WrapperStruct({
153 object_union: new unions.ObjectUnion({
161 var s = new unions.SmallStructNonNullableUnion({
167 var s = new unions.WrapperStruct({
168 object_union: new unions.ObjectUnion({