Skip to content

Commit c2c9780

Browse files
committed
C#: rename XmlComment to XmlCommentLine to avoid naming conflict
1 parent 95a9e44 commit c2c9780

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csharp/ql/lib/semmle/code/csharp/Comments.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Location
1111
/**
1212
* A single line of comment.
1313
*
14-
* Either a single line comment (`SinglelineComment`), an XML comment (`XmlComment`),
14+
* Either a single line comment (`SinglelineComment`), an XML comment (`XmlCommentLine`),
1515
* or a line in a multi-line comment (`MultilineComment`).
1616
*/
1717
class CommentLine extends @commentline {
@@ -66,7 +66,7 @@ class MultilineComment extends CommentLine, @multilinecomment {
6666
* /// </summary>
6767
* ```
6868
*/
69-
class XmlComment extends CommentLine, @xmldoccomment {
69+
class XmlCommentLine extends CommentLine, @xmldoccomment {
7070
override string toString() { result = "/// ..." }
7171

7272
private string xmlAttributeRegex() {
@@ -196,7 +196,7 @@ class CommentBlock extends @commentblock {
196196

197197
/** Holds if this block consists entirely of XML comments. */
198198
predicate isXmlCommentBlock() {
199-
forall(CommentLine l | l = getAChild() | l instanceof XmlComment)
199+
forall(CommentLine l | l = getAChild() | l instanceof XmlCommentLine)
200200
}
201201

202202
/** Gets a `CommentLine` containing text. */

0 commit comments

Comments
 (0)