未验证 提交 c9e7713b 编写于 作者: A Anna Gringauze 提交者: GitHub

Fix analyzer warnings for frontend_server change (#16470)

- added temporary ignore for annotate_overrides analyzer warning,
  will remove the ignore in a follow-up PR after the SDK change
  https://dart-review.googlesource.com/c/sdk/+/134561 lands.
- run dartfmt
上级 ca40f11e
......@@ -70,12 +70,13 @@ class _FlutterFrontendCompiler implements frontend.CompilerInterface {
expression, definitions, typeDefinitions, libraryUri, klass, isStatic);
}
// ignore: annotate_overrides
Future<Null> compileExpressionToJs(
String libraryUri,
int line,
int column,
Map<String,String> jsModules,
Map<String,String> jsFrameValues,
Map<String, String> jsModules,
Map<String, String> jsFrameValues,
String moduleName,
String expression) {
throw UnimplementedError('Compile expression to JS is not supported');
......@@ -154,7 +155,8 @@ Future<int> starter(
compiler ??= _FlutterFrontendCompiler(output,
transformer: transformer,
unsafePackageSerialization: options['unsafe-package-serialization'] as bool);
unsafePackageSerialization:
options['unsafe-package-serialization'] as bool);
if (options.rest.isNotEmpty) {
return await compiler.compile(options.rest[0], options) ? 0 : 254;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册