UNPKG

ts-budgie

Version:

Converts TypeScript code to Budgie.

30 lines 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var visitor_1 = require("../../visitor"); /** * Creates transformations for a type of property access, if possible. */ var PropertyAccessChecker = /** @class */ (function () { /** * Initializes a new instance of the PropertyAccessChecker class. * * @param dependencies Dependencies to be used for initialization. */ function PropertyAccessChecker(dependencies) { // See https://github.com/Microsoft/TypeScript/issues/17523 if (dependencies instanceof visitor_1.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; } return PropertyAccessChecker; }()); exports.PropertyAccessChecker = PropertyAccessChecker; //# sourceMappingURL=propertyAccessChecker.js.map