MCPcopy Index your code
hub / github.com/python/cpython / createElement

Function createElement

Lib/profiling/sampling/_heatmap_assets/heatmap.js:29–34  ·  view source on GitHub ↗
(tag, className, textContent = '')

Source from the content-addressed store, hash-verified

27// ============================================================================
28
29function createElement(tag, className, textContent = '') {
30 const el = document.createElement(tag);
31 if (className) el.className = className;
32 if (textContent) el.textContent = textContent;
33 return el;
34}
35
36function calculateMenuPosition(buttonRect, menuWidth, menuHeight) {
37 const viewport = { width: window.innerWidth, height: window.innerHeight };

Callers 2

showNavigationMenuFunction · 0.85
buildScrollMarkerFunction · 0.85

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…