You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -142,9 +147,9 @@ function parseOptions(type, options, defaultOptions) {
142
147
143
148
/**
144
149
* Check whether the node is at the beginning of line.
145
-
* @param {ASTNode|null} node The node to check.
150
+
* @param {MaybeNode|null} node The node to check.
146
151
* @param {number} index The index of the node in the nodes.
147
-
* @param {(ASTNode|null)[]} nodes The array of nodes.
152
+
* @param {(MaybeNode|null)[]} nodes The array of nodes.
148
153
* @returns {boolean} `true` if the node is at the beginning of line.
149
154
*/
150
155
functionisBeginningOfLine(node,index,nodes){
@@ -307,7 +312,7 @@ module.exports.defineVisitor = function create(
307
312
/**
308
313
* Get the first and last tokens of the given node.
309
314
* If the node is parenthesized, this gets the outermost parentheses.
310
-
* @param {ASTNode} node The node to get.
315
+
* @param {MaybeNode} node The node to get.
311
316
* @param {number} [borderOffset] The least offset of the first token. Defailt is 0. This value is used to prevent false positive in the following case: `(a) => {}` The parentheses are enclosing the whole parameter part rather than the first parameter, but this offset parameter is needed to distinguish.
312
317
* @returns {{firstToken:Token,lastToken:Token}} The gotten tokens.
313
318
*/
@@ -337,9 +342,9 @@ module.exports.defineVisitor = function create(
337
342
* Process the given node list.
338
343
* The first node is offsetted from the given left token.
339
344
* Rest nodes are adjusted to the first node.
340
-
* @param {(ASTNode|null)[]} nodeList The node to process.
341
-
* @param {ASTNode|Token|null} left The left parenthesis token.
342
-
* @param {ASTNode|Token|null} right The right parenthesis token.
345
+
* @param {(MaybeNode|null)[]} nodeList The node to process.
346
+
* @param {MaybeNode|Token|null} left The left parenthesis token.
347
+
* @param {MaybeNode|Token|null} right The right parenthesis token.
343
348
* @param {number} offset The offset to set.
344
349
* @param {boolean} [alignVertically=true] The flag to align vertically. If `false`, this doesn't align vertically even if the first node is not at beginning of line.
345
350
* @returns {void}
@@ -450,7 +455,7 @@ module.exports.defineVisitor = function create(
450
455
451
456
/**
452
457
* Process semicolons of the given statement node.
453
-
* @param {ASTNode} node The statement node to process.
458
+
* @param {MaybeNode} node The statement node to process.
454
459
* @returns {void}
455
460
*/
456
461
functionprocessSemicolons(node){
@@ -476,31 +481,6 @@ module.exports.defineVisitor = function create(
476
481
}
477
482
}
478
483
479
-
/**
480
-
* Collect prefix tokens of the given property.
481
-
* The prefix includes `async`, `get`, `set`, `static`, and `*`.
482
-
* @param {ASTNode} node The property node to collect prefix tokens.
0 commit comments