/// <summary> /// Returns the comments after the given vhdl element. /// </summary> /// <param name="element">the vhdl element</param> /// <returns>a list of line comments</returns> public static List <string> GetCommentsAfter(VhdlElement element) { CommentAnnotationAfter annotation = Annotations.getAnnotation <CommentAnnotationAfter>(element); if (annotation == null) { return(new List <string>()); } else { return(annotation.getComments()); } }
/// <summary> /// Sets the comments after a vhdl element. /// </summary> /// <param name="element">the vhdl element</param> /// <param name="comments">a list of line comments</param> public static void SetCommentsAfter(VhdlElement element, List <string> comments) { CommentAnnotationAfter annotation = new CommentAnnotationAfter(comments); Annotations.putAnnotation(element, annotation); }