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

Unified Diff: test/codegen/expect/extensions.js

Issue 1492523004: Fixes #378 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Use virtual fields for extension fields Created 5 years 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
« no previous file with comments | « test/codegen/expect/collection/src/comparators.txt ('k') | test/codegen/expect/extensions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/extensions.js
diff --git a/test/codegen/expect/extensions.js b/test/codegen/expect/extensions.js
new file mode 100644
index 0000000000000000000000000000000000000000..e164782b3cabee6c42c1e2e792ca1a29c3d44610
--- /dev/null
+++ b/test/codegen/expect/extensions.js
@@ -0,0 +1,25 @@
+dart_library.library('extensions', null, /* Imports */[
+ "dart/_runtime",
+ 'dart/collection',
+ 'dart/core'
+], /* Lazy imports */[
+], function(exports, dart, collection, core) {
+ 'use strict';
+ let dartx = dart.dartx;
+ class StringIterable extends collection.IterableBase$(core.String) {
+ StringIterable() {
+ this.iterator = null;
+ super.IterableBase();
+ }
+ }
+ dart.virtualField(StringIterable, 'iterator');
+ dart.setSignature(StringIterable, {});
+ dart.defineExtensionMembers(StringIterable, ['iterator']);
+ function main() {
+ return new StringIterable();
+ }
+ dart.fn(main);
+ // Exports:
+ exports.StringIterable = StringIterable;
+ exports.main = main;
+});
« no previous file with comments | « test/codegen/expect/collection/src/comparators.txt ('k') | test/codegen/expect/extensions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698