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:
Colomban Wendling 2012-09-25 16:47:00 +02:00
parent 5df551b1ce
commit bf233bc055

View File

@ -1387,7 +1387,9 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class)
* var z = {};
*/
has_methods = parseMethods(token, name);
if ( ! has_methods )
if (has_methods)
makeJsTag (name, JSTAG_CLASS);
else
{
/*
* Only create variables for global scope