Closed Bug 1874656 Opened 1 year ago Closed 10 months ago

Migrate from the parser worker `findBestMatchExpression` to use lezer for matching expressions

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
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)

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: nobody → hmanilla
Attachment #9372794 - Attachment description: WIP: Bug 1874656 - [devtools] Test using getExpressionFromCoords by default → Bug 1874656 - [devtools] Move from using parserWorker.findBestMatchExpression to getExpressionFromCoords r=#devtools-reviewers
Status: NEW → ASSIGNED
Blocks: 1874698
No longer blocks: 1843454
Depends on: 1932346
Summary: Migrate from the parser worker `findBestMatchExpression` to `getExpressionFromCoords` for matching expressions → Migrate from the parser worker `findBestMatchExpression` to use lezer for matching expressions
Attachment #9439663 - Attachment description: WIP: Bug 1874656 - [devtools] Migrate to using lezer for find best match expression → Bug 1874656 - [devtools] Migrate to using lezer for find best match expression r=#devtools-reviewers
Attachment #9372794 - Attachment is obsolete: true
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f1af43b9ecb9 [devtools] Migrate to using lezer for find best match expression r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Regressions: 1937149
Regressions: 1941269

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.

Attachment #9459085 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: