adjust = function (toColumn, delta, minimumAllowedColumn) {
                // console.log(`------------------------------------------------------------------`);
                // console.log(`before call: tokenIndex: ${tokenIndex}: ${lineTokens}`);
                // console.log(`adjustTokens: ${toColumn} with delta: ${delta} and [${minimumAllowedColumn}]`);
                // console.log(`tokenStartOffset: ${tokenStartOffset}`);
                var minimumAllowedIndex = minimumAllowedColumn - 1;
                while (tokenStartOffset < toColumn && tokenIndex < tokensLength) {
                    if (tokenStartOffset > 0 && delta !== 0) {
                        // adjust token's `startIndex` by `delta`
                        var newTokenStartOffset = Math.max(minimumAllowedIndex, tokenStartOffset + delta);
                        lineTokens[(tokenIndex << 1)] = newTokenStartOffset;
                        // console.log(` * adjusted token start offset for token at ${tokenIndex}: ${newTokenStartOffset}`);
                        if (delta < 0) {
                            var tmpTokenIndex = tokenIndex;
                            while (tmpTokenIndex > 0) {
                                var prevTokenStartOffset = lineTokens[((tmpTokenIndex - 1) << 1)];
                                if (prevTokenStartOffset >= newTokenStartOffset) {
                                    if (prevTokenStartOffset !== 4294967295 /* MAX_UINT_32 */) {
                                        // console.log(` * marking for deletion token at ${tmpTokenIndex - 1}`);
                                        lineTokens[((tmpTokenIndex - 1) << 1)] = 4294967295 /* MAX_UINT_32 */;
                                        removeTokensCount++;
                                    }
                                    tmpTokenIndex--;
                                }
                                else {
                                    break;
                                }
                            }
                        }
                    }
                    tokenIndex++;
                    if (tokenIndex < tokensLength) {
                        tokenStartOffset = lineTokens[(tokenIndex << 1)];
                    }
                }
                // console.log(`after call: tokenIndex: ${tokenIndex}: ${lineTokens}`);
            }
Returns:
 - -1 => the line consists of whitespace
 - otherwise => the indent level is returned value