UNPKG

@nomicfoundation/slang

Version:

A modular set of compiler APIs empowering the next generation of Solidity code analysis and developer tooling. Written in Rust and distributed in multiple languages.

11 lines 391 B
import { Edge } from "./index.mjs"; /** Create a new `Edge` with the label `label` and node `node`. */ export function createEdge(label, node) { if (node.isNonterminalNode()) { return Edge.createWithNonterminal(label, node.asNonterminalNode()); } else { return Edge.createWithTerminal(label, node.asTerminalNode()); } } //# sourceMappingURL=extensions.mjs.map