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); }
public CommentNode(CommentNodeType type, int valueIndex) { Type = type; ValueIndex = valueIndex; }