public static SyntaxNode AddWarningComment(this SyntaxGenerator g, SyntaxNode node) { return node.AddLeadingTrivia( g.Comment("/*****************************************************************/"), g.NewLine(), g.Comment("/* WARNING! THIS CODE IS AUTOMATICALLY GENERATED. DO NOT MODIFY! */"), g.NewLine(), g.Comment("/*****************************************************************/") ); }
/// <summary> /// Creates a comment statement. /// </summary> /// <param name="comment">The text of the comment.</param> /// <returns>A comment statement.</returns> public static CodeCommentStatement CommentStatement(this string comment) { return new CodeCommentStatement(comment.Comment()); }