UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

65 lines 1.86 kB
import { LaraJoinPoint } from "../../../LaraJoinPoint.js"; import Pass from "../Pass.js"; /** * The result of a Lara transformation pass * */ declare class PassResult { /** * Name of the pass that generated this result * */ protected _name: string; /** * Joinpoint where this pass was applied * */ protected _$jp: LaraJoinPoint; /** * True if the pass was applied to the given node, false if the node was ignored or there were no changes * */ protected _appliedPass: boolean; /** * True if the pass inserted literal code * */ protected _insertedLiteralCode: boolean; /** * @param pass - Pass which generated this result * @param $jp - Join point related to this pass result * @param params - Properties of a defined PassResult */ constructor(pass: Pass, $jp: LaraJoinPoint, params?: PassResult.PassResultParams); /** * @returns Name of the pass that generated this result */ get name(): string; /** * @returns Joinpoint where this pass was applied */ get jp(): LaraJoinPoint; /** * @returns True if the pass was applied to the given node, false if the node was ignored or there were no changes */ get appliedPass(): boolean; /** * @returns True if the pass inserted literal code */ get insertedLiteralCode(): boolean; toString(): string; } declare namespace PassResult { interface PassResultParams { /** * True if the pass was applied to the given node, false if the node was ignored or there were no changes */ appliedPass: boolean; /** * True if the pass inserted literal code */ insertedLiteralCode: boolean; } } export default PassResult; //# sourceMappingURL=PassResult.d.ts.map