a6f4d9b1c5
Handles fields on "extension" types See patch #1 for the test without the fix. R=jmesserly@google.com Review URL: https://codereview.chromium.org/1492523004 .
26 lines
691 B
JavaScript
26 lines
691 B
JavaScript
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;
|
|
});
|