Project
ReSharper
Priority
Major
Type
Bug
Fix versions
4.5
State
Obsolete
Assignee
Sergey Shkredov
Subsystem
Live templates
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Valentin Kipiatkov
    5 years ago (12 Dec 2006 15:47)
  • Updated by   Valentin Kipiatkov
    3 years ago (25 Sep 2008 21:48)
  • Jira: RSRP-33282
    (history, comments)
 
RSRP-33282 [326] Suggest parameter of type
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
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

Issue was closed
Comments (2)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Ilya Ryzhenkov
  Ilya Ryzhenkov
14 Dec 2006 19:20
5 years ago
Could you please export template you created and attach it to this issue? I cannot reproduce the problem.
Ilya Ryzhenkov
  Ilya Ryzhenkov
15 Dec 2006 15:47
5 years ago
OneReferenceResolver.GetSymbolTable doesn't work on token COMMA, seems very similar to previous case with parenthesis.