SSR: Find properties with Generic return types fails

See the attached screenshot. Apparently this pattern:

public ICollection<$type$> $name$ { get { $stmt$ } }

type = any type
name = identifier
stmt = any number of statements

will NOT return properties with Generic return types, so it returns:

public ICollection Keys

NOT

public ICollection<int> Keys

I really wish SSR would actually start living up to it's potential. It's kindof silly that when I want to do multiline replacement, or sophisticated search and replace, I have revert to Notepad++ (cuz VS.NET certainly doesn't make it easy with its weird regex and funky wildcard behavior).

Anybody have some SSR-foo for me to try?

Opened a bug:
http://youtrack.jetbrains.net/issue/RSRP-274800 Structural Search fails to return properties with Generic return types



Attachment(s):
SSR_2011-08-09_19-51-59.png
1 comment

Hello,

There are some known problems with type parameters in SSR and this is one
of them. We'll do our best to fix it soon. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

See the attached screenshot. Apparently this pattern:

public ICollection<$type$> $name$ { get { $stmt$ } }

type = any type
name = identifier
stmt = any number of statements
will NOT return properties with Generic return types, so it returns:

public ICollection Keys

NOT

public ICollection<int> Keys

I really wish SSR would actually start living up to it's potential.
It's kindof silly that when I want to do multiline replacement, or
sophisticated search and replace, I have revert to Notepad++ (cuz
VS.NET certainly doesn't make it easy with its weird regex and funky
wildcard behavior).

Anybody have some SSR-foo for me to try?

Opened a bug:
http://youtrack.jetbrains.net/issue/RSRP-274800 Structural Search
fails to return properties with Generic return types
---
Original message URL:
http://devnet.jetbrains.net/message/5316440#5316440



0

Please sign in to leave a comment.