UNPKG

@specs-feup/clava

Version:

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

17 lines 734 B
import SimplePass from "@specs-feup/lara/api/lara/pass/SimplePass.js"; import PassResult from "@specs-feup/lara/api/lara/pass/results/PassResult.js"; import { Joinpoint, Vardecl } from "../../Joinpoints.js"; /** * Decomposes the vardecl nodes that are reachable from the given join point. * * E.g. transforms int i = 0; into int i; i = 0; * * Does not support decomposition for variables that are arrays, in those cases the code stays unchanged. */ export default class DecomposeVarDeclarations extends SimplePass { protected _name: string; matchJoinpoint($jp: Joinpoint): boolean; private isLiteralAuto; transformJoinpoint($vardecl: Vardecl): PassResult; } //# sourceMappingURL=DecomposeVarDeclarations.d.ts.map