Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2023-07-17 20:17:37 +00:00
parent 99c9f6a498
commit e266801e21
242 changed files with 2638 additions and 9296 deletions

View file

@ -1006,6 +1006,15 @@ function isTopLevelExpressionStatement(node) {
}
/**
* Check whether the given node is a part of a directive prologue or not.
* @param {ASTNode} node The node to check.
* @returns {boolean} `true` if the node is a part of directive prologue.
*/
function isDirective(node) {
return node.type === "ExpressionStatement" && typeof node.directive === "string";
}
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
@ -2158,5 +2167,6 @@ module.exports = {
getSwitchCaseColonToken,
getModuleExportName,
isConstant,
isTopLevelExpressionStatement
isTopLevelExpressionStatement,
isDirective
};