| Summary: | "Change Method Signature" refactoring support | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Technology] DLTK | Reporter: | Vladislav Kuzkokov <vladislav.kuzkokov> | ||||||||||||||||
| Component: | JavaScript | Assignee: | dltk.common-inbox <dltk.common-inbox> | ||||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||||||
| Severity: | normal | ||||||||||||||||||
| Priority: | P3 | CC: | alex.panchenko | ||||||||||||||||
| Version: | unspecified | ||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||
| Hardware: | All | ||||||||||||||||||
| OS: | All | ||||||||||||||||||
| Whiteboard: | |||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Vladislav Kuzkokov
Created attachment 183195 [details]
implementation
Created attachment 183205 [details]
fixed
committed the patch. Thanks! Created attachment 183906 [details]
support for renaming methods (functions which are properties)
Renaming for methods is needed:
var obj = {
// declaration
id : function(x) { return x }
}
// reference
obj.id(7)
Committed. Thank you Created attachment 184141 [details]
fixes to some issues
Didn't work if function had 0 parameters.
Didn't work when parameters are both added and removed.
Better indentation handling.
Created attachment 184152 [details]
support for one more declaration type
Declarations of
var x = function() {}
kind are supported with this patch.
Created attachment 184154 [details]
support for two more declaration types
Declarations of
var x = function() {}
this.x = function() {}
kinds are supported with this patch.
Created attachment 188589 [details]
fix
didn't add comma in case
function f() { }
becoming:
function f(s,t) { }
same thing with newline between statements in other refactorings.
|