'use strict';

var getSymbolsInPatternWithPosition = require('../getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js');

const getCountOfSymbolsInSelection = (selectionStart, selectionEnd, pattern) => getSymbolsInPatternWithPosition(pattern).filter(symbol => symbol.index >= selectionStart && symbol.index < selectionEnd).length;

module.exports = getCountOfSymbolsInSelection;
//# sourceMappingURL=getCountOfSymbolsInSelection.js.map
