This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Handling shorthand property names | ||
---|---|---|---|
Product: | javascript | Reporter: | Petr Pisl <ppisl> |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | TASK | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 242387 | ||
Attachments: |
Object Initializer - shorthand property names
Object Initializer - shorthand method names Object Initializer - computed property names |
Description
Petr Pisl
2016-03-31 13:39:19 UTC
Created attachment 159070 [details]
Object Initializer - shorthand property names
The property of such literal object is a reference to the original object. So mark occurrences marks all occurrences of the property name and the original variable together. Also, when a new property or method is added to the object literal property or to the original variable, then the property is shared between the object literal property and variable -> mark occurrences works, code completion offers same properties for both objects etc.
Created attachment 159071 [details]
Object Initializer - shorthand method names
NetBeans are able now handle short way of writing methods of an object literals.
Created attachment 159072 [details]
Object Initializer - computed property names
NetBeans now handle computed properties names in the right way.
Comment on attachment 159072 [details]
Object Initializer - computed property names
The computed properties names are not in the model, so are not displayed in navigator, code completion is not able to offer them.
|