UNPKG

ts-budgie

Version:

Converts TypeScript code to Budgie.

30 lines 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Creates transformations for a node type. */ var NodeVisitor = /** @class */ (function () { /** * Initializes a new instance of the NodeVisitor class. * * @param dependencies Dependencies to be used for initialization. */ function NodeVisitor(dependencies) { // See https://github.com/Microsoft/TypeScript/issues/17523 if (dependencies instanceof NodeVisitor) { // tslint:disable-next-line:no-parameter-reassignment dependencies = dependencies; } this.aliaser = dependencies.aliaser; this.casing = dependencies.casing; this.context = dependencies.visitorContext; this.nameSplitter = dependencies.nameSplitter; this.router = dependencies.router; this.sourceFile = dependencies.sourceFile; this.typeChecker = dependencies.typeChecker; this.variableUsage = dependencies.variableUsage; } return NodeVisitor; }()); exports.NodeVisitor = NodeVisitor; //# sourceMappingURL=visitor.js.map