| Summary: | [content assist] field not detected when assigned to argument in invoked function literal | ||
|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Kir <sowingsadness> |
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Chris Jaun <cmjaun> |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 3.5.1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Javascript IDE Feature 1.3.2.20110218-0812 org.eclipse.epp.package.javascript.feature.feature.group bug reproduce for: Eclipse IDE for JavaScript Web Developers. Version: Indigo Release Build id: 20110615-0604 JavaScript Development Tools Version: 1.3.0.v201103031824-7F78FXPFBBoPbXRIcIgs0z0 Build id: 20110527214303 and additional info:
Code:
1. function ScopeTestObj () {
2. this.string_field = 'string_field';
3. }
4. var Scope = new ScopeTestObj();
5.
6. (function ( MyScope ) { //DELETE Assignment
7. MyScope.function_field = function () {
8. return 'function_field';
9. };
10. //DELETE RETURN
11. })(Scope);
12.
13. var newStringFfield = Scope.string_field;
14. var newFunctionField = Scope.function_field();
line 14 - same error
Works in WTP 3.5.1. |
Build Identifier: 20110218-0911 Code: 1. function ScopeTestObj () { 2. this.string_field = 'string_field'; 3. } 4. var Scope = new ScopeTestObj(); 5. 6. Scope = (function ( MyScope ) { 7. MyScope.function_field = function () { 8. return 'function_field'; 9. }; 10. return MyScope; 11. })(Scope); 12. 13. var newStringFfield = Scope.string_field; 14. var newFunctionField = Scope.function_field(); Reproducible: Always Steps to Reproduce: http://habreffect.ru/files/937/b20c149b9/eclipse_wst_error.png Line 14 - error: function function_field is undefined it can be any type of field.