Skip to content

Commit 21ccf4a

Browse files
committed
fix linting
1 parent a02039b commit 21ccf4a

File tree

6 files changed

+45
-56
lines changed

6 files changed

+45
-56
lines changed

src/ast/attribute.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ const KIND = "attribute";
1515
* @property {String} name
1616
* @property {Parameter[]} args
1717
*/
18-
module.exports = Node.extends(KIND, function Attribute(
19-
name,
20-
args,
21-
docs,
22-
location
23-
) {
24-
Node.apply(this, [KIND, docs, location]);
25-
this.name = name;
26-
this.args = args;
27-
});
18+
module.exports = Node.extends(
19+
KIND,
20+
function Attribute(name, args, docs, location) {
21+
Node.apply(this, [KIND, docs, location]);
22+
this.name = name;
23+
this.args = args;
24+
}
25+
);

src/ast/match.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ const KIND = "match";
1515
* @property {Expression} cond Condition expression to match against
1616
* @property {MatchArm[]} arms Arms for comparison
1717
*/
18-
module.exports = Expression.extends(KIND, function Match(
19-
cond,
20-
arms,
21-
docs,
22-
location
23-
) {
24-
Expression.apply(this, [KIND, docs, location]);
25-
this.cond = cond;
26-
this.arms = arms;
27-
});
18+
module.exports = Expression.extends(
19+
KIND,
20+
function Match(cond, arms, docs, location) {
21+
Expression.apply(this, [KIND, docs, location]);
22+
this.cond = cond;
23+
this.arms = arms;
24+
}
25+
);

src/ast/matcharm.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ const KIND = "matcharm";
1515
* @property {Expression[]|null} conds The match condition expression list - null indicates default arm
1616
* @property {Expression} body The return value expression
1717
*/
18-
module.exports = Expression.extends(KIND, function MatchArm(
19-
conds,
20-
body,
21-
docs,
22-
location
23-
) {
24-
Expression.apply(this, [KIND, docs, location]);
25-
this.conds = conds;
26-
this.body = body;
27-
});
18+
module.exports = Expression.extends(
19+
KIND,
20+
function MatchArm(conds, body, docs, location) {
21+
Expression.apply(this, [KIND, docs, location]);
22+
this.conds = conds;
23+
this.body = body;
24+
}
25+
);

src/ast/namedargument.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ const KIND = "namedargument";
1616
* @property {Expression} value
1717
* @see https://www.php.net/manual/en/functions.arguments.php#functions.named-arguments
1818
*/
19-
module.exports = Expression.extends(KIND, function namedargument(
20-
name,
21-
value,
22-
docs,
23-
location
24-
) {
25-
Expression.apply(this, [KIND, docs, location]);
26-
this.name = name;
27-
this.value = value;
28-
});
19+
module.exports = Expression.extends(
20+
KIND,
21+
function namedargument(name, value, docs, location) {
22+
Expression.apply(this, [KIND, docs, location]);
23+
this.name = name;
24+
this.value = value;
25+
}
26+
);

src/ast/nullsafepropertylookup.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ const KIND = "nullsafepropertylookup";
1313
* @constructor PropertyLookup
1414
* @extends {Lookup}
1515
*/
16-
module.exports = Lookup.extends(KIND, function PropertyLookup(
17-
what,
18-
offset,
19-
docs,
20-
location
21-
) {
22-
Lookup.apply(this, [KIND, what, offset, docs, location]);
23-
});
16+
module.exports = Lookup.extends(
17+
KIND,
18+
function PropertyLookup(what, offset, docs, location) {
19+
Lookup.apply(this, [KIND, what, offset, docs, location]);
20+
}
21+
);

src/ast/uniontype.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ const KIND = "uniontype";
1414
* @extends {Declaration}
1515
* @property {TypeReference[]} types
1616
*/
17-
module.exports = Declaration.extends(KIND, function UnionType(
18-
types,
19-
docs,
20-
location
21-
) {
22-
Declaration.apply(this, [KIND, null, docs, location]);
23-
this.types = types;
24-
});
17+
module.exports = Declaration.extends(
18+
KIND,
19+
function UnionType(types, docs, location) {
20+
Declaration.apply(this, [KIND, null, docs, location]);
21+
this.types = types;
22+
}
23+
);

0 commit comments

Comments
 (0)