@@ -147,30 +147,60 @@ class LDAPEscape extends DataFlow::Node {
147147 DataFlow:: Node getAnInput ( ) { result = range .getAnInput ( ) }
148148}
149149
150+ /** Provides a class for modeling NoSQL execution APIs. */
150151module NoSQLQuery {
152+ /**
153+ * A data-flow node that executes NoSQL queries.
154+ *
155+ * Extend this class to model new APIs. If you want to refine existing API models,
156+ * extend `NoSQLQuery` instead.
157+ */
151158 abstract class Range extends DataFlow:: Node {
159+ /** Gets the argument that specifies the NoSQL query to be executed. */
152160 abstract DataFlow:: Node getQuery ( ) ;
153161 }
154162}
155163
164+ /**
165+ * A data-flow node that executes NoSQL queries.
166+ *
167+ * Extend this class to refine existing API models. If you want to model new APIs,
168+ * extend `NoSQLQuery::Range` instead.
169+ */
156170class NoSQLQuery extends DataFlow:: Node {
157171 NoSQLQuery:: Range range ;
158172
159173 NoSQLQuery ( ) { this = range }
160174
175+ /** Gets the argument that specifies the NoSQL query to be executed. */
161176 DataFlow:: Node getQuery ( ) { result = range .getQuery ( ) }
162177}
163178
179+ /** Provides classes for modeling NoSQL sanitization-related APIs. */
164180module NoSQLSanitizer {
181+ /**
182+ * A data-flow node that collects functions sanitizing NoSQL queries.
183+ *
184+ * Extend this class to model new APIs. If you want to refine existing API models,
185+ * extend `NoSQLSanitizer` instead.
186+ */
165187 abstract class Range extends DataFlow:: Node {
188+ /** Gets the argument that specifies the NoSQL query to be sanitized. */
166189 abstract DataFlow:: Node getAnInput ( ) ;
167190 }
168191}
169192
193+ /**
194+ * A data-flow node that collects functions sanitizing NoSQL queries.
195+ *
196+ * Extend this class to model new APIs. If you want to refine existing API models,
197+ * extend `NoSQLSanitizer::Range` instead.
198+ */
170199class NoSQLSanitizer extends DataFlow:: Node {
171200 NoSQLSanitizer:: Range range ;
172201
173202 NoSQLSanitizer ( ) { this = range }
174203
204+ /** Gets the argument that specifies the NoSQL query to be sanitized. */
175205 DataFlow:: Node getAnInput ( ) { result = range .getAnInput ( ) }
176206}
0 commit comments