@@ -140,19 +140,14 @@ private class SummarizedCallableFromModel extends SummarizedCallable::Range {
140140 |
141141 this = f and
142142 isExact_ = true and
143- p_ = p and
144- // Do not apply generated models where there is a neutral model
145- not (
146- p_ .isGenerated ( ) and
147- neutralModel ( path , "summary" , _, _)
148- )
143+ p_ = p
149144 or
150145 this .implements ( f ) and
151146 isExact_ = false and
152147 // making inherited models generated means that source code definitions and
153148 // exact generated models take precedence
154149 p_ = "hq-generated" and
155- // Do not apply inherited models where there is a neutral model
150+ // Do not apply inherited models (which are considered generated) where there is a neutral model
156151 not neutralModel ( path , "summary" , _, _)
157152 )
158153 }
@@ -183,6 +178,7 @@ private class FlowSourceFromModel extends FlowSource::Range {
183178 model = "MaD:" + madId .toString ( )
184179 ) and
185180 // Only apply generated models when no neutral model exists
181+ // (the shared code only applies neutral models to summaries at present)
186182 not (
187183 provenance .isGenerated ( ) and
188184 neutralModel ( path , "source" , _, _)
@@ -204,6 +200,7 @@ private class FlowSinkFromModel extends FlowSink::Range {
204200 model = "MaD:" + madId .toString ( )
205201 ) and
206202 // Only apply generated models when no neutral model exists
203+ // (the shared code only applies neutral models to summaries at present)
207204 not (
208205 provenance .isGenerated ( ) and
209206 neutralModel ( path , "sink" , _, _)
0 commit comments