UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for static analysis and code manipulation.

14 lines (13 loc) 507 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var PropertyComparer = /** @class */ (function () { function PropertyComparer(getProperty, comparer) { this.getProperty = getProperty; this.comparer = comparer; } PropertyComparer.prototype.compareTo = function (a, b) { return this.comparer.compareTo(this.getProperty(a), this.getProperty(b)); }; return PropertyComparer; }()); exports.PropertyComparer = PropertyComparer;