Another Structural Search Question

Hi,

I'm trying to use Structural Search to find certain methods that
don't contain a specific statement yet.

Something like this:

Response createResponse() {
// arbitrary statements here
prepareResponse(response, arg2);
// more statements here
}

I want to find all createResponse methods that do not call
prepareResponse.

I tried different approaches but none of them were successfully.
Any ideas?

Thanks,
Sascha

1 comment
Comment actions Permalink

Hi,

This is not possible right now directly.
We can find such methods and search for prepareResponse in search
results (there is little bug with it so it will work properly in next
build :)
I will post update on this subject when the support will be available.

Sascha Weinreuter wrote:

Hi,

I'm trying to use Structural Search to find certain methods that
don't contain a specific statement yet.

Something like this:

Response createResponse() {
// arbitrary statements here
prepareResponse(response, arg2);
// more statements here
}

I want to find all createResponse methods that do not call
prepareResponse.

I tried different approaches but none of them were successfully.
Any ideas?

Thanks,
Sascha



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.