Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart

Issue 2791993002: Fix dart2js warnings and add test to ensure it stays clean. (Closed)
Patch Set: Address comments and fix duplicated library names. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
index 799e28897030a6c383d13acb4bc44a447687a297..91a189bb6691dc31f9bb415ca494d625c1fa49e7 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
@@ -132,8 +132,9 @@ jsAst.Statement buildSetupProgram(Program program, Compiler compiler,
'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(),
'hasRetainedMetadata': backend.mirrorsData.hasRetainedMetadata,
'types': typesAccess,
- 'objectClassName': js.quoteName(
- namer.runtimeTypeName(compiler.commonElements.objectClass as Entity)),
+ 'objectClassName': js.quoteName(namer.runtimeTypeName(
+ // ignore: UNNECESSARY_CAST
+ compiler.commonElements.objectClass as Entity)),
'needsStructuredMemberInfo': emitter.needsStructuredMemberInfo,
'usesMangledNames': compiler.commonElements.mirrorsLibrary != null ||
backend.backendUsage.isFunctionApplyUsed,

Powered by Google App Engine
This is Rietveld 408576698