public override AddResult AddTo(CodeFragment to,CodeLexer sr){
			if(to.LastChild==null){
				Error("A property (."+Value+") was found in an unexpected place.");
			}
			// Replace the last child with *THIS*:
			of=to.LastChild;
			of.Remove();
			to.AddChild(this);
			return AddResult.Ok;
		}
 public override AddResult AddTo(CodeFragment to, CodeLexer sr)
 {
     if (to.LastChild == null)
     {
         Error("A property (." + Value + ") was found in an unexpected place.");
     }
     // Replace the last child with *THIS*:
     of = to.LastChild;
     of.Remove();
     to.AddChild(this);
     return(AddResult.Ok);
 }
 /// <summary>Adds this fragment as a child to the given fragment.
 /// It may be overriden by some types of fragment as they may wish to handle it differently.</summary>
 /// <param name="to">The parent to add this fragment to.</param>
 /// <param name="sr">The lexer containing the original text code.</param>
 public virtual AddResult AddTo(CodeFragment to, CodeLexer sr)
 {
     to.AddChild(this);
     return(AddResult.Ok);
 }
		/// <summary>Adds this fragment as a child to the given fragment.
		/// It may be overriden by some types of fragment as they may wish to handle it differently.</summary>
		/// <param name="to">The parent to add this fragment to.</param>
		/// <param name="sr">The lexer containing the original text code.</param>
		public virtual AddResult AddTo(CodeFragment to,CodeLexer sr){
			to.AddChild(this);
			return AddResult.Ok;
		}