Migrate from the parser worker `findBestMatchExpression` to use lezer for matching expressions
Categories
(DevTools :: Debugger, enhancement)
Tracking
(firefox135 fixed)
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: bomsy, Assigned: bomsy)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
|
Bug 1874656 - [devtools] Migrate to using lezer for find best match expression r=#devtools-reviewers
48 bytes,
text/x-phabricator-request
|
Details | Review |
To find the matching expression for a token position the preview uses findBestMatchExpression on the parserWorker https://searchfox.org/mozilla-central/rev/f465027ef4d334dbc9ad270718c8a5e8045e7a2b/devtools/client/debugger/src/actions/preview.js#29-32.
It falls back to getExpressionFromCoords https://searchfox.org/mozilla-central/rev/f465027ef4d334dbc9ad270718c8a5e8045e7a2b/devtools/client/debugger/src/actions/preview.js#36 which uses the codemirror api to match the expressions.
Lets try to move from using parserWorker.findBestMatchExpression to a utility based on the lezer parser which should give some performance.wins.
| Assignee | ||
Comment 1•1 year ago
|
||
Depends on D197907
Updated•1 year ago
|
| Assignee | ||
Updated•11 months ago
|
| Assignee | ||
Updated•11 months ago
|
| Assignee | ||
Comment 2•11 months ago
|
||
Updated•11 months ago
|
Updated•11 months ago
|
| Assignee | ||
Comment 5•9 months ago
|
||
Comment 6•9 months ago
|
||
Comment on attachment 9459085 [details]
WIP: Bug 1874656 - [devtools] Fix matching the wrong value in the member expression
Revision D234011 was moved to bug 1941269. Setting attachment 9459085 [details] to obsolete.
Description
•