-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rust: Make SummarizedCallable
extend Function
instead of string
#19268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -1017,3 +1017,26 @@ | |||
* Gets a type that `n` infers to, if any. | |||
*/ | |||
Type inferType(AstNode n) { result = inferType(n, TypePath::nil()) } | |||
|
|||
/** Provides predicates for debugging the type inference implementation. */ | |||
private module Debug { |
Check warning
Code scanning / CodeQL
Dead code Warning
/** Provides predicates for debugging the type inference implementation. */ | ||
private module Debug { | ||
private Locatable getRelevantLocatable() { | ||
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable Warning
in this argument
/** Provides predicates for debugging the type inference implementation. */ | ||
private module Debug { | ||
private Locatable getRelevantLocatable() { | ||
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable Warning
in this argument
/** Provides predicates for debugging the type inference implementation. */ | ||
private module Debug { | ||
private Locatable getRelevantLocatable() { | ||
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn | |
Check warning
Code scanning / CodeQL
Omittable 'exists' variable Warning
in this argument
86ccc96
to
a91cc6b
Compare
d8b7085
to
10a72f7
Compare
9b1cd94
to
2a2e7d5
Compare
e0a2c1d
to
dc9700e
Compare
dc9700e
to
4224947
Compare
b0991ad
to
c29c5f9
Compare
c1959ca
to
73c4919
Compare
c79d3a9
to
afa16ea
Compare
afa16ea
to
58cd7b0
Compare
This PR changes the base class of
SummarizedCallable
fromstring
toFunction
, thereby reusing the existing function entities already extracted instead of synthesizing new entities.This is a big step towards using QL computed canonical paths in models-as-data instead of using extractor provided canonical paths.
A lot of preliminary PRs mean that we mostly retain results, however as witnessed by the tests, we still lose some results. This is largely because:
impl<T> Foo for T
.Deref
s in type inference.