1111 * `namespace; type; subtypes; name; signature; ext; input; kind; provenance`
1212 * - Summaries:
1313 * `namespace; type; subtypes; name; signature; ext; input; output; kind; provenance`
14- * - Negative Summaries :
14+ * - Neutrals :
1515 * `namespace; type; name; signature; provenance`
16- * A negative summary is used to indicate that there is no flow via a callable.
16+ * A neutral is used to indicate that there is no flow via a callable.
1717 *
1818 * The interpretation of a row is similar to API-graphs with a left-to-right
1919 * reading.
@@ -132,30 +132,12 @@ private class SummaryModelCsvInternal extends Unit {
132132 abstract predicate row ( string row ) ;
133133}
134134
135- /**
136- * DEPRECATED: Define negative summary models as data extensions instead.
137- *
138- * A unit class for adding additional negative summary model rows.
139- *
140- * Extend this class to add additional negative summary definitions.
141- */
142- deprecated class NegativeSummaryModelCsv = NegativeSummaryModelCsvInternal ;
143-
144- private class NegativeSummaryModelCsvInternal extends Unit {
145- /** Holds if `row` specifies a negative summary definition. */
146- abstract predicate row ( string row ) ;
147- }
148-
149135private predicate sourceModelInternal ( string row ) { any ( SourceModelCsvInternal s ) .row ( row ) }
150136
151137private predicate summaryModelInternal ( string row ) { any ( SummaryModelCsvInternal s ) .row ( row ) }
152138
153139private predicate sinkModelInternal ( string row ) { any ( SinkModelCsvInternal s ) .row ( row ) }
154140
155- private predicate negativeSummaryModelInternal ( string row ) {
156- any ( NegativeSummaryModelCsvInternal s ) .row ( row )
157- }
158-
159141/**
160142 * Holds if a source model exists for the given parameters.
161143 */
@@ -243,25 +225,16 @@ predicate summaryModel(
243225 extSummaryModel ( namespace , type , subtypes , name , signature , ext , input , output , kind , provenance )
244226}
245227
246- /** Holds if a summary model exists indicating there is no flow for the given parameters. */
247- extensible predicate extNegativeSummaryModel (
228+ /** Holds if a model exists indicating there is no flow for the given parameters. */
229+ extensible predicate extNeutralModel (
248230 string namespace , string type , string name , string signature , string provenance
249231) ;
250232
251- /** Holds if a summary model exists indicating there is no flow for the given parameters. */
252- predicate negativeSummaryModel (
233+ /** Holds if a model exists indicating there is no flow for the given parameters. */
234+ predicate neutralModel (
253235 string namespace , string type , string name , string signature , string provenance
254236) {
255- exists ( string row |
256- negativeSummaryModelInternal ( row ) and
257- row .splitAt ( ";" , 0 ) = namespace and
258- row .splitAt ( ";" , 1 ) = type and
259- row .splitAt ( ";" , 2 ) = name and
260- row .splitAt ( ";" , 3 ) = signature and
261- row .splitAt ( ";" , 4 ) = provenance
262- )
263- or
264- extNegativeSummaryModel ( namespace , type , name , signature , provenance )
237+ extNeutralModel ( namespace , type , name , signature , provenance )
265238}
266239
267240private predicate relevantNamespace ( string namespace ) {
@@ -393,8 +366,6 @@ module ModelValidation {
393366 sinkModelInternal ( row ) and expect = 9 and pred = "sink"
394367 or
395368 summaryModelInternal ( row ) and expect = 10 and pred = "summary"
396- or
397- negativeSummaryModelInternal ( row ) and expect = 5 and pred = "negative summary"
398369 |
399370 exists ( int cols |
400371 cols = 1 + max ( int n | exists ( row .splitAt ( ";" , n ) ) ) and
@@ -418,9 +389,9 @@ module ModelValidation {
418389 summaryModel ( namespace , type , _, name , signature , ext , _, _, _, provenance ) and
419390 pred = "summary"
420391 or
421- negativeSummaryModel ( namespace , type , name , signature , provenance ) and
392+ neutralModel ( namespace , type , name , signature , provenance ) and
422393 ext = "" and
423- pred = "negative summary "
394+ pred = "neutral "
424395 |
425396 not namespace .regexpMatch ( "[a-zA-Z0-9_\\.]+" ) and
426397 result = "Dubious namespace \"" + namespace + "\" in " + pred + " model."
@@ -461,7 +432,7 @@ private predicate elementSpec(
461432 or
462433 summaryModel ( namespace , type , subtypes , name , signature , ext , _, _, _, _)
463434 or
464- negativeSummaryModel ( namespace , type , name , signature , _) and ext = "" and subtypes = false
435+ neutralModel ( namespace , type , name , signature , _) and ext = "" and subtypes = false
465436}
466437
467438private predicate elementSpec (
@@ -595,7 +566,7 @@ private Element interpretElement0(
595566 )
596567}
597568
598- /** Gets the source/sink/summary/negativesummary element corresponding to the supplied parameters. */
569+ /** Gets the source/sink/summary/neutral element corresponding to the supplied parameters. */
599570Element interpretElement (
600571 string namespace , string type , boolean subtypes , string name , string signature , string ext
601572) {
0 commit comments