Skip to content

Commit 0c17887

Browse files
committed
fix: prettier formatting
1 parent f29c5eb commit 0c17887

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed

src/ast/enum.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@ const KIND = "enum";
1818
* @property {Declaration[]} body
1919
* @property {AttrGroup[]} attrGroups
2020
*/
21-
module.exports = Declaration.extends(KIND, function Enum(
22-
name,
23-
valueType,
24-
impl,
25-
body,
26-
docs,
27-
location
28-
) {
29-
Declaration.apply(this, [KIND, name, docs, location]);
30-
this.valueType = valueType;
31-
this.implements = impl;
32-
this.body = body;
33-
this.attrGroups = [];
34-
});
21+
module.exports = Declaration.extends(
22+
KIND,
23+
function Enum(name, valueType, impl, body, docs, location) {
24+
Declaration.apply(this, [KIND, name, docs, location]);
25+
this.valueType = valueType;
26+
this.implements = impl;
27+
this.body = body;
28+
this.attrGroups = [];
29+
}
30+
);

src/ast/enumcase.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ const KIND = "enumcase";
1616
* @property {string} name
1717
* @property {string|number|null} value
1818
*/
19-
module.exports = Node.extends(KIND, function EnumCase(
20-
name,
21-
value,
22-
docs,
23-
location
24-
) {
25-
Node.apply(this, [KIND, docs, location]);
26-
this.name = name;
27-
this.value = value;
28-
});
19+
module.exports = Node.extends(
20+
KIND,
21+
function EnumCase(name, value, docs, location) {
22+
Node.apply(this, [KIND, docs, location]);
23+
this.name = name;
24+
this.value = value;
25+
}
26+
);

0 commit comments

Comments
 (0)