@@ -160,7 +160,7 @@ predicate modelCoverage(string namespace, int namespaces, string kind, string pa
160
160
/** Provides a query predicate to check the MaD models for validation errors. */
161
161
module ModelValidation {
162
162
private string getInvalidModelInput ( ) {
163
- exists ( string pred , AccessPath input , string part |
163
+ exists ( string pred , AccessPath input , AccessPathToken part |
164
164
sinkModel ( _, _, _, _, _, _, input , _, _) and pred = "sink"
165
165
or
166
166
summaryModel ( _, _, _, _, _, _, input , _, _, _) and pred = "summary"
@@ -169,7 +169,8 @@ module ModelValidation {
169
169
invalidSpecComponent ( input , part ) and
170
170
not part = "" and
171
171
not ( part = "Argument" and pred = "sink" ) and
172
- not parseArg ( part , _)
172
+ not parseArg ( part , _) and
173
+ not part .getName ( ) = [ "Field" , "Property" ]
173
174
or
174
175
part = input .getToken ( _) and
175
176
parseParam ( part , _)
@@ -181,15 +182,16 @@ module ModelValidation {
181
182
}
182
183
183
184
private string getInvalidModelOutput ( ) {
184
- exists ( string pred , string output , string part |
185
+ exists ( string pred , AccessPath output , AccessPathToken part |
185
186
sourceModel ( _, _, _, _, _, _, output , _, _) and pred = "source"
186
187
or
187
188
summaryModel ( _, _, _, _, _, _, _, output , _, _) and pred = "summary"
188
189
|
189
190
(
190
191
invalidSpecComponent ( output , part ) and
191
192
not part = "" and
192
- not ( part = [ "Argument" , "Parameter" ] and pred = "source" )
193
+ not ( part = [ "Argument" , "Parameter" ] and pred = "source" ) and
194
+ not part .getName ( ) = [ "Field" , "Property" ]
193
195
or
194
196
invalidIndexComponent ( output , part )
195
197
) and
0 commit comments