docs/libs/typescript.js
function parseList(kind, parseElement) {
            var saveParsingContext = parsingContext;
            parsingContext |= 1 << kind;
            var result = [];
            result.pos = getNodePos();
            while (!isListTerminator(kind)) {
                if (isListElement(kind, /*inErrorRecovery*/ false)) {
                    var element = parseListElement(kind, parseElement);
                    result.push(element);
                    continue;
                }
                if (abortParsingListOrMoveToNextToken(kind)) {
                    break;
                }
            }
            result.end = getNodeEnd();
            parsingContext = saveParsingContext;
            return result;
        }
function parseList(kind, parseElement) {
            var saveParsingContext = parsingContext;
            parsingContext |= 1 << kind;
            var result = [];
            result.pos = getNodePos();
            while (!isListTerminator(kind)) {
                if (isListElement(kind, /*inErrorRecovery*/ false)) {
                    var element = parseListElement(kind, parseElement);
                    result.push(element);
                    continue;
                }
                if (abortParsingListOrMoveToNextToken(kind)) {
                    break;
                }
            }
            result.end = getNodeEnd();
            parsingContext = saveParsingContext;
            return result;
        }
function parseList ( kind , parseElement ) { var saveParsingContext = parsingContext ; parsingContext |= 1 << kind ; var result = [ ] ; result . pos = getNodePos ( ) ; while ( ! isListTerminator ( kind ) ) { if ( isListElement ( kind , /*inErrorRecovery*/ false ) ) { var element = parseListElement ( kind , parseElement ) ; result . push ( element ) ; continue ; } if ( abortParsingListOrMoveToNextToken ( kind ) ) { break ; } } result . end = getNodeEnd ( ) ; parsingContext = saveParsingContext ; return result ; }
Parses a list of elements
Parses a list of elements