Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit bf233bc05590acf2c4ac6ecdbca9f9a30b5e5662 1 parent 5df551b
@b4n b4n authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tagmanager/ctags/js.c
4 tagmanager/ctags/js.c
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.