private void CheckIfGenerated(CommentBase commentBase)
        {
            string text = commentBase.Text;

            if (StringUtil.ContainsIgnoreCase(text, "<auto-generated>") || StringUtil.ContainsIgnoreCase(text, "do not edit"))
            {
                IsGenerated = true;
            }
        }
 /// <summary>
 /// Determine if the specified comment should be associated with the current code object during parsing.
 /// </summary>
 public override bool AssociateCommentWhenParsing(CommentBase comment)
 {
     return(true);
 }
 /// <summary>
 /// Determine if the specified comment should be associated with the current code object during parsing.
 /// </summary>
 public override bool AssociateCommentWhenParsing(CommentBase comment)
 {
     // Only associate regular comments with compiler directives, not doc comments
     return(comment is Comment);
 }
Exemple #4
0
 /// <summary>
 /// Determine if the specified comment should be associated with the current code object during parsing.
 /// </summary>
 public override bool AssociateCommentWhenParsing(CommentBase comment)
 {
     // Only associate regular comments with expressions, not doc comments
     return(comment is Comment);
 }
Exemple #5
0
 /// <summary>
 /// Determine if the specified comment should be associated with the current code object during parsing.
 /// </summary>
 public override bool AssociateCommentWhenParsing(CommentBase comment)
 {
     // Only associate regular comments with statements by default, not doc comments
     // (this will be overridden for TypeDecls and type member decls).
     return(comment is Comment);
 }