Bug 447947

Summary: Javascript parser does not understand functions declared with this.function_name
Product: [Applications] kdevelop Reporter: Mark Greenwood <fatgerman>
Component: Language Support: QML/JavaScriptAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.7.211200   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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