MCPcopy Create free account
hub / github.com/antonk52/cssmodules-language-server / getParentRule

Function getParentRule

src/utils.ts:231–237  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

229};
230
231function getParentRule(node: Node): undefined | Node {
232 const {parent} = node;
233 if (!parent) return undefined;
234 if (parent.type === 'rule') return parent;
235
236 return getParentRule(parent);
237}
238
239const AT_RULES_WITH_SELECTORS = new Set([
240 'container',

Callers 1

filePathToClassnameDictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected