- Notifications
You must be signed in to change notification settings - Fork1.7k
-
I just saw the developer preview for Rust and wanted to try it out. I'm trying to find all calls to pubfnname_length(name:String) ->usize{ name.len()} I expected it to work like this but there is no method for accessing the type information. import rustfromMethodCallExprcallwherecall.getIdentifier().toString()="len"andcall.getReceiver().getType().toString()="String"selectcall From looking at the AST it seems I could get the |
BetaWas this translation helpful?Give feedback.
All reactions
Type information is currently not exposed in the public API, since we still haven't decided what that API should look like.
In the meantime, you can use the following:
fromMethodCallExprcallwherecall.getStaticTarget().getCanonicalPath()="<core::str>::len"selectcall
Replies: 1 comment
-
Type information is currently not exposed in the public API, since we still haven't decided what that API should look like. In the meantime, you can use the following: fromMethodCallExprcallwherecall.getStaticTarget().getCanonicalPath()="<core::str>::len"selectcall |
BetaWas this translation helpful?Give feedback.