MCPcopy Create free account
hub / github.com/eslint/rewrite / hasPosStyleLoc

Function hasPosStyleLoc

packages/plugin-kit/src/source-code.js:55–57  ·  view source on GitHub ↗

* Determines if a node has position-style loc information. * @param {object} node The node to check. * @returns {node is {position:SourceLocation}} `true` if the node has position-style range information, `false` if not.

(node)

Source from the content-addressed store, hash-verified

53 * @returns {node is {position:SourceLocation}} `true` if the node has position-style range information, `false` if not.
54 */
55function hasPosStyleLoc(node) {
56 return "position" in node;
57}
58
59/**
60 * Determines if a node has ESTree-style range information.

Callers 1

getLocMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected