JavaScript parser: create class tag for variable with children methods
If we generated methods, properties or class children tags for a variable, generate a class tag for the variable itself so the children aren't orphaned.
This commit is contained in:
parent
5df551b1ce
commit
bf233bc055
@ -1387,7 +1387,9 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class)
|
|||||||
* var z = {};
|
* var z = {};
|
||||||
*/
|
*/
|
||||||
has_methods = parseMethods(token, name);
|
has_methods = parseMethods(token, name);
|
||||||
if ( ! has_methods )
|
if (has_methods)
|
||||||
|
makeJsTag (name, JSTAG_CLASS);
|
||||||
|
else
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Only create variables for global scope
|
* Only create variables for global scope
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user