示例#1
0
 public void RemoveChild(CBaseElement inElement)
 {
     if (inElement.IsKey())
     {
         _keys.Remove(inElement as CKey);
     }
     else
     {
         _values.Remove(inElement as CBaseValue);
     }
 }
示例#2
0
 public void AddChild(CBaseElement inElement)
 {
     if (inElement.IsKey())
     {
         _keys.Add(inElement as CKey);
     }
     else
     {
         _values.Add(inElement as CBaseValue);
     }
 }
示例#3
0
        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);
                }
            }
        }