Skip to content

Commit d103a57

Browse files
committed
Java: Adjust the model generator to produce kinds.
1 parent bd23814 commit d103a57

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

java/ql/src/utils/modelgenerator/internal/CaptureModelsPrinting.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ module PrintingImpl<PrintingSig Printing> {
2525
+ Printing::getProvenance()
2626
}
2727

28-
string asNeutralModel(Printing::Api api) {
29-
result = asPartialNeutralModel(api) + Printing::getProvenance()
28+
string asNeutralSummaryModel(Printing::Api api) {
29+
result =
30+
asPartialNeutralModel(api) //
31+
+ "summary" + ";" //
32+
+ Printing::getProvenance()
3033
}
3134

3235
/**

java/ql/src/utils/modelgenerator/internal/CaptureSummaryFlowQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ string captureFlow(DataFlowTargetApi api) {
7878
*/
7979
string captureNoFlow(DataFlowTargetApi api) {
8080
not exists(captureFlow(api)) and
81-
result = ModelPrinting::asNeutralModel(api)
81+
result = ModelPrinting::asNeutralSummaryModel(api)
8282
}

0 commit comments

Comments
 (0)