matthiasblaesing opened a new pull request, #6249:
URL: https://github.com/apache/netbeans/pull/6249

   Consider this construct:
   
   ```javascript
     (function () {
         class Directory {
             constructor(displayName) {
                 this.displayName = displayName;
             }
         }
   
         class ImageFile{
             constructor(displayName){
               this.displayName = displayName;
             }
         }
     })();
   ```
   
   Before this change this construct was not correctly parsed and the 
constructor was not cleanly recognised, leading to missing usage marks (i.e. 
the displayName above was marked as unused).
   
   A different fallout of that problem is visible with this:
   
   ```javascript
     (function () {
         class Directory {
             constructor(displayName) {
                 this.displayName = displayName;
             }
         }
   
         class ImageFile{
             constructor(displayName){
                 this.displayName = displayName;
             }
         }
   
         function getJsonData(folderURL) {
             const body = folderURL;
         }
     })();
   ```
   
   Fixed Problems:
   
   - `constructor` from `ImageFile` is shown as a toplevel function
   - `ImageFile` is listed without its constructor and without its 
`displayName` property
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to