Update allVariablesInCallFrame and allVariablesAtPosition in
NamesResolver to resolve variable mappings from source map scopes
when devToolsSourceMapScopesInSourcesPanel is enabled:
- Delegate to SourceMap.resolveMappedVariablesAtPosition (awaiting
pending source map loads via sourceMapForClientPromise), passing
ignoreInnerBlockScopes when paused on a return statement and caching
the result on the CallFrame.
- Fall back to the existing AST and source map mappings resolver
when scope variables or bindings are unavailable.
R=alexrudenko@chromium.org
Bug: 368222773
Change-Id: Iaed2a2f3ac357f7de1e46a472db90951e57f15ca
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/8439378
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>