Ejemplo n.º 1
0
 void StartCommentable(IHasComment aCommentable)
 {
     if (iLastCommentToken != null)
     {
         aCommentable.RawComment = iLastCommentToken.Content;
         iLastCommentToken       = null;
     }
     iLastCommentable = aCommentable;
 }
Ejemplo n.º 2
0
 void AddComment(Token aCommentToken)
 {
     if (BackwardsCommentRegex.IsMatch(aCommentToken.Content))
     {
         if (iLastCommentable != null)
         {
             iLastCommentable.RawComment = aCommentToken.Content;
         }
         iLastCommentToken = null;
     }
     else if (ForwardsCommentRegex.IsMatch(aCommentToken.Content))
     {
         iLastCommentable  = null;
         iLastCommentToken = aCommentToken;
     }
 }
Ejemplo n.º 3
0
 void EndCommentable(IHasComment aCommentable)
 {
     iLastCommentToken = null;
     iLastCommentable  = aCommentable;
 }