mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
This refactors the editor location done in the `UISourceCodeFrame`
via the `Transformer` in the following ways to make it more robust,
preparing for hooking up the WebAssembly disassembly here as well:
1. Remove the duplicate `Transformer` typedef.
2. Turn the `Transformer` typedef into a proper interface and have
`SourceFrameImpl` implement it.
3. Rename the `Transformer` methods to make sense and adjust the
return type to an object with meaningful field names, rather than
an ad-hoc array with two elements.
Bug: chromium:1056632
Change-Id: I3d08b54dab3a04a8595e3a498127f9f91d686694
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2220091
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
28 lines
885 B
JavaScript
28 lines
885 B
JavaScript
// Copyright 2019 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import * as BinaryResourceViewFactory from './BinaryResourceViewFactory.js';
|
|
import * as FontView from './FontView.js';
|
|
import * as ImageView from './ImageView.js';
|
|
import * as JSONView from './JSONView.js';
|
|
import * as PreviewFactory from './PreviewFactory.js';
|
|
import * as ResourceSourceFrame from './ResourceSourceFrame.js';
|
|
import * as SourceCodeDiff from './SourceCodeDiff.js';
|
|
import * as SourceFrame from './SourceFrame.js';
|
|
import * as SourcesTextEditor from './SourcesTextEditor.js';
|
|
import * as XMLView from './XMLView.js';
|
|
|
|
export {
|
|
BinaryResourceViewFactory,
|
|
FontView,
|
|
ImageView,
|
|
JSONView,
|
|
PreviewFactory,
|
|
ResourceSourceFrame,
|
|
SourceCodeDiff,
|
|
SourceFrame,
|
|
SourcesTextEditor,
|
|
XMLView,
|
|
};
|