Exemplo n.º 1
0
        public virtual object EvalPostCommentClause(ParseNode node)
        {
            int           i      = 0;
            StringBuilder result = new StringBuilder();

            while (node[TokenType.ANY_TEXT, i] != null)
            {
                result.AppendLine(NodeParser.GetCommentSegment(node[TokenType.ANY_TEXT, i]));
                i++;
            }
            if (result.Length > Environment.NewLine.Length)
            {
                result.Remove(result.Length - Environment.NewLine.Length, Environment.NewLine.Length);
            }

            return(ObjectFactory.GetInstance <IActionFactory>().CreatePostCommentAction(result.ToString()));
        }