Skip to content

Commit e839c0c

Browse files
jackfranklinDevtools-frontend LUCI CQ
authored and
Devtools-frontend LUCI CQ
committed
Enable long import wrapping for JS imports
DISABLE_THIRD_PARTY_CHECK=big clang format run against all files in front_end and test/ Bug: 1319340 Change-Id: I1fff63cb07544ccd0e3059fc901f9a48ff4af13b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598879 Reviewed-by: Alex Rudenko <[email protected]> Commit-Queue: Jack Franklin <[email protected]> Reviewed-by: Wolfgang Beyer <[email protected]>
1 parent 4853b34 commit e839c0c

File tree

166 files changed

+1595
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+1595
-253
lines changed

.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ CommentPragmas: .*\@.*
77
AllowShortBlocksOnASingleLine: false
88
AllowShortFunctionsOnASingleLine: None
99
ReflowComments: false
10+
JavaScriptWrapImports: true

front_end/core/common/Color.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@
3333

3434
import * as Platform from '../platform/platform.js';
3535

36-
import {blendColors, contrastRatioAPCA, desiredLuminanceAPCA, luminance, luminanceAPCA, rgbaToHsla, rgbaToHwba} from './ColorUtils.js';
36+
import {
37+
blendColors,
38+
contrastRatioAPCA,
39+
desiredLuminanceAPCA,
40+
luminance,
41+
luminanceAPCA,
42+
rgbaToHsla,
43+
rgbaToHwba,
44+
} from './ColorUtils.js';
3745

