You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Class" kind covered both the old constructor-based style and the
new class-based style. Since the old style is indistinguishable from
a regular function definition I used casing to decide if it was
a "Class" or a "Function".
That was pretty short-sighted.
Old style constructor-based definition are now demoted to the "Function"
kind.
FWIW: old school constructor-based "class" definitions are indistinguishable from plain function definition except for the convention of starting the name with an uppercase character. That's what lead me to that short-sighted casing restriction. Now, old school "class" definitions are just considered as functions.
In the regex for function definitions (specifically looked at arrow functions but could also apply to others, didn't look):
Why does the first character of the function need to be lower cased? I specifically have a React component definition:
This definition is skipped because of the capital case component function name.
The text was updated successfully, but these errors were encountered: