private void ParseKeyContent(HoconValue value, string currentPath)
{
while (!_reader.EoF)
{
Token t = _reader.PullNext();
switch (t.Type)
{
case TokenType.Dot:
ParseObject(value, false, currentPath);
return;
case TokenType.Assign:
if (!value.IsObject())
{
//if not an object, then replace the value.
//if object. value should be merged
value.Clear();
}
ParseValue(value, currentPath);
return;
case TokenType.ObjectStart:
ParseObject(value, true, currentPath);
return;
}
}
}