Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Dec 2, 2023
1 parent 6eb7d4d commit d5f892c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function error(
source[position].type !== "eof"
? source[position].line
: source.length > 1
? source[position - 1].line
: 1;
? source[position - 1].line
: 1;

const precedingLastLine = lastLine(
tokensToText(sliceTokens(-maxTokens), { precedes: true }),
Expand Down
4 changes: 2 additions & 2 deletions lib/productions/extended-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ export class SimpleExtendedAttribute extends Base {
const value = this.params.rhsIsList
? list
: this.params.tokens.secondaryName
? unescape(tokens.secondaryName.value)
: null;
? unescape(tokens.secondaryName.value)
: null;
return { type, value };
}
get arguments() {
Expand Down
4 changes: 2 additions & 2 deletions lib/productions/iterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export class IterableLike extends Base {
tokens.base = tokens.readonly
? tokeniser.consume("maplike", "setlike")
: tokens.async
? tokeniser.consume("iterable")
: tokeniser.consume("iterable", "maplike", "setlike");
? tokeniser.consume("iterable")
: tokeniser.consume("iterable", "maplike", "setlike");
if (!tokens.base) {
tokeniser.unconsume(start_position);
return;
Expand Down
4 changes: 2 additions & 2 deletions lib/productions/type.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ for more information.`;
const target = this.union
? this
: typedef && typedef.type === "typedef"
? typedef.idlType
: undefined;
? typedef.idlType
: undefined;
if (target && this.nullable) {
// do not allow any dictionary
const { reference } = idlTypeIncludesDictionary(target, defs) || {};
Expand Down

0 comments on commit d5f892c

Please sign in to comment.