UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

10 lines (8 loc) 283 B
const getID = (node) => { const nodeAny = node; return nodeAny.id == undefined ? `${node.getSourceFile().fileName}:${node.getStart()}:${node.getWidth()}` : nodeAny.id; }; export const nodeKey = (node) => `${getID(node)}`; //# sourceMappingURL=nodeKey.js.map