Closed Bug 771003 Opened 12 years ago Closed 3 years ago

JavaScript function search

Categories

(Webtools Graveyard :: DXR, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: MattN, Unassigned)

References

()

Details

(Whiteboard: mxr-parity)

On MXR an identifier search includes JavaScript files and the definition of a function with that identifier will show in the section "Defined as a function in:" (see URL for example).  This makes it really easy to find the definition because I don't have to wade through the other results.
This will require js static analysis, which is a future goal.
Started putting JS static analysis into my head the other day. Because JS is so dynamic, the state of the art would give us a probabilistic statement of
Summary: Ability to find the definition of a JavaScript function → Call out JavaScript function definitions separately
Gah. Ignore last comment. I just meant to change the bug title.
Some basic JS analysis plus https://wiki.mozilla.org/DXR_Result_Mixing should take care of this. It's still a very early sketch, but have a look and scream if it doesn't solve your use case. :-)
Summary: Call out JavaScript function definitions separately → JavaScript function search
Though we don't really provide a function-only (vs. var) search yet, right?
Right, it does not currently track the distinction between "var foo = 3;" and "var foo = function() {};" if they're in the same scope (or both in global scope).

DXR is no longer available. Searchfox is now replacing it.
See meta bug 1669906 & https://groups.google.com/g/mozilla.dev.platform/c/jDRjrq3l-CY for more details.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.