Skip to content

Commit d1f6c8a

Browse files
committed
class fields
1 parent b95152c commit d1f6c8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/libembind_gen.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ var LibraryEmbind = {
4444
},
4545
$FunctionDefinition__deps: ['$createJsInvoker', '$createJsInvokerSignature', '$emittedFunctions'],
4646
$FunctionDefinition: class {
47+
hasPublicSymbol = true;
4748
constructor(name, returnType, argumentTypes, functionIndex, thisType = null, isNonnullReturn = false, isAsync = false) {
4849
this.name = name;
4950
this.returnType = returnType;
@@ -52,7 +53,6 @@ var LibraryEmbind = {
5253
this.thisType = thisType;
5354
this.isNonnullReturn = isNonnullReturn;
5455
this.isAsync = isAsync;
55-
this.hasPublicSymbol = true;
5656
}
5757

5858
printSignature(nameMap, out) {
@@ -158,6 +158,7 @@ var LibraryEmbind = {
158158
}
159159
},
160160
$ClassDefinition: class {
161+
hasPublicSymbol = true;
161162
constructor(typeId, name, base = null) {
162163
this.typeId = typeId;
163164
this.name = name;
@@ -171,7 +172,6 @@ var LibraryEmbind = {
171172
if (base) {
172173
this.destructorType = 'stack';
173174
}
174-
this.hasPublicSymbol = true;
175175
}
176176

177177
print(nameMap, out) {
@@ -270,23 +270,23 @@ var LibraryEmbind = {
270270
}
271271
},
272272
$ConstantDefinition: class {
273+
hasPublicSymbol = true;
273274
constructor(type, name) {
274275
this.type = type;
275276
this.name = name;
276-
this.hasPublicSymbol = true;
277277
}
278278

279279
printModuleEntry(nameMap, out) {
280280
out.push(` ${this.name}: ${nameMap(this.type)};\n`);
281281
}
282282
},
283283
$EnumDefinition: class {
284+
hasPublicSymbol = true;
284285
constructor(typeId, name) {
285286
this.typeId = typeId;
286287
this.name = name;
287288
this.items = [];
288289
this.destructorType = 'none';
289-
this.hasPublicSymbol = true;
290290
}
291291

292292
print(nameMap, out) {

0 commit comments

Comments
 (0)