Bug 447947 - Javascript parser does not understand functions declared with this.function_name
Summary: Javascript parser does not understand functions declared with this.function_name
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: QML/JavaScript (other bugs)
Version First Reported In: 5.7.211200
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-04 21:15 UTC by Mark Greenwood
Modified: 2022-01-04 21:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Greenwood 2022-01-04 21:15:46 UTC
SUMMARY
***
Javascript 'objects' can be defined as functions with methods declared using 'this' - eg
function my_function() {
    this.some_method = function() {
        do_some_stuff
    }
}
***


STEPS TO REPRODUCE
1.  Define a function as such and then hover over the function declared with 'this.some_method()'

OBSERVED RESULT
Nothing happens, even after reparsing the entire project

EXPECTED RESULT
The code navigation popup should appear, showing all calls to that method

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro ARM-RPi
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION