getPositionForText(text, textType) {
        assert(this.file, 'setFile() should have been called');
        return this.file.getPosition(text, textType);
    }
@param {string} text
@param {'key' | 'value'} textType