MCPcopy Index your code
hub / github.com/developit/htm / dottedIdentifier

Function dottedIdentifier

packages/babel-plugin-htm/index.mjs:45–53  ·  view source on GitHub ↗
(keypath)

Source from the content-addressed store, hash-verified

43 }
44
45 function dottedIdentifier(keypath) {
46 const path = keypath.split('.');
47 let out;
48 for (let i=0; i<path.length; i++) {
49 const ident = propertyName(path[i]);
50 out = i===0 ? ident : t.memberExpression(out, ident);
51 }
52 return out;
53 }
54
55 function patternStringToRegExp(str) {
56 const parts = str.split('/').slice(1);

Callers 2

htmBabelPluginFunction · 0.70
spreadNodeFunction · 0.70

Calls 1

propertyNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…