History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-33282
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dmitry Lomov
Reporter: Valentin Kipiatkov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

[326] Suggest parameter of type

Created: 12 Dec 06 14:47   Updated: 17 Jul 07 18:15
Component/s: Live templates
Fix Version/s: Future Versions

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 326
Old URL: news://news.intellij.net/596fcc6f0f8c8ebf05985d26e@news.jetbrains.com


 Description  « Hide
This issue has been created from an NNTP article.

Hi

How is the Suggest Parameter of Type live template macro supposed to work?

As far as I understand, it should suggest a method parameter of the given
type.

However if I specify the type as System.String, it suggests "string" instead
of a parameter name.

Example:

I expected:

public void MyMethod(string name) {
if (string.IsNullOrEmpty(name)) {
}
}

But I get:

public void MyMethod(string name) {
if (string.IsNullOrEmpty(string)) {
}
}

Best regards
Jakob Christensen



 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 14 Dec 06 18:20
Could you please export template you created and attach it to this issue? I cannot reproduce the problem.

Ilya Ryzhenkov - 15 Dec 06 14:47
OneReferenceResolver.GetSymbolTable doesn't work on token COMMA, seems very similar to previous case with parenthesis.