File tree Expand file tree Collapse file tree 4 files changed +16
-23
lines changed Expand file tree Collapse file tree 4 files changed +16
-23
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,6 @@ class DdcStrategy extends LoadStrategy {
4848 @override
4949 final ReloadConfiguration reloadConfiguration;
5050
51- late final DartRuntimeDebugger _dartRuntimeDebugger = DartRuntimeDebugger (
52- loadStrategy: this ,
53- useLibraryBundleExpression: false ,
54- );
55-
5651 /// Returns a map of module name to corresponding server path (excluding .js)
5752 /// for the provided Dart application entrypoint.
5853 ///
@@ -170,7 +165,10 @@ class DdcStrategy extends LoadStrategy {
170165 String get loadModuleSnippet => 'dart_library.import' ;
171166
172167 @override
173- DartRuntimeDebugger get dartRuntimeDebugger => _dartRuntimeDebugger;
168+ late final DartRuntimeDebugger dartRuntimeDebugger = DartRuntimeDebugger (
169+ loadStrategy: this ,
170+ useLibraryBundleExpression: false ,
171+ );
174172
175173 @override
176174 BuildSettings get buildSettings => _buildSettings;
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ class DdcLibraryBundleStrategy extends LoadStrategy {
1818 @override
1919 final ReloadConfiguration reloadConfiguration;
2020
21- late final DartRuntimeDebugger _dartRuntimeDebugger = DartRuntimeDebugger (
22- loadStrategy: this ,
23- useLibraryBundleExpression: true ,
24- );
25-
2621 /// Returns a map of module name to corresponding server path (excluding .js)
2722 /// for the provided Dart application entrypoint.
2823 ///
@@ -147,7 +142,10 @@ class DdcLibraryBundleStrategy extends LoadStrategy {
147142 "This is currently unsupported in the DDC library bundle format.'); }" ;
148143
149144 @override
150- DartRuntimeDebugger get dartRuntimeDebugger => _dartRuntimeDebugger;
145+ late final DartRuntimeDebugger dartRuntimeDebugger = DartRuntimeDebugger (
146+ loadStrategy: this ,
147+ useLibraryBundleExpression: true ,
148+ );
151149
152150 @override
153151 BuildSettings get buildSettings => _buildSettings;
Original file line number Diff line number Diff line change @@ -53,11 +53,6 @@ class RequireStrategy extends LoadStrategy {
5353 @override
5454 final ReloadConfiguration reloadConfiguration;
5555
56- late final DartRuntimeDebugger _dartRuntimeDebugger = DartRuntimeDebugger (
57- loadStrategy: this ,
58- useLibraryBundleExpression: false ,
59- );
60-
6156 final String _requireDigestsPath = r'$requireDigestsPath' ;
6257
6358 /// Returns a map of module name to corresponding server path (excluding .js)
@@ -171,7 +166,10 @@ class RequireStrategy extends LoadStrategy {
171166 String get loadModuleSnippet => 'require' ;
172167
173168 @override
174- DartRuntimeDebugger get dartRuntimeDebugger => _dartRuntimeDebugger;
169+ late final DartRuntimeDebugger dartRuntimeDebugger = DartRuntimeDebugger (
170+ loadStrategy: this ,
171+ useLibraryBundleExpression: false ,
172+ );
175173
176174 /// Require JS config for ddc.
177175 ///
Original file line number Diff line number Diff line change @@ -329,10 +329,6 @@ class FakeExecutionContext extends ExecutionContext {
329329
330330class FakeStrategy extends LoadStrategy {
331331 final BuildSettings _buildSettings;
332- late final DartRuntimeDebugger _dartRuntimeDebugger = DartRuntimeDebugger (
333- loadStrategy: this ,
334- useLibraryBundleExpression: true ,
335- );
336332
337333 FakeStrategy (
338334 super .assetReader, {
@@ -368,7 +364,10 @@ class FakeStrategy extends LoadStrategy {
368364 String get loadModuleSnippet => '' ;
369365
370366 @override
371- DartRuntimeDebugger get dartRuntimeDebugger => _dartRuntimeDebugger;
367+ late final DartRuntimeDebugger dartRuntimeDebugger = DartRuntimeDebugger (
368+ loadStrategy: this ,
369+ useLibraryBundleExpression: false ,
370+ );
372371
373372 @override
374373 ReloadConfiguration get reloadConfiguration => ReloadConfiguration .none;
You can’t perform that action at this time.
0 commit comments