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

Unified Diff: lib/src/codegen/js_codegen.dart

Issue 1775673002: Fix deprecation message (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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: lib/src/codegen/js_codegen.dart
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart
index cd4b5c9b812a71288b821e696a00ae6110152b5a..d2315addefdae4b37a8c0eea0d026cde538bd8cb 100644
--- a/lib/src/codegen/js_codegen.dart
+++ b/lib/src/codegen/js_codegen.dart
@@ -3206,7 +3206,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor
.computeLibraryElement(context.sourceFactory.forUri('dart:async'));
var T = node.loopVariable.element.type;
var StreamIterator_T =
- dart_async.getType('StreamIterator').type.substitute4([T]);
+ dart_async.getType('StreamIterator').type.instantiate([T]);
var createStreamIter = _emitInstanceCreationExpression(
StreamIterator_T.element.unnamedConstructor,

Powered by Google App Engine
This is Rietveld 408576698