Ejemplo n.º 1
0
        private static IEnumerable <txtComments> GetComments(string temp, string code, string commentType, CommentNodeType nodeType, int startLine)
        {
            var commentnodes = Helper.GetObjects <txtComments>(temp, commentType);

            commentnodes.ForEach(node => {
                node.StartLine   = Helper.GetPosition(code, node.Code) + startLine;
                node.CommentType = nodeType;
            });
            return(commentnodes);
        }
Ejemplo n.º 2
0
 public CommentNode(CommentNodeType type, int valueIndex)
 {
     Type       = type;
     ValueIndex = valueIndex;
 }