@specs-feup/clava
Version:
A C/C++ source-to-source compiler written in Typescript
29 lines • 745 B
JavaScript
/**
* Enumeration of CFG edge types.
*/
export default class CfgEdgeType {
static TRUE = new CfgEdgeType("TRUE");
static FALSE = new CfgEdgeType("FALSE");
static UNCONDITIONAL = new CfgEdgeType("UNCONDITIONAL");
instanceName;
/**
* Creates a new instance of the CfgEdgeType class
* @param name - The name of the CFG edge type
*/
constructor(name) {
this.instanceName = name;
}
/**
* @returns The name of the CFG edge type
*/
get name() {
return this.instanceName;
}
/**
* @returns String representation of the CFG edge type, which corresponds to its name
*/
toString() {
return this.name;
}
}
//# sourceMappingURL=CfgEdgeType.js.map