Closed
Bug 771003
Opened 12 years ago
Closed 3 years ago
JavaScript function search
Categories
(Webtools Graveyard :: DXR, enhancement)
Webtools Graveyard
DXR
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.
Comment 1•12 years ago
|
||
This will require js static analysis, which is a future goal.
Comment 2•12 years ago
|
||
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
Comment 3•12 years ago
|
||
Gah. Ignore last comment. I just meant to change the bug title.
Comment 4•10 years ago
|
||
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. :-)
Updated•10 years ago
|
Summary: Call out JavaScript function definitions separately → JavaScript function search
Comment 5•8 years ago
|
||
Landed with https://github.com/mozilla/dxr/pull/546. See https://dxr.mozilla.org/mozilla-central/search?q=id%3AopenUILinkIn
Comment 6•8 years ago
|
||
Though we don't really provide a function-only (vs. var) search yet, right?
Comment 7•8 years ago
|
||
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).
Comment 8•3 years ago
|
||
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
Updated•3 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•