/// <summary>
 /// Formats the specified end token.
 /// </summary>
 /// <param name="endToken">The end token.</param>
 /// <returns>The token in serialized form.</returns>
 protected override string Format(EndToken endToken) {
   return CreateNodeEnd(typeCache[endToken.TypeId]);
 }
示例#2
0
 private void CompositeEndHandler(EndToken token) {
   Type type = typeIds[(int)token.TypeId];
   Midwife midwife = parentStack.Pop();
   if (midwife.Obj == null)
     CreateInstance(midwife);
   midwife.Populate();
   SetValue(token.Name, midwife.Obj);
 }