mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Add .fromSource() qualifier to tests
This commit is contained in:
committed by
Ian Lynagh
parent
3cb68bd7be
commit
070c0a03f4
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
import java
|
||||
|
||||
from Class c
|
||||
where c.fromSource()
|
||||
select c, c.getQualifiedName()
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
import java
|
||||
|
||||
from Interface i
|
||||
where i.fromSource()
|
||||
select i
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
import java
|
||||
|
||||
from Class c
|
||||
where c.fromSource()
|
||||
select c, c.getASupertype()
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
import java
|
||||
|
||||
query predicate methods(Method m) { any() }
|
||||
query predicate methods(Method m) { m.fromSource() }
|
||||
|
||||
query predicate constructors(Constructor c) { any() }
|
||||
query predicate constructors(Constructor c) { c.fromSource() }
|
||||
|
||||
query predicate extensions(ExtensionMethod m, Type t) { m.getExtendedType() = t }
|
||||
query predicate extensions(ExtensionMethod m, Type t) { m.getExtendedType() = t and m.fromSource() }
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2,4 +2,5 @@ import java
|
||||
|
||||
from Method m, Parameter p, int i
|
||||
where m.getParameter(i) = p
|
||||
and m.fromSource()
|
||||
select m, p, i
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
import java
|
||||
|
||||
from Class c
|
||||
where c.fromSource()
|
||||
select c, c.getQualifiedName()
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -31,5 +31,6 @@ MaybeExpr initializer(Variable v) {
|
||||
}
|
||||
|
||||
from Variable v
|
||||
where v.fromSource()
|
||||
select v, v.getType(), initializer(v)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user