Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / experimental-utils / _ts3.4 / dist / ast-utils / eslint-utils / astUtilities.d.ts
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts
new file mode 100644 (file)
index 0000000..a9449ea
--- /dev/null
@@ -0,0 +1,82 @@
+import { TSESTree } from '../../ts-estree';\r
+import * as TSESLint from '../../ts-eslint';\r
+/**\r
+ * Get the proper location of a given function node to report.\r
+ *\r
+ * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getfunctionheadlocation}\r
+ */\r
+declare const getFunctionHeadLocation: (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation;\r
+/**\r
+ * Get the name and kind of a given function node.\r
+ *\r
+ * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getfunctionnamewithkind}\r
+ */\r
+declare const getFunctionNameWithKind: (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression) => string;\r
+/**\r
+ * Get the property name of a given property node.\r
+ * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.\r
+ *\r
+ * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getpropertyname}\r
+ * @returns The property name of the node. If the property name is not constant then it returns `null`.\r
+ */\r
+declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.OptionalMemberExpression | TSESTree.Property | TSESTree.MethodDefinition, initialScope?: TSESLint.Scope.Scope | undefined) => string | null;\r
+/**\r
+ * Get the value of a given node if it can decide the value statically.\r
+ * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the\r
+ * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have\r
+ * not been modified.\r
+ * For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static.\r
+ *\r
+ * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getstaticvalue}\r
+ * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the\r
+ * static value of the node, it returns `null`.\r
+ */\r
+declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope | undefined) => {\r
+    value: unknown;\r
+} | null;\r
+/**\r
+ * Get the string value of a given node.\r
+ * This function is a tiny wrapper of the getStaticValue function.\r
+ *\r
+ * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#getstringifconstant}\r
+ */\r
+declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope | undefined) => string | null;\r
+/**\r
+ * Check whether a given node has any side effect or not.\r
+ * The side effect means that it may modify a certain variable or object member. This function considers the node which\r
+ * contains the following types as the node which has side effects:\r
+ * - `AssignmentExpression`\r
+ * - `AwaitExpression`\r
+ * - `CallExpression`\r
+ * - `ImportExpression`\r
+ * - `NewExpression`\r
+ * - `UnaryExpression([operator = "delete"])`\r
+ * - `UpdateExpression`\r
+ * - `YieldExpression`\r
+ * - When `options.considerGetters` is `true`:\r
+ *   - `MemberExpression`\r
+ * - When `options.considerImplicitTypeConversion` is `true`:\r
+ *   - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])`\r
+ *   - `MemberExpression([computed = true])`\r
+ *   - `MethodDefinition([computed = true])`\r
+ *   - `Property([computed = true])`\r
+ *   - `UnaryExpression([operator = "-" | "+" | "!" | "~"])`\r
+ *\r
+ * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#hassideeffect}\r
+ */\r
+declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: {\r
+    considerGetters?: boolean | undefined;\r
+    considerImplicitTypeConversion?: boolean | undefined;\r
+} | undefined) => boolean;\r
+/**\r
+ * Check whether a given node is parenthesized or not.\r
+ * This function detects it correctly even if it's parenthesized by specific syntax.\r
+ *\r
+ * @see {@link https://eslint-utils.mysticatea.dev/api/ast-utils.html#isparenthesized}\r
+ * @returns `true` if the node is parenthesized.\r
+ * If `times` was given, it returns `true` only if the node is parenthesized the `times` times.\r
+ * For example, `isParenthesized(2, node, sourceCode)` returns true for `((foo))`, but not for `(foo)`.\r
+ */\r
+declare const isParenthesized: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode) => boolean;\r
+export { getFunctionHeadLocation, getFunctionNameWithKind, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isParenthesized, };\r
+//# sourceMappingURL=astUtilities.d.ts.map\r