MCPcopy Create free account
hub / github.com/TanStack/query / mapKeyNodeToText

Function mapKeyNodeToText

packages/eslint-plugin-query/src/utils/ast-utils.ts:209–220  ·  view source on GitHub ↗
(
    node: TSESTree.Node,
    sourceCode: Readonly<TSESLint.SourceCode>,
  )

Source from the content-addressed store, hash-verified

207 return uniqueBy(externalRefs, (x) => x.text).map((x) => x.variable)
208 },
209 mapKeyNodeToText(
210 node: TSESTree.Node,
211 sourceCode: Readonly<TSESLint.SourceCode>,
212 ) {
213 return sourceCode.getText(
214 ASTUtils.traverseUpOnly(node, [
215 AST_NODE_TYPES.MemberExpression,
216 AST_NODE_TYPES.TSNonNullExpression,
217 AST_NODE_TYPES.Identifier,
218 ]),
219 )
220 },
221 mapKeyNodeToBaseText(
222 node: TSESTree.Node,
223 sourceCode: Readonly<TSESLint.SourceCode>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected