public void RemoveChild(CBaseElement inElement) { if (inElement.IsKey()) { _keys.Remove(inElement as CKey); } else { _values.Remove(inElement as CBaseValue); } }
public void AddChild(CBaseElement inElement) { if (inElement.IsKey()) { _keys.Add(inElement as CKey); } else { _values.Add(inElement as CBaseValue); } }
internal void AddTokenTail(CTokenLine line, ILogger inLoger) { if (line.Comments != null) { AddComments(line.Comments.Text); } if (line.IsTailEmpty) { return; } for (int i = 0; i < line.TailLength; i++) { CToken t = line.Tail[i]; CBaseElement be = CBaseValue.CreateBaseValue(this, t); if (be == null) { inLoger.LogError(EErrorCode.WrongTokenInTail, t); } } }