3846
export class Color {
3947
#hslaInternal: number[]|undefined;

front_end/core/common/Object.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
*/
2929

3030
import type * as Platform from '../platform/platform.js';
31-
import type {EventDescriptor, EventListener, EventTarget, EventTargetEvent, EventPayloadToRestParameters} from './EventTarget.js';
31+
import type {
32+
EventDescriptor, EventListener, EventTarget, EventTargetEvent, EventPayloadToRestParameters} from './EventTarget.js';
3233

3334
export interface ListenerCallbackTuple<Events, T extends keyof Events> {
3435
thisObject?: Object;

front_end/core/common/Settings.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,19 @@ import {Format} from './Color.js';
3636
import {Console} from './Console.js';
3737
import type {GenericEvents, EventDescriptor, EventTargetEvent} from './EventTarget.js';
3838
import {ObjectWrapper} from './Object.js';
39-
import {getLocalizedSettingsCategory, getRegisteredSettings, maybeRemoveSettingExtension, type RegExpSettingItem, registerSettingExtension, registerSettingsForTest, resetSettings, SettingCategory, type SettingExtensionOption, type SettingRegistration, SettingType} from './SettingRegistration.js';
39+
import {
40+
getLocalizedSettingsCategory,
41+
getRegisteredSettings,
42+
maybeRemoveSettingExtension,
43+
type RegExpSettingItem,
44+
registerSettingExtension,
45+
registerSettingsForTest,
46+
resetSettings,
47+
SettingCategory,
48+
type SettingExtensionOption,
49+
type SettingRegistration,
50+
SettingType,
51+
} from './SettingRegistration.js';
4052

4153
let settingsInstance: Settings|undefined;
4254

front_end/core/host/InspectorFrontendHost.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ import * as i18n from '../i18n/i18n.js';
3636
import * as Platform from '../platform/platform.js';
3737
import * as Root from '../root/root.js';
3838

39-
import type {CanShowSurveyResult, ContextMenuDescriptor, EnumeratedHistogram, EventTypes, ExtensionDescriptor, InspectorFrontendHostAPI, LoadNetworkResourceResult, ShowSurveyResult, SyncInformation} from './InspectorFrontendHostAPI.js';
39+
import type {
40+
CanShowSurveyResult, ContextMenuDescriptor, EnumeratedHistogram, EventTypes, ExtensionDescriptor,
41+
InspectorFrontendHostAPI, LoadNetworkResourceResult, ShowSurveyResult,
42+
SyncInformation} from './InspectorFrontendHostAPI.js';
4043
import {EventDescriptors, Events} from './InspectorFrontendHostAPI.js';
4144
import {streamWrite as resourceLoaderStreamWrite} from './ResourceLoader.js';
4245

front_end/core/sdk/CSSProperty.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,16 @@ export class CSSProperty {
163163

164164
const range = this.range.relativeTo(this.ownerStyle.range.startLine, this.ownerStyle.range.startColumn);
165165
const indentation = this.ownerStyle.cssText ?
166-
this.detectIndentation(this.ownerStyle.cssText) :
167-
Common.Settings.Settings.instance().moduleSetting('textEditorIndent').get();
166+
this.detectIndentation(this.ownerStyle.cssText) :
167+
Common.Settings.Settings.instance().moduleSetting('textEditorIndent').get();
168168
const endIndentation = this.ownerStyle.cssText ? indentation.substring(0, this.ownerStyle.range.endColumn) : '';
169169
const text = new TextUtils.Text.Text(this.ownerStyle.cssText || '');
170170
const newStyleText = text.replaceRange(range, Platform.StringUtilities.sprintf(';%s;', propertyText));
171171
const styleText = await CSSProperty.formatStyle(newStyleText, indentation, endIndentation);
172172
return this.ownerStyle.setText(styleText, majorChange);
173173
}
174174

175-
static async formatStyle(
176-
styleText: string, indentation: string, endIndentation: string): Promise<string> {
175+
static async formatStyle(styleText: string, indentation: string, endIndentation: string): Promise<string> {
177176
const doubleIndent = indentation.substring(endIndentation.length) + indentation;
178177
if (indentation) {
179178
indentation = '\n' + indentation;
@@ -197,7 +196,7 @@ export class CSSProperty {
197196
const disabledProperty = tokenType?.includes('comment') && isDisabledProperty(token);
198197
const isPropertyStart =
199198
(tokenType?.includes('string') || tokenType?.includes('meta') || tokenType?.includes('property') ||
200-
tokenType?.includes('variableName'));
199+
tokenType?.includes('variableName'));
201200
if (disabledProperty) {
202201
result = result.trimEnd() + indentation + token;
203202
} else if (isPropertyStart) {
@@ -222,8 +221,8 @@ export class CSSProperty {
222221
// implementation takes special care to restore a single
223222
// whitespace token in this edge case. https://crbug.com/1071296
224223
const trimmedPropertyText = propertyText.trim();
225-
result =
226-
result.trimEnd() + indentation + trimmedPropertyText + (trimmedPropertyText.endsWith(':') ? ' ' : '') + token;
224+
result = result.trimEnd() + indentation + trimmedPropertyText + (trimmedPropertyText.endsWith(':') ? ' ' : '') +
225+
token;
227226
needsSemi = false;
228227
insideProperty = false;
229228
propertyName = '';

front_end/core/sdk/ConsoleModel.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ import {Events as DebuggerModelEvents} from './DebuggerModel.js';
4444
import {LogModel} from './LogModel.js';
4545
import {RemoteObject} from './RemoteObject.js';
4646
import {Events as ResourceTreeModelEvents, ResourceTreeModel} from './ResourceTreeModel.js';
47-
import type {ConsoleAPICall, ExceptionWithTimestamp, ExecutionContext, QueryObjectRequestedEvent} from './RuntimeModel.js';
47+
import type {
48+
ConsoleAPICall, ExceptionWithTimestamp, ExecutionContext, QueryObjectRequestedEvent} from './RuntimeModel.js';
4849
import {Events as RuntimeModelEvents, RuntimeModel} from './RuntimeModel.js';
4950
import type {Target} from './Target.js';
5051
import {TargetManager} from './TargetManager.js';

front_end/core/sdk/NetworkManager.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
4141
import * as Protocol from '../../generated/protocol.js';
4242

4343
import {Cookie} from './Cookie.js';
44-
import type {BlockedCookieWithReason, ContentData, ExtraRequestInfo, ExtraResponseInfo, MIME_TYPE, NameValue, WebBundleInfo, WebBundleInnerRequestInfo} from './NetworkRequest.js';
44+
import type {
45+
BlockedCookieWithReason, ContentData, ExtraRequestInfo, ExtraResponseInfo, MIME_TYPE, NameValue, WebBundleInfo,
46+
WebBundleInnerRequestInfo} from './NetworkRequest.js';
4547
import {Events as NetworkRequestEvents, NetworkRequest} from './NetworkRequest.js';
4648
import type {Target} from './Target.js';
4749
import {Capability} from './Target.js';

front_end/core/sdk/RuntimeModel.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ import type {FunctionDetails} from './DebuggerModel.js';
4141
import {DebuggerModel} from './DebuggerModel.js';
4242
import {HeapProfilerModel} from './HeapProfilerModel.js';
4343
import type {ScopeRef} from './RemoteObject.js';
44-
import {RemoteFunction, RemoteObject, RemoteObjectImpl, RemoteObjectProperty, ScopeRemoteObject} from './RemoteObject.js';
44+
import {
45+
RemoteFunction,
46+
RemoteObject,
47+
RemoteObjectImpl,
48+
RemoteObjectProperty,
49+
ScopeRemoteObject,
50+
} from './RemoteObject.js';
4551
import type {Target} from './Target.js';
4652
import {Capability, Type} from './Target.js';
4753
import {SDKModel} from './SDKModel.js';

front_end/entrypoints/formatter_worker/FormatterWorker.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
import * as Platform from '../../core/platform/platform.js';
3232
import * as Root from '../../core/root/root.js';
3333
import * as Acorn from '../../third_party/acorn/acorn.js';
34-
import type * as CodeMirrorModule from '../../third_party/codemirror/codemirror-legacy.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
34+
35+
// This file is required to bring some types into scope, even though it
36+
// is not used.
37+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
38+
import type * as CodeMirrorModule from '../../third_party/codemirror/codemirror-legacy.js';
3539

3640
import {AcornTokenizer, ECMA_VERSION} from './AcornTokenizer.js';
3741
import {CSSFormatter} from './CSSFormatter.js';

front_end/legacy/legacy-defs.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ interface DOMError {
122122
}
123123

124124
interface ShadowRoot {
125-
elementFromPoint(x: number, y: number): Element | null;
126-
getSelection(): Selection | null;
125+
elementFromPoint(x: number, y: number): Element|null;
126+
getSelection(): Selection|null;
127127
}
128128

129129
interface HTMLDialogElement {

front_end/models/formatter/ScriptFormatter.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030

3131
import * as Common from '../../core/common/common.js';
3232
import * as Platform from '../../core/platform/platform.js';
33-
import type * as FormatterActions from '../../entrypoints/formatter_worker/FormatterActions.js'; // eslint-disable-line rulesdir/es_modules_import
33+
34+
// eslint-disable-next-line rulesdir/es_modules_import
35+
import type * as FormatterActions from '../../entrypoints/formatter_worker/FormatterActions.js';
3436

3537
import {formatterWorkerPool} from './FormatterWorkerPool.js';
3638

front_end/models/issues_manager/SourceFrameIssuesManager.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ import * as Bindings from '../../models/bindings/bindings.js';
88
import * as TextUtils from '../../models/text_utils/text_utils.js';
99
import * as Workspace from '../../models/workspace/workspace.js';
1010

11-
import {ContentSecurityPolicyIssue, trustedTypesPolicyViolationCode, trustedTypesSinkViolationCode} from './ContentSecurityPolicyIssue.js';
11+
import {
12+
ContentSecurityPolicyIssue,
13+
trustedTypesPolicyViolationCode,
14+
trustedTypesSinkViolationCode,
15+
} from './ContentSecurityPolicyIssue.js';
1216
import type {Issue, IssueKind} from './Issue.js';
1317
import {toZeroBasedLocation} from './Issue.js';
1418
import type {IssueAddedEvent, IssuesManager} from './IssuesManager.js';

front_end/models/text_utils/CodeMirrorUtils.ts

+14-17
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,22 @@
2929
*/
3030

3131
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
32-
type Tokenizer =
33-
(line: string, callback: (value: string, style: string|null) => void) => void;
32+
type Tokenizer = (line: string, callback: (value: string, style: string|null) => void) => void;
3433

3534
export function createCssTokenizer(): Tokenizer {
36-
async function tokenize(
37-
line: string, callback: (value: string, style: string|null) => void): Promise<void> {
38-
const streamParser = await CodeMirror.cssStreamParser();
39-
const stream = new CodeMirror.StringStream();
40-
stream.string = line;
35+
async function tokenize(line: string, callback: (value: string, style: string|null) => void): Promise<void> {
36+
const streamParser = await CodeMirror.cssStreamParser();
37+
const stream = new CodeMirror.StringStream();
38+
stream.string = line;
4139

42-
const startState = streamParser.startState();
43-
let lastPos = stream.pos;
44-
while (!stream.eol()) {
45-
const token = streamParser.token(stream, startState);
46-
const segment = stream.current().substring(lastPos, stream.pos);
47-
callback(segment, token);
48-
lastPos = stream.pos;
49-
}
40+
const startState = streamParser.startState();
41+
let lastPos = stream.pos;
42+
while (!stream.eol()) {
43+
const token = streamParser.token(stream, startState);
44+
const segment = stream.current().substring(lastPos, stream.pos);
45+
callback(segment, token);
46+
lastPos = stream.pos;
5047
}
51-
return tokenize;
48+
}
49+
return tokenize;
5250
}
53-

front_end/panels/application/IndexedDBViews.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@
2828
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

31-
import indexedDBViewsStyles from './indexedDBViews.css.js';
3231
import * as i18n from '../../core/i18n/i18n.js';
32+
33+
import indexedDBViewsStyles from './indexedDBViews.css.js';
34+
3335
import type * as SDK from '../../core/sdk/sdk.js';
3436
import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
3537
import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
3638
import * as UI from '../../ui/legacy/legacy.js';
3739

38-
import type {Database, DatabaseId, Entry, Index, IndexedDBModel, ObjectStore, ObjectStoreMetadata} from './IndexedDBModel.js';
40+
import type {
41+
Database, DatabaseId, Entry, Index, IndexedDBModel, ObjectStore, ObjectStoreMetadata} from './IndexedDBModel.js';
3942

4043
const UIStrings = {
4144
/**

front_end/panels/console/ConsoleView.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,15 @@ import {ConsoleFilter, FilterType} from './ConsoleFilter.js';
5656
import {ConsolePinPane} from './ConsolePinPane.js';
5757
import {ConsolePrompt, Events as ConsolePromptEvents} from './ConsolePrompt.js';
5858
import {ConsoleSidebar, Events} from './ConsoleSidebar.js';
59-
import {ConsoleCommand, ConsoleCommandResult, ConsoleGroupViewMessage, ConsoleTableMessageView, ConsoleViewMessage, getMessageForElement, MaxLengthForLinks} from './ConsoleViewMessage.js';
59+
import {
60+
ConsoleCommand,
61+
ConsoleCommandResult,
62+
ConsoleGroupViewMessage,
63+
ConsoleTableMessageView,
64+
ConsoleViewMessage,
65+
getMessageForElement,
66+
MaxLengthForLinks,
67+
} from './ConsoleViewMessage.js';
6068

6169
import type {ConsoleViewportElement, ConsoleViewportProvider} from './ConsoleViewport.js';
6270
import {ConsoleViewport} from './ConsoleViewport.js';

front_end/panels/css_overview/CSSOverviewCompletedView.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import * as UI from '../../ui/legacy/legacy.js';
1414
import type * as Protocol from '../../generated/protocol.js';
1515

1616
import cssOverviewCompletedViewStyles from './cssOverviewCompletedView.css.js';
17-
import type {OverviewController, PopulateNodesEvent, PopulateNodesEventNodes, PopulateNodesEventNodeTypes} from './CSSOverviewController.js';
17+
import type {
18+
OverviewController, PopulateNodesEvent, PopulateNodesEventNodes, PopulateNodesEventNodeTypes} from
19+
'./CSSOverviewController.js';
1820
import {Events as CSSOverViewControllerEvents} from './CSSOverviewController.js';
1921
import {CSSOverviewSidebarPanel, SidebarEvents} from './CSSOverviewSidebarPanel.js';
2022
import type {UnusedDeclaration} from './CSSOverviewUnusedDeclarations.js';

front_end/panels/elements/PropertiesWidget.ts

-1
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,3 @@ export class PropertiesWidget extends UI.ThrottledWidget.ThrottledWidget {
212212
this.registerCSSFiles([propertiesWidgetStyles]);
213213
}
214214
}
215-

front_end/panels/elements/StylesSidebarPane.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ import {StylePropertyHighlighter} from './StylePropertyHighlighter.js';
6161
import stylesSidebarPaneStyles from './stylesSidebarPane.css.js';
6262

6363
import type {StylePropertyTreeElement} from './StylePropertyTreeElement.js';
64-
import {StylePropertiesSection, BlankStylePropertiesSection, KeyframePropertiesSection, HighlightPseudoStylePropertiesSection} from './StylePropertiesSection.js';
64+
import {
65+
StylePropertiesSection,
66+
BlankStylePropertiesSection,
67+
KeyframePropertiesSection,
68+
HighlightPseudoStylePropertiesSection,
69+
} from './StylePropertiesSection.js';
70+
6571
import * as LayersWidget from './LayersWidget.js';
6672

6773
const UIStrings = {

front_end/panels/lighthouse/LighthousePanel.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import * as EmulationModel from '../../models/emulation/emulation.js';
1212
import * as UI from '../../ui/legacy/legacy.js';
1313
import * as Emulation from '../emulation/emulation.js';
1414

15-
import type {AuditProgressChangedEvent, PageAuditabilityChangedEvent, PageWarningsChangedEvent} from './LighthouseController.js';
15+
import type {
16+
AuditProgressChangedEvent, PageAuditabilityChangedEvent, PageWarningsChangedEvent} from './LighthouseController.js';
1617
import {Events, LighthouseController} from './LighthouseController.js';
1718
import lighthousePanelStyles from './lighthousePanel.css.js';
1819
import type {LighthouseRun} from './LighthouseProtocolService.js';

front_end/panels/mobile_throttling/ThrottlingManager.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import * as UI from '../../ui/legacy/legacy.js';
1111
import {MobileThrottlingSelector} from './MobileThrottlingSelector.js';
1212
import {NetworkThrottlingSelector} from './NetworkThrottlingSelector.js';
1313

14-
import type {Conditions, ConditionsList, MobileThrottlingConditionsGroup, NetworkThrottlingConditionsGroup} from './ThrottlingPresets.js';
14+
import type {
15+
Conditions, ConditionsList, MobileThrottlingConditionsGroup, NetworkThrottlingConditionsGroup} from
16+
'./ThrottlingPresets.js';
1517
import {ThrottlingPresets} from './ThrottlingPresets.js';
1618

1719
const UIStrings = {

front_end/panels/network/NetworkLogView.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ import {Events, NetworkGroupNode, NetworkRequestNode} from './NetworkDataGridNod
5757
import {NetworkFrameGrouper} from './NetworkFrameGrouper.js';
5858
import {NetworkLogViewColumns} from './NetworkLogViewColumns.js';
5959
import type {NetworkTimeCalculator} from './NetworkTimeCalculator.js';
60-
import {NetworkTimeBoundary, NetworkTransferDurationCalculator, NetworkTransferTimeCalculator} from './NetworkTimeCalculator.js';
60+
import {
61+
NetworkTimeBoundary,
62+
NetworkTransferDurationCalculator,
63+
NetworkTransferTimeCalculator,
64+
} from './NetworkTimeCalculator.js';
6165

6266
const UIStrings = {
6367
/**

front_end/panels/network/NetworkLogViewColumns.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import type {NetworkNode} from './NetworkDataGridNode.js';
1414
import {NetworkRequestNode} from './NetworkDataGridNode.js';
1515
import type {NetworkLogView} from './NetworkLogView.js';
1616
import {NetworkManageCustomHeadersView} from './NetworkManageCustomHeadersView.js';
17-
import type {NetworkTimeCalculator, NetworkTransferDurationCalculator, NetworkTransferTimeCalculator} from './NetworkTimeCalculator.js';
17+
import type {
18+
NetworkTimeCalculator, NetworkTransferDurationCalculator, NetworkTransferTimeCalculator} from
19+
'./NetworkTimeCalculator.js';
1820
import {NetworkWaterfallColumn} from './NetworkWaterfallColumn.js';
1921
import {RequestInitiatorView} from './RequestInitiatorView.js';
2022

front_end/panels/profiler/HeapSnapshotDataGrids.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ import type * as SDK from '../../core/sdk/sdk.js';
3838
import * as UI from '../../ui/legacy/legacy.js';
3939

4040
import type {HeapSnapshotGridNode} from './HeapSnapshotGridNodes.js';
41-
import {AllocationGridNode, HeapSnapshotConstructorNode, HeapSnapshotGenericObjectNode, HeapSnapshotRetainingObjectNode, HeapSnapshotObjectNode, HeapSnapshotDiffNode} from './HeapSnapshotGridNodes.js';
41+
import {
42+
AllocationGridNode,
43+
HeapSnapshotConstructorNode,
44+
HeapSnapshotGenericObjectNode,
45+
HeapSnapshotRetainingObjectNode,
46+
HeapSnapshotObjectNode,
47+
HeapSnapshotDiffNode,
48+
} from './HeapSnapshotGridNodes.js';
4249
import type {HeapSnapshotProxy} from './HeapSnapshotProxy.js';
4350
import type {HeapProfileHeader} from './HeapSnapshotView.js';
4451
import type {DataDisplayDelegate} from './ProfileHeader.js';

front_end/panels/profiler/HeapSnapshotGridNodes.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ import * as DataGrid from '../../ui/legacy/components/data_grid/data_grid.js';
3838
import * as UI from '../../ui/legacy/legacy.js';
3939

4040
import type {ChildrenProvider} from './ChildrenProvider.js';
41-
import type {AllocationDataGrid, HeapSnapshotConstructorsDataGrid, HeapSnapshotDiffDataGrid, HeapSnapshotSortableDataGrid} from './HeapSnapshotDataGrids.js';
41+
import type {
42+
AllocationDataGrid, HeapSnapshotConstructorsDataGrid, HeapSnapshotDiffDataGrid, HeapSnapshotSortableDataGrid} from
43+
'./HeapSnapshotDataGrids.js';
4244
import {HeapSnapshotSortableDataGridEvents} from './HeapSnapshotDataGrids.js';
4345
import type {HeapSnapshotProviderProxy, HeapSnapshotProxy} from './HeapSnapshotProxy.js';
4446
import type {DataDisplayDelegate} from './ProfileHeader.js';

front_end/panels/profiler/HeapSnapshotView.ts

+14-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ import * as Components from '../../ui/legacy/components/utils/utils.js';
4444
import * as UI from '../../ui/legacy/legacy.js';
4545

4646
import type {HeapSnapshotSortableDataGrid} from './HeapSnapshotDataGrids.js';
47-
import {AllocationDataGrid, HeapSnapshotSortableDataGridEvents, HeapSnapshotConstructorsDataGrid, HeapSnapshotDiffDataGrid, HeapSnapshotRetainmentDataGrid, HeapSnapshotContainmentDataGrid} from './HeapSnapshotDataGrids.js';
47+
import {
48+
AllocationDataGrid,
49+
HeapSnapshotSortableDataGridEvents,
50+
HeapSnapshotConstructorsDataGrid,
51+
HeapSnapshotDiffDataGrid,
52+
HeapSnapshotRetainmentDataGrid,
53+
HeapSnapshotContainmentDataGrid,
54+
} from './HeapSnapshotDataGrids.js';
4855
import type {AllocationGridNode, HeapSnapshotGridNode} from './HeapSnapshotGridNodes.js';
4956
import {HeapSnapshotGenericObjectNode} from './HeapSnapshotGridNodes.js';
5057
import type {HeapSnapshotProxy} from './HeapSnapshotProxy.js';
@@ -53,7 +60,12 @@ import type {IdsRangeChangedEvent} from './HeapTimelineOverview.js';
5360
import {HeapTimelineOverview, Events, Samples} from './HeapTimelineOverview.js';
5461
import * as ModuleUIStrings from './ModuleUIStrings.js';
5562
import type {DataDisplayDelegate} from './ProfileHeader.js';
56-
import {Events as ProfileHeaderEvents, ProfileEvents as ProfileTypeEvents, ProfileHeader, ProfileType} from './ProfileHeader.js';
63+
import {
64+
Events as ProfileHeaderEvents,
65+
ProfileEvents as ProfileTypeEvents,
66+
ProfileHeader,
67+
ProfileType,
68+
} from './ProfileHeader.js';
5769
import {ProfileSidebarTreeElement} from './ProfileSidebarTreeElement.js';
5870
import {instance} from './ProfileTypeRegistry.js';
5971

0 commit comments

Comments
 (0)