code: 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;
          }
docs: Parses a list of elements