8 comments
Comment actions Permalink

On 2/2/2011 10:20 PM, G. Richard Bellamy wrote:

See the attached screenshot. Says it all.

>

Anybody have some magic for me, or should I report it as a bug?

>

---
Original message URL: http://devnet.jetbrains.net/message/5285291#5285291


Hi,

What R# version are you using? I can't reproduce this with the latest
release build.

--
--
Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

JetBrains ReSharper 5.1 Full Edition
Build 5.1.3000.12 on 2011-01-28T05:05:56



I just tried again, and this is still a problem for me.
0
Comment actions Permalink

Hi,

what do you want to find with this pattern? I guess, extensions methods, right?
You could add some details, which help pattern parser understand what do you mean.

For example: void $method$(this $type$ instance) { $stmt$ }
Here: $method$ - Identifier placeholder
$type$ - Type placeholder, not Expression, because it's invalid in such position
$stmt$ - any number of statements

Such pattern in 5.1 will find all methods with single parameter, but it's fixed now in 6.0.

0
Comment actions Permalink

Thank you for the improved syntax, that's working well.

Based on your comment, it's the "$exp$" expression that is causing the error in my syntax, yes?

0
Comment actions Permalink

Yes. In that position only type references are allowed, not expressions.

0
Comment actions Permalink

Okay, to hijack my own thread ->

Here's a pattern that should return all constructors with at least one argument, but instead barks at me about "Can not parse pattern." HELP! :)

-rb



Attachment(s):
Search with Pattern_2011-04-11_07-53-29.png
0
Comment actions Permalink

Searching for type members is not yet fully supported in ReSharper 5, there will be improvements in this area in version 6.

0
Comment actions Permalink

Okay, so it's another, more general instance of your previous answer - I suspected as much, which is why I added to this thread.

Thanks for the update.

-rb

0

Please sign in to leave a comment.