MCPcopy Create free account
hub / github.com/NetEase/tango / constructor

Method constructor

packages/core/src/models/node.ts:38–44  ·  view source on GitHub ↗
(props: TangoNodeConstructorPropsType)

Source from the content-addressed store, hash-verified

36 }
37
38 constructor(props: TangoNodeConstructorPropsType) {
39 this.file = props.file;
40 this.id = props.id;
41 this.component = props.component;
42 this.rawNode = props.rawNode;
43 this.props = getJSXElementAttributes(cloneJSXElementWithoutTrackingData(props.rawNode));
44 }
45
46 /**
47 * 返回克隆后的 ast 节点

Callers

nothing calls this directly

Calls 2

getJSXElementAttributesFunction · 0.90

Tested by

no test coverage detected