@@ -61,13 +61,13 @@ predicate isDocumentationNeeded(Modifiable decl) {
61
61
class ReturnsXmlComment extends XmlComment {
62
62
ReturnsXmlComment ( ) { getOpenTag ( _) = "returns" }
63
63
64
- /** Holds if the element has a body at offset `offset`. */
64
+ /** Holds if the element in this comment has a body at offset `offset`. */
65
65
predicate hasBody ( int offset ) { hasBody ( "returns" , offset ) }
66
66
67
- /** Holds if the element is an opening tag at offset `offset`. */
67
+ /** Holds if the element in this comment is an opening tag at offset `offset`. */
68
68
predicate isOpenTag ( int offset ) { "returns" = getOpenTag ( offset ) }
69
69
70
- /** Holds if the element is an empty tag at offset `offset`. */
70
+ /** Holds if the element in this comment is an empty tag at offset `offset`. */
71
71
predicate isEmptyTag ( int offset ) { "returns" = getEmptyTag ( offset ) }
72
72
}
73
73
@@ -78,7 +78,7 @@ class ExceptionXmlComment extends XmlComment {
78
78
/** Gets a `cref` attribute at offset `offset`, if any. */
79
79
string getCref ( int offset ) { result = getAttribute ( "exception" , "cref" , offset ) }
80
80
81
- /** Holds if the element has a body at offset `offset`. */
81
+ /** Holds if the element in this comment has a body at offset `offset`. */
82
82
predicate hasBody ( int offset ) { hasBody ( "exception" , offset ) }
83
83
}
84
84
@@ -89,7 +89,7 @@ class ParamXmlComment extends XmlComment {
89
89
/** Gets the name of this parameter at offset `offset`. */
90
90
string getName ( int offset ) { getAttribute ( "param" , "name" , offset ) = result }
91
91
92
- /** Holds if the element has a body at offset `offset`. */
92
+ /** Holds if the element in this comment has a body at offset `offset`. */
93
93
predicate hasBody ( int offset ) { hasBody ( "param" , offset ) }
94
94
}
95
95
@@ -100,21 +100,21 @@ class TypeparamXmlComment extends XmlComment {
100
100
/** Gets the `name` attribute of this element at offset `offset`. */
101
101
string getName ( int offset ) { getAttribute ( "typeparam" , "name" , offset ) = result }
102
102
103
- /** Holds if the element has a body at offset `offset`. */
103
+ /** Holds if the element in this comment has a body at offset `offset`. */
104
104
predicate hasBody ( int offset ) { hasBody ( "typeparam" , offset ) }
105
105
}
106
106
107
107
/** An XML comment containing a `<summary>` tag. */
108
108
class SummaryXmlComment extends XmlComment {
109
109
SummaryXmlComment ( ) { getOpenTag ( _) = "summary" }
110
110
111
- /** Holds if the element has a body at offset `offset`. */
111
+ /** Holds if the element in this comment has a body at offset `offset`. */
112
112
predicate hasBody ( int offset ) { hasBody ( "summary" , offset ) }
113
113
114
- /** Holds if the element has an open tag at offset `offset`. */
114
+ /** Holds if the element in this comment has an open tag at offset `offset`. */
115
115
predicate isOpenTag ( int offset ) { "summary" = getOpenTag ( offset ) }
116
116
117
- /** Holds if the element is empty at offset `offset`. */
117
+ /** Holds if the element in this comment is empty at offset `offset`. */
118
118
predicate isEmptyTag ( int offset ) { "summary" = getEmptyTag ( offset ) }
119
119
}
120
120
0 commit comments