Skip to content

Commit

Permalink
Added experimental-emit-debug-metadata flag to flutter frontend server (
Browse files Browse the repository at this point in the history
flutter#19168)

- Added a --experimental--emit-debug-metadata flag to Flutter frontend server
- False by default
- Passed to the frontend server in the SDK
   - Introduced in change https://dart-review.googlesource.com/c/sdk/+/150181
  • Loading branch information
Anna Gringauze authored Jun 23, 2020
1 parent 57d1333 commit ee4d641
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flutter_frontend_server/lib/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ class _FlutterFrontendCompiler implements frontend.CompilerInterface {
_FlutterFrontendCompiler(StringSink output,
{bool unsafePackageSerialization,
bool useDebuggerModuleNames,
bool emitDebugMetadata,
frontend.ProgramTransformer transformer})
: _compiler = frontend.FrontendCompiler(output,
transformer: transformer,
useDebuggerModuleNames: useDebuggerModuleNames,
emitDebugMetadata: emitDebugMetadata,
unsafePackageSerialization: unsafePackageSerialization);

@override
Expand Down Expand Up @@ -171,6 +173,7 @@ Future<int> starter(
compiler ??= _FlutterFrontendCompiler(output,
transformer: ToStringTransformer(transformer, deleteToStringPackageUris),
useDebuggerModuleNames: options['debugger-module-names'] as bool,
emitDebugMetadata: options['experimental-emit-debug-metadata'] as bool,
unsafePackageSerialization:
options['unsafe-package-serialization'] as bool);

Expand Down

0 comments on commit ee4d641

Please sign in to comment.