UNPKG

@specs-feup/clava

Version:

A C/C++ source-to-source compiler written in Typescript

22 lines (17 loc) 437 B
import EdgeData from "@specs-feup/lara/api/lara/graphs/EdgeData.js"; import { Call } from "../../../Joinpoints.js"; export default class ScgEdgeData extends EdgeData { /** * The calls that contributed to this edge */ private $calls: Call[] = []; get calls(): Call[] { return this.$calls; } inc($call: Call) { this.$calls.push($call); } toString(): string { return this.$calls.length.toString(); } }