mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Make support for generated as a part of kind.
This commit is contained in:
@@ -41,7 +41,7 @@ private class CallableToTest extends Callable {
|
||||
exists(
|
||||
string namespace, string type, boolean subtypes, string name, string signature, string ext
|
||||
|
|
||||
summaryModel(namespace, type, subtypes, name, signature, ext, _, _, _) and
|
||||
summaryModel(namespace, type, subtypes, name, signature, ext, _, _, _, _) and
|
||||
this = interpretElement(namespace, type, subtypes, name, signature, ext) and
|
||||
this.isPublic() and
|
||||
getRootType(this.getDeclaringType()).(RefType).isPublic()
|
||||
@@ -64,7 +64,8 @@ private newtype TTestCase =
|
||||
string inputSpec, string outputSpec
|
||||
|
|
||||
any(TargetSummaryModelCsv tsmc).row(row) and
|
||||
summaryModel(namespace, type, subtypes, name, signature, ext, inputSpec, outputSpec, kind, row) and
|
||||
summaryModel(namespace, type, subtypes, name, signature, ext, inputSpec, outputSpec, kind,
|
||||
false, row) and
|
||||
callable = interpretElement(namespace, type, subtypes, name, signature, ext) and
|
||||
Private::External::interpretSpec(inputSpec, input) and
|
||||
Private::External::interpretSpec(outputSpec, output)
|
||||
|
||||
@@ -21,25 +21,25 @@ query string getAParseFailure(string reason) {
|
||||
any(TargetSummaryModelCsv target).row(result) and
|
||||
any(SummaryModelCsv model).row(result) and
|
||||
(
|
||||
not summaryModel(_, _, _, _, _, _, _, _, _, result) and
|
||||
not summaryModel(_, _, _, _, _, _, _, _, _, _, result) and
|
||||
reason = "row could not be parsed"
|
||||
or
|
||||
exists(
|
||||
string namespace, string type, boolean subtypes, string name, string signature, string ext
|
||||
|
|
||||
summaryModel(namespace, type, subtypes, name, signature, ext, _, _, _, result) and
|
||||
summaryModel(namespace, type, subtypes, name, signature, ext, _, _, _, _, result) and
|
||||
not interpretElement(namespace, type, subtypes, name, signature, ext) instanceof Callable and
|
||||
reason = "callable could not be resolved"
|
||||
)
|
||||
or
|
||||
exists(string inputSpec |
|
||||
summaryModel(_, _, _, _, _, _, inputSpec, _, _, result) and
|
||||
summaryModel(_, _, _, _, _, _, inputSpec, _, _, _, result) and
|
||||
not Private::External::interpretSpec(inputSpec, _) and
|
||||
reason = "input spec could not be parsed"
|
||||
)
|
||||
or
|
||||
exists(string outputSpec |
|
||||
summaryModel(_, _, _, _, _, _, _, outputSpec, _, result) and
|
||||
summaryModel(_, _, _, _, _, _, _, outputSpec, _, _, result) and
|
||||
not Private::External::interpretSpec(outputSpec, _) and
|
||||
reason = "output spec could not be parsed"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user