Community
Participate
Working Groups
Created attachment 93780 [details] Patch as discussed in email with phil berkland: for our refactoring support plug-in we need the sourceEnd information in the MethodDeclaration node.
Patch applied, thank you for your contribution.
Created attachment 95183 [details] patch to solve MISSING simple name bug
description of the problem: An assignment with a unnamed function on the right side of the "=", this case can't be handled by the AST. An unknown SimpleName must be named as "" instead of "MISSING". The following code can't be handled by the AST: function f1() { this.x = function() { ... }; } The result without this patch: function f1() { this.x = function MISSING() { ... }; }
The correct thing to to is set the function name to null (instead of an empty SimpleName). When SimpleName is used, it's name is always mandatory.