Skip to content

Commit 931526d

Browse files
committed
Format sources using the updated formatter
1 parent 4fc5d8c commit 931526d

File tree

117 files changed

+2069
-2382
lines changed

Some content is hidden

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

117 files changed

+2069
-2382
lines changed

dwds/debug_extension/tool/build_extension.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import 'package:path/path.dart' as p;
2020
const _prodFlag = 'prod';
2121

2222
void main(List<String> arguments) async {
23-
final parser =
24-
ArgParser()..addFlag(_prodFlag, negatable: true, defaultsTo: false);
23+
final parser = ArgParser()
24+
..addFlag(_prodFlag, negatable: true, defaultsTo: false);
2525
final argResults = parser.parse(arguments);
2626

2727
exitCode = await run(isProd: argResults[_prodFlag] as bool);

dwds/debug_extension/tool/copy_builder.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Builder copyBuilder(_) => _CopyBuilder();
1010
class _CopyBuilder extends Builder {
1111
@override
1212
Map<String, List<String>> get buildExtensions => {
13-
'web/{{}}.dart.js': ['compiled/{{}}.dart.js'],
14-
'web/static_assets/{{}}.png': ['compiled/static_assets/{{}}.png'],
15-
'web/static_assets/{{}}.html': ['compiled/static_assets/{{}}.html'],
16-
'web/static_assets/{{}}.css': ['compiled/static_assets/{{}}.css'],
17-
'web/manifest.json': ['compiled/manifest.json'],
18-
};
13+
'web/{{}}.dart.js': ['compiled/{{}}.dart.js'],
14+
'web/static_assets/{{}}.png': ['compiled/static_assets/{{}}.png'],
15+
'web/static_assets/{{}}.html': ['compiled/static_assets/{{}}.html'],
16+
'web/static_assets/{{}}.css': ['compiled/static_assets/{{}}.css'],
17+
'web/manifest.json': ['compiled/manifest.json'],
18+
};
1919

2020
@override
2121
Future<void> build(BuildStep buildStep) async {

dwds/debug_extension/tool/update_dev_files.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ void main() async {
1212
Future<void> _updateManifestJson() async {
1313
final manifestJson = File('compiled/manifest.json');
1414
final extensionKeyTxt = File('extension_key.txt');
15-
final extensionKey =
16-
await extensionKeyTxt.exists()
17-
? await extensionKeyTxt.readAsString()
18-
: null;
15+
final extensionKey = await extensionKeyTxt.exists()
16+
? await extensionKeyTxt.readAsString()
17+
: null;
1918
return _transformDevFile(manifestJson, (line) {
2019
if (_matchesKey(line: line, key: 'name')) {
2120
return [

dwds/debug_extension/web/background.dart

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,19 @@ bool _isInternalNavigation(NavigationInfo navigationInfo) {
217217

218218
DebugInfo _addTabInfo(DebugInfo debugInfo, {required Tab tab}) {
219219
return DebugInfo(
220-
(b) =>
221-
b
222-
..appEntrypointPath = debugInfo.appEntrypointPath
223-
..appId = debugInfo.appId
224-
..appInstanceId = debugInfo.appInstanceId
225-
..appOrigin = debugInfo.appOrigin
226-
..appUrl = debugInfo.appUrl
227-
..authUrl = debugInfo.authUrl
228-
..extensionUrl = debugInfo.extensionUrl
229-
..isInternalBuild = debugInfo.isInternalBuild
230-
..isFlutterApp = debugInfo.isFlutterApp
231-
..workspaceName = debugInfo.workspaceName
232-
..tabUrl = tab.url
233-
..tabId = tab.id,
220+
(b) => b
221+
..appEntrypointPath = debugInfo.appEntrypointPath
222+
..appId = debugInfo.appId
223+
..appInstanceId = debugInfo.appInstanceId
224+
..appOrigin = debugInfo.appOrigin
225+
..appUrl = debugInfo.appUrl
226+
..authUrl = debugInfo.authUrl
227+
..extensionUrl = debugInfo.extensionUrl
228+
..isInternalBuild = debugInfo.isInternalBuild
229+
..isFlutterApp = debugInfo.isFlutterApp
230+
..workspaceName = debugInfo.workspaceName
231+
..tabUrl = tab.url
232+
..tabId = tab.id,
234233
);
235234
}
236235

dwds/debug_extension/web/cider_connection.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ Future<void> _sendInspectorUrl({String? appId}) async {
170170
if (!alreadyDebugging) {
171171
sendErrorMessageToCider(
172172
errorType: CiderErrorType.invalidRequest,
173-
errorDetails:
174-
'Cannot send the inspector URL before '
173+
errorDetails: 'Cannot send the inspector URL before '
175174
'the debugger has been attached.',
176175
);
177176
return;

dwds/debug_extension/web/copier.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void _copyAppId(String appId) {
4949
}
5050

5151
Future<bool> _notifyCopiedSuccess(String appId) => sendRuntimeMessage(
52-
type: MessageType.appId,
53-
body: appId,
54-
sender: Script.copier,
55-
recipient: Script.background,
56-
);
52+
type: MessageType.appId,
53+
body: appId,
54+
sender: Script.copier,
55+
recipient: Script.background,
56+
);

dwds/debug_extension/web/cross_extension_communication.dart

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ void maybeForwardMessageToAngularDartDevTools({
5858
}) {
5959
if (!_eventsForAngularDartDevTools.contains(method)) return;
6060

61-
final message =
62-
method.startsWith('dwds')
63-
? _dwdsEventMessage(method: method, params: params, tabId: tabId)
64-
: _debugEventMessage(method: method, params: params, tabId: tabId);
61+
final message = method.startsWith('dwds')
62+
? _dwdsEventMessage(method: method, params: params, tabId: tabId)
63+
: _debugEventMessage(method: method, params: params, tabId: tabId);
6564

6665
_forwardMessageToAngularDartDevTools(message);
6766
}
@@ -127,17 +126,19 @@ ExternalExtensionMessage _debugEventMessage({
127126
required String method,
128127
required dynamic params,
129128
required int tabId,
130-
}) => ExternalExtensionMessage(
131-
name: 'chrome.debugger.event',
132-
tabId: tabId,
133-
options: DebugEvent(method: method, params: params),
134-
);
129+
}) =>
130+
ExternalExtensionMessage(
131+
name: 'chrome.debugger.event',
132+
tabId: tabId,
133+
options: DebugEvent(method: method, params: params),
134+
);
135135

136136
ExternalExtensionMessage _dwdsEventMessage({
137137
required String method,
138138
required dynamic params,
139139
required int tabId,
140-
}) => ExternalExtensionMessage(name: method, tabId: tabId, options: params);
140+
}) =>
141+
ExternalExtensionMessage(name: method, tabId: tabId, options: params);
141142

142143
// This message is used for cross-extension communication between this extension
143144
// and the AngularDart DevTools extension.

dwds/debug_extension/web/data_serializers.g.dart

Lines changed: 16 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dwds/debug_extension/web/data_types.g.dart

Lines changed: 40 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dwds/debug_extension/web/debug_info.dart

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,15 @@ String _readDartDebugInfo() {
3030
return jsonEncode(
3131
serializers.serialize(
3232
DebugInfo(
33-
(b) =>
34-
b
35-
..appEntrypointPath =
36-
windowContext['\$dartEntrypointPath'] as String?
37-
..appId = windowContext['\$dartAppId'] as String?
38-
..appInstanceId = windowContext['\$dartAppInstanceId'] as String?
39-
..appOrigin = window.location.origin
40-
..appUrl = window.location.href
41-
..extensionUrl = windowContext['\$dartExtensionUri'] as String?
42-
..isInternalBuild = windowContext['\$isInternalBuild'] as bool?
43-
..isFlutterApp = windowContext['\$isFlutterApp'] as bool?,
33+
(b) => b
34+
..appEntrypointPath = windowContext['\$dartEntrypointPath'] as String?
35+
..appId = windowContext['\$dartAppId'] as String?
36+
..appInstanceId = windowContext['\$dartAppInstanceId'] as String?
37+
..appOrigin = window.location.origin
38+
..appUrl = window.location.href
39+
..extensionUrl = windowContext['\$dartExtensionUri'] as String?
40+
..isInternalBuild = windowContext['\$isInternalBuild'] as bool?
41+
..isFlutterApp = windowContext['\$isFlutterApp'] as bool?,
4442
),
4543
),
4644
);

0 commit comments

Comments
 (0)