Add .fromSource() qualifier to tests

This commit is contained in:
Chris Smowton
2021-10-27 11:03:33 +01:00
committed by Ian Lynagh
parent 3cb68bd7be
commit 070c0a03f4
14 changed files with 9 additions and 46810 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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

View File

@@ -1,5 +1,6 @@
import java
from Interface i
where i.fromSource()
select i

File diff suppressed because it is too large Load Diff

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -31,5 +31,6 @@ MaybeExpr initializer(Variable v) {
}
from Variable v
where v.fromSource()
select v, v.getType(), initializer(v)