MCPcopy
hub / github.com/mishoo/UglifyJS / make_node

Function make_node

lib/compress.js:1878–1886  ·  view source on GitHub ↗
(ctor, orig, props)

Source from the content-addressed store, hash-verified

1876 }
1877
1878 function make_node(ctor, orig, props) {
1879 if (props) {
1880 props.start = orig.start;
1881 props.end = orig.end;
1882 } else {
1883 props = orig;
1884 }
1885 return new ctor(props);
1886 }
1887
1888 function make_sequence(orig, expressions) {
1889 if (expressions.length == 1) return expressions[0];

Callers 15

compress.jsFile · 0.85
export_symbolFunction · 0.85
make_refFunction · 0.85
safe_to_readFunction · 0.85
scan_declarationFunction · 0.85
reduce_iifeFunction · 0.85
walk_defnFunction · 0.85
convert_symbolFunction · 0.85
make_sequenceFunction · 0.85
make_node_from_constantFunction · 0.85
maintain_this_bindingFunction · 0.85
patch_for_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…