Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit c263f05

Browse files
committed
Fix compilation errors from new analyzer API.
1 parent 832aff6 commit c263f05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gen-ts.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ function genElementDeclaration(
108108
d += `${idt(indent)}class ${className} {\n`;
109109
}
110110

111-
for (const property of element.properties) {
111+
for (const [, property] of element.properties) {
112112
if (property.privacy === 'private' || property.inheritedFrom != null) {
113113
continue;
114114
}
115115
d += `${idt(indent)} ${getVisibility(property)}${property.name}${
116116
getTypeAnnotation(property, true)};\n`;
117117
}
118118

119-
for (const method of element.methods) {
119+
for (const [, method] of element.methods) {
120120
const methodText = genMethod(method, indent + 2);
121121
if (methodText) {
122122
d += methodText;
@@ -145,14 +145,14 @@ function genMixinDeclaration(
145145

146146
d += `${idt(indent)}interface ${name} ${extendsText}{\n`
147147

148-
for (const property of mixin.properties) {
148+
for (const [, property] of mixin.properties) {
149149
const propertyText = genProperty(property, indent + 2);
150150
if (propertyText) {
151151
d += propertyText;
152152
}
153153
}
154154

155-
for (const method of mixin.methods) {
155+
for (const [, method] of mixin.methods) {
156156
const methodText = genMethod(method, indent + 2);
157157
if (methodText) {
158158
d += methodText;

0 commit comments

Comments
 (0)