/// <summary> /// Retrieves the next array token from the tokenizer. /// </summary> /// <returns>An array of elements retrieved from the token.</returns> public HoconArray ParseArray(string currentPath) { var arr = new HoconArray(); while (!_reader.EoF && !_reader.IsArrayEnd()) { var v = new HoconValue(); ParseValue(v, currentPath); arr.Add(v); _reader.PullWhitespaceAndComments(); } _reader.PullArrayEnd(); return(arr); }
public HoconArray ParseArray() { var arr = new HoconArray(); while (!reader.EoF && !reader.IsArrayEnd()) { var v = new HoconValue(); ParseValue(v); arr.Add(v); reader.PullWhitespaceAndComments(); } reader.PullArrayEnd(); return(arr); }