UNPKG

ph-dev-tools

Version:
26 lines 748 B
"use strict"; /** * Created by Papa on 3/27/2016. */ class EntityCandidate { constructor(type, path, parent, location, verified) { this.type = type; this.path = path; this.location = location; this.verified = verified; if (typeof parent === 'EntityCandidate') { this.parent = parent; } else { this.parentKeyword = parent; } } static create(type, path, parentClass, parentImport) { return new EntityCandidate(type, path, parentClass, parentImport); } matches(type, location) { return this.type === type; } } exports.EntityCandidate = EntityCandidate; //# sourceMappingURL=EntityCandidate.js.map