Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function addTokenList(prevTokens, nextTokens, add) {
console.log('add', prevTokens, nextTokens, add);
var union = [];
var minLength = Math.min(prevTokens.length, nextTokens.length);
for (var i = 0; i < minLength; i++) {
var prevToken = prevTokens[i];
var nextToken = nextTokens[i];
switch (prevToken.type) {
case types.SET:
case types.REPETITION:
case types.REFERENCE:
case types.CHAR:
}
}
return union;
}