Index: pkg/dev_compiler/lib/js/es6/dart_sdk.js |
diff --git a/pkg/dev_compiler/lib/js/es6/dart_sdk.js b/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
index e6f62c3807cc3321ca2cee60cac91b8a876ef66f..d2e61f7f5b2a7589ebac583966f8e4fa09f6ec3d 100644 |
--- a/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
+++ b/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
@@ -333,7 +333,6 @@ let _SplayTreeValueIterator = () => (_SplayTreeValueIterator = dart.constFn(coll |
let _SplayTreeNodeIterator = () => (_SplayTreeNodeIterator = dart.constFn(collection._SplayTreeNodeIterator$()))(); |
let SplayTreeSet = () => (SplayTreeSet = dart.constFn(collection.SplayTreeSet$()))(); |
let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.constFn(dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); |
-let MappedIterableOfString$dynamic = () => (MappedIterableOfString$dynamic = dart.constFn(_internal.MappedIterable$(core.String, dart.dynamic)))(); |
let SinkOfObject = () => (SinkOfObject = dart.constFn(core.Sink$(core.Object)))(); |
let Codec = () => (Codec = dart.constFn(convert.Codec$()))(); |
let ComparableOfString = () => (ComparableOfString = dart.constFn(core.Comparable$(core.String)))(); |
@@ -467,7 +466,6 @@ let EventSinkOfUint8List = () => (EventSinkOfUint8List = dart.constFn(async.Even |
let StreamControllerOfWebSocket = () => (StreamControllerOfWebSocket = dart.constFn(async.StreamController$(io.WebSocket)))(); |
let FutureOfWebSocket = () => (FutureOfWebSocket = dart.constFn(async.Future$(io.WebSocket)))(); |
let EventSinkOfListOfint = () => (EventSinkOfListOfint = dart.constFn(async.EventSink$(ListOfint())))(); |
-let JSArrayOfUint8List = () => (JSArrayOfUint8List = dart.constFn(_interceptors.JSArray$(typed_data.Uint8List)))(); |
let StreamTransformerOfdynamic$ListOfint = () => (StreamTransformerOfdynamic$ListOfint = dart.constFn(async.StreamTransformer$(dart.dynamic, ListOfint())))(); |
let MapOfint$_WebSocketImpl = () => (MapOfint$_WebSocketImpl = dart.constFn(core.Map$(core.int, io._WebSocketImpl)))(); |
let FutureOfIsolate = () => (FutureOfIsolate = dart.constFn(async.Future$(isolate.Isolate)))(); |
@@ -488,7 +486,6 @@ let FutureOfListOfString = () => (FutureOfListOfString = dart.constFn(async.Futu |
let EventTovoid = () => (EventTovoid = dart.constFn(dart.functionType(dart.void, [html.Event])))(); |
let CompleterOfDatabase = () => (CompleterOfDatabase = dart.constFn(async.Completer$(indexed_db.Database)))(); |
let ListOfEventTarget = () => (ListOfEventTarget = dart.constFn(core.List$(html.EventTarget)))(); |
-let RectangleOfint = () => (RectangleOfint = dart.constFn(math.Rectangle$(core.int)))(); |
let IterableOfNode = () => (IterableOfNode = dart.constFn(core.Iterable$(html.Node)))(); |
let ListOfNode = () => (ListOfNode = dart.constFn(core.List$(html.Node)))(); |
let ListOfElement = () => (ListOfElement = dart.constFn(core.List$(html.Element)))(); |
@@ -556,7 +553,6 @@ let CompleterOfRtcStatsResponse = () => (CompleterOfRtcStatsResponse = dart.cons |
let EventStreamProviderOfMediaStreamEvent = () => (EventStreamProviderOfMediaStreamEvent = dart.constFn(html.EventStreamProvider$(html.MediaStreamEvent)))(); |
let EventStreamProviderOfRtcDataChannelEvent = () => (EventStreamProviderOfRtcDataChannelEvent = dart.constFn(html.EventStreamProvider$(html.RtcDataChannelEvent)))(); |
let EventStreamProviderOfRtcIceCandidateEvent = () => (EventStreamProviderOfRtcIceCandidateEvent = dart.constFn(html.EventStreamProvider$(html.RtcIceCandidateEvent)))(); |
-let ListOfOptionElement = () => (ListOfOptionElement = dart.constFn(core.List$(html.OptionElement)))(); |
let UnmodifiableListViewOfOptionElement = () => (UnmodifiableListViewOfOptionElement = dart.constFn(collection.UnmodifiableListView$(html.OptionElement)))(); |
let JSArrayOfOptionElement = () => (JSArrayOfOptionElement = dart.constFn(_interceptors.JSArray$(html.OptionElement)))(); |
let ListOfSourceBuffer = () => (ListOfSourceBuffer = dart.constFn(core.List$(html.SourceBuffer)))(); |
@@ -759,6 +755,7 @@ let dynamicAnddynamicTobool = () => (dynamicAnddynamicTobool = dart.constFn(dart |
let IterableAndListTovoid = () => (IterableAndListTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [core.Iterable, core.List])))(); |
let _SplayTreeMapNodeTobool = () => (_SplayTreeMapNodeTobool = dart.constFn(dart.definiteFunctionType(core.bool, [collection._SplayTreeMapNode])))(); |
let dynamicAndFnTodynamic = () => (dynamicAndFnTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dynamicAnddynamicTodynamic()])))(); |
+let EventSinkTo_ConverterStreamEventSink = () => (EventSinkTo_ConverterStreamEventSink = dart.constFn(dart.definiteFunctionType(convert._ConverterStreamEventSink, [async.EventSink])))(); |
let Uint8ListAndintAndintTovoid = () => (Uint8ListAndintAndintTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [typed_data.Uint8List, core.int, core.int])))(); |
let StringAndFnTodynamic = () => (StringAndFnTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.String, dynamicAnddynamicTodynamic()])))(); |
let EventSinkOfStringTo_LineSplitterEventSink = () => (EventSinkOfStringTo_LineSplitterEventSink = dart.constFn(dart.definiteFunctionType(convert._LineSplitterEventSink, [EventSinkOfString()])))(); |
@@ -10700,7 +10697,7 @@ async.Stream$ = dart.generic(T => { |
let wrapper = new async._ControllerEventSinkWrapper(null); |
timeout = dart.fn(() => { |
wrapper[_sink] = controller; |
- zone.runUnaryGuarded(dart.dynamic, EventSinkOfT())(registeredOnTimeout, wrapper); |
+ zone.runUnaryGuarded(dart.dynamic, async._ControllerEventSinkWrapper)(registeredOnTimeout, wrapper); |
wrapper[_sink] = null; |
}, VoidTovoid()); |
} |
@@ -14065,7 +14062,7 @@ _js_mirrors.JsVariableMirror = class JsVariableMirror extends _js_mirrors.JsMirr |
this[_symbol] = symbol; |
this[_name] = _js_mirrors.getName(symbol); |
this.type = _js_mirrors.reflectType(t); |
- this.metadata = ListOfInstanceMirror().unmodifiable(annotations[dartx.map](mirrors.InstanceMirror)(dart.fn(a => _js_mirrors.reflect(a), dynamicToInstanceMirror()))); |
+ this.metadata = ListOfInstanceMirror().unmodifiable(annotations[dartx.map](dart.dynamic)(dart.fn(a => _js_mirrors.reflect(a), dynamicToInstanceMirror()))); |
this.isStatic = false; |
this.isFinal = false; |
} |
@@ -28937,7 +28934,7 @@ convert._JsonMap = class _JsonMap extends core.Object { |
} |
get values() { |
if (dart.test(this[_isUpgraded])) return this[_upgradedMap][dartx.values]; |
- return MappedIterableOfString$dynamic().new(this[_computeKeys](), dart.fn(each => this._get(each), dynamicTodynamic())); |
+ return _internal.MappedIterable.new(this[_computeKeys](), dart.fn(each => this._get(each), dynamicTodynamic())); |
} |
_set(key, value) { |
if (dart.test(this[_isUpgraded])) { |
@@ -29501,11 +29498,9 @@ convert._ASCII_MASK = 127; |
const _subsetMask = Symbol('_subsetMask'); |
convert.Converter$ = dart.generic((S, T) => { |
let StreamOfS = () => (StreamOfS = dart.constFn(async.Stream$(S)))(); |
- let _ConverterStreamEventSinkOfS$dynamic = () => (_ConverterStreamEventSinkOfS$dynamic = dart.constFn(convert._ConverterStreamEventSink$(S, dart.dynamic)))(); |
let StreamTransformerOfS$T = () => (StreamTransformerOfS$T = dart.constFn(async.StreamTransformer$(S, T)))(); |
let SinkOfT = () => (SinkOfT = dart.constFn(core.Sink$(T)))(); |
let StreamOfT = () => (StreamOfT = dart.constFn(async.Stream$(T)))(); |
- let EventSinkTo_ConverterStreamEventSinkOfS$dynamic = () => (EventSinkTo_ConverterStreamEventSinkOfS$dynamic = dart.constFn(dart.definiteFunctionType(_ConverterStreamEventSinkOfS$dynamic(), [async.EventSink])))(); |
class Converter extends core.Object { |
new() { |
} |
@@ -29521,7 +29516,7 @@ convert.Converter$ = dart.generic((S, T) => { |
} |
bind(stream) { |
StreamOfS()._check(stream); |
- return StreamOfT().eventTransformed(stream, dart.fn(sink => new (_ConverterStreamEventSinkOfS$dynamic())(this, sink), EventSinkTo_ConverterStreamEventSinkOfS$dynamic())); |
+ return StreamOfT().eventTransformed(stream, dart.fn(sink => new convert._ConverterStreamEventSink(this, sink), EventSinkTo_ConverterStreamEventSink())); |
} |
} |
dart.addTypeTests(Converter); |
@@ -35265,7 +35260,7 @@ core.Uri = class Uri extends core.Object { |
if (dart.test(pathToSplit[dartx.isNotEmpty]) && pathToSplit[dartx.codeUnitAt](0) == core.Uri._SLASH) { |
pathToSplit = pathToSplit[dartx.substring](1); |
} |
- result = pathToSplit == "" ? const || (const = dart.constList([], core.String)) : ListOfString().unmodifiable(pathToSplit[dartx.split]("/")[dartx.map](core.String)(core.Uri.decodeComponent)); |
+ result = pathToSplit == "" ? const || (const = dart.constList([], core.String)) : ListOfString().unmodifiable(pathToSplit[dartx.split]("/")[dartx.map](dart.dynamic)(core.Uri.decodeComponent)); |
this[_pathSegments] = result; |
return result; |
} |
@@ -36782,7 +36777,7 @@ developer.ServiceExtensionResponse = class ServiceExtensionResponse extends core |
} else { |
dart.assert(this[_errorCode] != null); |
dart.assert(this[_errorDetail] != null); |
- return convert.JSON.encode(dart.map({code: this[_errorCode], message: developer.ServiceExtensionResponse._errorCodeMessage(this[_errorCode]), data: dart.map({details: this[_errorDetail]}, core.String, core.String)}, core.String, core.Object)); |
+ return convert.JSON.encode(dart.map({code: this[_errorCode], message: developer.ServiceExtensionResponse._errorCodeMessage(this[_errorCode]), data: dart.map({details: this[_errorDetail]}, core.String, core.String)})); |
} |
} |
}; |
@@ -38556,7 +38551,7 @@ io.FileSystemEntity = class FileSystemEntity extends core.Object { |
return core.Uri.file(this.path); |
} |
resolveSymbolicLinks() { |
- return io._IOService._dispatch(io._FILE_RESOLVE_SYMBOLIC_LINKS, JSArrayOfString().of([this.path])).then(core.String)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_RESOLVE_SYMBOLIC_LINKS, [this.path]).then(core.String)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Cannot resolve symbolic links", this.path)); |
} |
@@ -38582,7 +38577,7 @@ io.FileSystemEntity = class FileSystemEntity extends core.Object { |
return io._FileSystemWatcher._watch(io.FileSystemEntity._trimTrailingPathSeparators(this.path), events, recursive); |
} |
static identical(path1, path2) { |
- return io._IOService._dispatch(io._FILE_IDENTICAL, JSArrayOfString().of([path1, path2])).then(core.bool)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_IDENTICAL, [path1, path2]).then(core.bool)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, dart.str`Error in FileSystemEntity.identical(${path1}, ${path2})`, "")); |
} |
@@ -38678,7 +38673,7 @@ io.FileSystemEntity = class FileSystemEntity extends core.Object { |
return core.int._check(result); |
} |
static _getTypeAsync(path, followLinks) { |
- return io._IOService._dispatch(io._FILE_TYPE, JSArrayOfObject().of([path, followLinks])).then(core.int)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_TYPE, [path, followLinks]).then(core.int)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Error getting type", path)); |
} |
@@ -38824,7 +38819,7 @@ io._Directory = class _Directory extends io.FileSystemEntity { |
return core.Uri.directory(this.path); |
} |
exists() { |
- return io._IOService._dispatch(io._DIRECTORY_EXISTS, JSArrayOfString().of([this.path])).then(core.bool)(dart.fn(response => { |
+ return io._IOService._dispatch(io._DIRECTORY_EXISTS, [this.path]).then(core.bool)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionOrErrorFromResponse](response, "Exists failed")); |
} |
@@ -38880,7 +38875,7 @@ io._Directory = class _Directory extends io.FileSystemEntity { |
} |
}, boolTodynamic())); |
} else { |
- return io._IOService._dispatch(io._DIRECTORY_CREATE, JSArrayOfString().of([this.path])).then(io._Directory)(dart.fn(response => { |
+ return io._IOService._dispatch(io._DIRECTORY_CREATE, [this.path]).then(io.Directory)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionOrErrorFromResponse](response, "Creation failed")); |
} |
@@ -38916,7 +38911,7 @@ io._Directory = class _Directory extends io.FileSystemEntity { |
} else { |
fullPrefix = dart.str`${this.path}${io.Platform.pathSeparator}${prefix}`; |
} |
- return io._IOService._dispatch(io._DIRECTORY_CREATE_TEMP, JSArrayOfString().of([fullPrefix])).then(io.Directory)(dart.fn(response => { |
+ return io._IOService._dispatch(io._DIRECTORY_CREATE_TEMP, [fullPrefix]).then(io.Directory)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionOrErrorFromResponse](response, "Creation of temporary directory failed")); |
} |
@@ -38943,7 +38938,7 @@ io._Directory = class _Directory extends io.FileSystemEntity { |
} |
[_delete](opts) { |
let recursive = opts && 'recursive' in opts ? opts.recursive : false; |
- return io._IOService._dispatch(io._DIRECTORY_DELETE, JSArrayOfObject().of([this.path, recursive])).then(io._Directory)(dart.fn(response => { |
+ return io._IOService._dispatch(io._DIRECTORY_DELETE, [this.path, recursive]).then(io.Directory)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionOrErrorFromResponse](response, "Deletion failed")); |
} |
@@ -38958,7 +38953,7 @@ io._Directory = class _Directory extends io.FileSystemEntity { |
} |
} |
rename(newPath) { |
- return io._IOService._dispatch(io._DIRECTORY_RENAME, JSArrayOfString().of([this.path, newPath])).then(io.Directory)(dart.fn(response => { |
+ return io._IOService._dispatch(io._DIRECTORY_RENAME, [this.path, newPath]).then(io.Directory)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionOrErrorFromResponse](response, "Rename failed")); |
} |
@@ -39088,7 +39083,7 @@ io._AsyncDirectoryLister = class _AsyncDirectoryLister extends core.Object { |
return this.controller.stream; |
} |
onListen() { |
- io._IOService._dispatch(io._DIRECTORY_LIST_START, JSArrayOfObject().of([this.path, this.recursive, this.followLinks])).then(dart.dynamic)(dart.fn(response => { |
+ io._IOService._dispatch(io._DIRECTORY_LIST_START, [this.path, this.recursive, this.followLinks]).then(dart.dynamic)(dart.fn(response => { |
if (typeof response == 'number') { |
this[_ops] = io._AsyncDirectoryListerOps.new(response); |
this.next(); |
@@ -39126,7 +39121,7 @@ io._AsyncDirectoryLister = class _AsyncDirectoryLister extends core.Object { |
return; |
} |
this.nextRunning = true; |
- io._IOService._dispatch(io._DIRECTORY_LIST_NEXT, JSArrayOfint().of([pointer])).then(dart.dynamic)(dart.fn(result => { |
+ io._IOService._dispatch(io._DIRECTORY_LIST_NEXT, [pointer]).then(dart.dynamic)(dart.fn(result => { |
this.nextRunning = false; |
if (core.List.is(result)) { |
this.next(); |
@@ -39183,7 +39178,7 @@ io._AsyncDirectoryLister = class _AsyncDirectoryLister extends core.Object { |
if (pointer == null) { |
this[_cleanup](); |
} else { |
- io._IOService._dispatch(io._DIRECTORY_LIST_STOP, JSArrayOfint().of([pointer])).whenComplete(dart.bind(this, _cleanup)); |
+ io._IOService._dispatch(io._DIRECTORY_LIST_STOP, [pointer]).whenComplete(dart.bind(this, _cleanup)); |
} |
} |
error(message) { |
@@ -39591,7 +39586,7 @@ io._FileStreamConsumer = class _FileStreamConsumer extends async.StreamConsumer$ |
return completer.future; |
} |
close() { |
- return this[_openFuture].then(io.File)(dart.fn(openedFile => openedFile.close(), RandomAccessFileToFutureOfRandomAccessFile())); |
+ return this[_openFuture].then(io.RandomAccessFile)(dart.fn(openedFile => openedFile.close(), RandomAccessFileToFutureOfRandomAccessFile())); |
} |
}; |
dart.addSimpleTypeTests(io._FileStreamConsumer); |
@@ -39607,7 +39602,7 @@ dart.setSignature(io._FileStreamConsumer, { |
}), |
methods: () => ({ |
addStream: dart.definiteFunctionType(async.Future$(io.File), [StreamOfListOfint()]), |
- close: dart.definiteFunctionType(async.Future$(io.File), []) |
+ close: dart.definiteFunctionType(async.Future$(io.RandomAccessFile), []) |
}) |
}); |
const _tryDecode = Symbol('_tryDecode'); |
@@ -39621,7 +39616,7 @@ io._File = class _File extends io.FileSystemEntity { |
} |
} |
exists() { |
- return io._IOService._dispatch(io._FILE_EXISTS, JSArrayOfString().of([this.path])).then(core.bool)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_EXISTS, [this.path]).then(core.bool)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Cannot check existence", this.path)); |
} |
@@ -39648,7 +39643,7 @@ io._File = class _File extends io.FileSystemEntity { |
create(opts) { |
let recursive = opts && 'recursive' in opts ? opts.recursive : false; |
let result = dart.test(recursive) ? this.parent.create({recursive: true}) : async.Future.value(null); |
- return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE, JSArrayOfString().of([this.path])), dynamicToFuture())).then(io._File)(dart.fn(response => { |
+ return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE, [this.path]), dynamicToFuture())).then(io.File)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Cannot create file", this.path)); |
} |
@@ -39675,9 +39670,9 @@ io._File = class _File extends io.FileSystemEntity { |
[_delete](opts) { |
let recursive = opts && 'recursive' in opts ? opts.recursive : false; |
if (dart.test(recursive)) { |
- return io.Directory.new(this.path).delete({recursive: true}).then(io._File)(dart.fn(_ => this, FileSystemEntityTo_File())); |
+ return io.Directory.new(this.path).delete({recursive: true}).then(io.File)(dart.fn(_ => this, FileSystemEntityTo_File())); |
} |
- return io._IOService._dispatch(io._FILE_DELETE, JSArrayOfString().of([this.path])).then(io._File)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_DELETE, [this.path]).then(io.File)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Cannot delete file", this.path)); |
} |
@@ -39699,7 +39694,7 @@ io._File = class _File extends io.FileSystemEntity { |
io._File.throwIfError(result, "Cannot delete file", this.path); |
} |
rename(newPath) { |
- return io._IOService._dispatch(io._FILE_RENAME, JSArrayOfString().of([this.path, newPath])).then(io.File)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_RENAME, [this.path, newPath]).then(io.File)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, dart.str`Cannot rename file to '${newPath}'`, this.path)); |
} |
@@ -39718,7 +39713,7 @@ io._File = class _File extends io.FileSystemEntity { |
return io.File.new(newPath); |
} |
copy(newPath) { |
- return io._IOService._dispatch(io._FILE_COPY, JSArrayOfString().of([this.path, newPath])).then(io.File)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_COPY, [this.path, newPath]).then(io.File)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, dart.str`Cannot copy file to '${newPath}'`, this.path)); |
} |
@@ -39738,7 +39733,7 @@ io._File = class _File extends io.FileSystemEntity { |
if (!dart.equals(mode, io.FileMode.READ) && !dart.equals(mode, io.FileMode.WRITE) && !dart.equals(mode, io.FileMode.APPEND) && !dart.equals(mode, io.FileMode.WRITE_ONLY) && !dart.equals(mode, io.FileMode.WRITE_ONLY_APPEND)) { |
return FutureOfRandomAccessFile().error(new core.ArgumentError('Invalid file mode for this operation')); |
} |
- return io._IOService._dispatch(io._FILE_OPEN, JSArrayOfObject().of([this.path, mode[_mode]])).then(io._RandomAccessFile)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_OPEN, [this.path, mode[_mode]]).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Cannot open file", this.path)); |
} |
@@ -39746,7 +39741,7 @@ io._File = class _File extends io.FileSystemEntity { |
}, dynamicTo_RandomAccessFile())); |
} |
length() { |
- return io._IOService._dispatch(io._FILE_LENGTH_FROM_PATH, JSArrayOfString().of([this.path])).then(core.int)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_LENGTH_FROM_PATH, [this.path]).then(core.int)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Cannot retrieve length of file", this.path)); |
} |
@@ -39762,7 +39757,7 @@ io._File = class _File extends io.FileSystemEntity { |
return core.int._check(result); |
} |
lastModified() { |
- return io._IOService._dispatch(io._FILE_LAST_MODIFIED, JSArrayOfString().of([this.path])).then(core.DateTime)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_LAST_MODIFIED, [this.path]).then(core.DateTime)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "Cannot retrieve modification time", this.path)); |
} |
@@ -40025,7 +40020,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
} |
} |
close() { |
- return this[_dispatch](io._FILE_CLOSE, [null], {markClosed: true}).then(io._RandomAccessFile)(dart.fn(result => { |
+ return this[_dispatch](io._FILE_CLOSE, [null], {markClosed: true}).then(io.RandomAccessFile)(dart.fn(result => { |
if (!dart.equals(result, -1)) { |
this.closed = dart.test(this.closed) || dart.equals(result, 0); |
this[_maybePerformCleanup](); |
@@ -40066,7 +40061,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
if (!(typeof bytes == 'number')) { |
dart.throw(new core.ArgumentError(bytes)); |
} |
- return this[_dispatch](io._FILE_READ, JSArrayOfint().of([null, bytes])).then(ListOfint())(dart.fn(response => { |
+ return this[_dispatch](io._FILE_READ, [null, bytes]).then(ListOfint())(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "read failed", this.path)); |
} |
@@ -40097,7 +40092,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
return FutureOfint().value(0); |
} |
let length = dart.notNull(end) - dart.notNull(start); |
- return this[_dispatch](io._FILE_READ_INTO, JSArrayOfint().of([null, length])).then(core.int)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_READ_INTO, [null, length]).then(core.int)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "readInto failed", this.path)); |
} |
@@ -40130,7 +40125,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
if (!(typeof value == 'number')) { |
dart.throw(new core.ArgumentError(value)); |
} |
- return this[_dispatch](io._FILE_WRITE_BYTE, JSArrayOfint().of([null, value])).then(io._RandomAccessFile)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_WRITE_BYTE, [null, value]).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "writeByte failed", this.path)); |
} |
@@ -40172,7 +40167,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
request[dartx._set](1, result.buffer); |
request[dartx._set](2, result.start); |
request[dartx._set](3, dart.notNull(end) - (dart.notNull(start) - dart.notNull(result.start))); |
- return this[_dispatch](io._FILE_WRITE_FROM, request).then(io._RandomAccessFile)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_WRITE_FROM, request).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "writeFrom failed", this.path)); |
} |
@@ -40231,7 +40226,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
return core.int._check(result); |
} |
setPosition(position) { |
- return this[_dispatch](io._FILE_SET_POSITION, JSArrayOfint().of([null, position])).then(io._RandomAccessFile)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_SET_POSITION, [null, position]).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "setPosition failed", this.path)); |
} |
@@ -40246,7 +40241,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
} |
} |
truncate(length) { |
- return this[_dispatch](io._FILE_TRUNCATE, JSArrayOfint().of([null, length])).then(io._RandomAccessFile)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_TRUNCATE, [null, length]).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "truncate failed", this.path)); |
} |
@@ -40277,7 +40272,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
return core.int._check(result); |
} |
flush() { |
- return this[_dispatch](io._FILE_FLUSH, [null]).then(io._RandomAccessFile)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_FLUSH, [null]).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, "flush failed", this.path)); |
} |
@@ -40302,7 +40297,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
dart.throw(new core.ArgumentError()); |
} |
let lock = dart.equals(mode, io.FileLock.EXCLUSIVE) ? io._RandomAccessFile.LOCK_EXCLUSIVE : io._RandomAccessFile.LOCK_SHARED; |
- return this[_dispatch](io._FILE_LOCK, JSArrayOfint().of([null, lock, start, end])).then(io._RandomAccessFile)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_LOCK, [null, lock, start, end]).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, 'lock failed', this.path)); |
} |
@@ -40318,7 +40313,7 @@ io._RandomAccessFile = class _RandomAccessFile extends core.Object { |
if (start == end) { |
dart.throw(new core.ArgumentError()); |
} |
- return this[_dispatch](io._FILE_LOCK, JSArrayOfint().of([null, io._RandomAccessFile.LOCK_UNLOCK, start, end])).then(io._RandomAccessFile)(dart.fn(response => { |
+ return this[_dispatch](io._FILE_LOCK, [null, io._RandomAccessFile.LOCK_UNLOCK, start, end]).then(io.RandomAccessFile)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
dart.throw(io._exceptionFromResponse(response, 'unlock failed', this.path)); |
} |
@@ -40520,7 +40515,7 @@ io.FileStat = class FileStat extends core.Object { |
if (dart.test(io.Platform.isWindows)) { |
path = io.FileSystemEntity._trimTrailingPathSeparators(path); |
} |
- return io._IOService._dispatch(io._FILE_STAT, JSArrayOfString().of([path])).then(io.FileStat)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_STAT, [path]).then(io.FileStat)(dart.fn(response => { |
if (dart.test(io._isErrorResponse(response))) { |
return io.FileStat._notFound; |
} |
@@ -41204,8 +41199,8 @@ let const; |
let const; |
io.HttpDate = class HttpDate extends core.Object { |
static format(date) { |
- let wkday = const || (const = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], core.String)); |
- let month = const || (const = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], core.String)); |
+ let wkday = const || (const = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], dart.dynamic)); |
+ let month = const || (const = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dart.dynamic)); |
let d = date.toUtc(); |
let sb = new core.StringBuffer(); |
sb.write(wkday[dartx._get](dart.notNull(d.weekday) - 1)); |
@@ -41227,12 +41222,12 @@ io.HttpDate = class HttpDate extends core.Object { |
} |
static parse(date) { |
let SP = 32; |
- let wkdays = const || (const = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], core.String)); |
- let weekdays = const || (const = dart.constList(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], core.String)); |
- let months = const || (const = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], core.String)); |
- let wkdaysLowerCase = const || (const = dart.constList(["mon", "tue", "wed", "thu", "fri", "sat", "sun"], core.String)); |
- let weekdaysLowerCase = const || (const = dart.constList(["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], core.String)); |
- let monthsLowerCase = const || (const = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], core.String)); |
+ let wkdays = const || (const = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], dart.dynamic)); |
+ let weekdays = const || (const = dart.constList(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], dart.dynamic)); |
+ let months = const || (const = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dart.dynamic)); |
+ let wkdaysLowerCase = const || (const = dart.constList(["mon", "tue", "wed", "thu", "fri", "sat", "sun"], dart.dynamic)); |
+ let weekdaysLowerCase = const || (const = dart.constList(["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], dart.dynamic)); |
+ let monthsLowerCase = const || (const = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], dart.dynamic)); |
let formatRfc1123 = 0; |
let formatRfc850 = 1; |
let formatAsctime = 2; |
@@ -41348,7 +41343,7 @@ io.HttpDate = class HttpDate extends core.Object { |
return new core.DateTime.utc(year, dart.notNull(month) + 1, day, hours, minutes, seconds, 0); |
} |
static _parseCookieDate(date) { |
- let monthsLowerCase = const || (const = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], core.String)); |
+ let monthsLowerCase = const || (const = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], dart.dynamic)); |
let position = 0; |
function error() { |
dart.throw(new io.HttpException(dart.str`Invalid cookie date ${date}`)); |
@@ -44061,7 +44056,7 @@ io._HttpOutgoing = class _HttpOutgoing extends core.Object { |
dart.dsend(sub, 'pause', future); |
} |
} |
- return this.socket.addStream(StreamOfListOfint()._check(controller.stream)).then(io._HttpOutboundMessage)(dart.fn(_ => this.outbound, dynamicTo_HttpOutboundMessage()), {onError: dart.fn((error, stackTrace) => { |
+ return this.socket.addStream(StreamOfListOfint()._check(controller.stream)).then(dart.dynamic)(dart.fn(_ => this.outbound, dynamicTo_HttpOutboundMessage()), {onError: dart.fn((error, stackTrace) => { |
if (dart.test(this[_gzip])) this[_gzipSink].close(); |
this[_socketError] = true; |
this[_doneCompleter].completeError(error, core.StackTrace._check(stackTrace)); |
@@ -44110,7 +44105,7 @@ io._HttpOutgoing = class _HttpOutgoing extends core.Object { |
this.socket.add(typed_data.Uint8List.view(this[_buffer][dartx.buffer], 0, this[_length])); |
} |
this[_buffer] = null; |
- return this.socket.flush().then(io._HttpOutboundMessage)(dart.fn(_ => { |
+ return this.socket.flush().then(dart.dynamic)(dart.fn(_ => { |
this[_doneCompleter].complete(this.socket); |
return this.outbound; |
}, dynamicTo_HttpOutboundMessage()), {onError: dart.fn((error, stackTrace) => { |
@@ -44413,7 +44408,7 @@ io._HttpClientConnection = class _HttpClientConnection extends core.Object { |
return request; |
} |
detachSocket() { |
- return this[_streamFuture].then(io._DetachedSocket)(dart.fn(_ => new io._DetachedSocket(this[_socket], this[_httpParser].detachIncoming()), dynamicTo_DetachedSocket())); |
+ return this[_streamFuture].then(io.Socket)(dart.fn(_ => new io._DetachedSocket(this[_socket], this[_httpParser].detachIncoming()), dynamicTo_DetachedSocket())); |
} |
destroy() { |
this.closed = true; |
@@ -45137,7 +45132,7 @@ io._HttpConnection = class _HttpConnection extends dart.mixin(collection.LinkedL |
this[_state] = io._HttpConnection._DETACHED; |
this[_httpServer][_connectionClosed](this); |
let detachedIncoming = this[_httpParser].detachIncoming(); |
- return this[_streamFuture].then(io._DetachedSocket)(dart.fn(_ => { |
+ return this[_streamFuture].then(io.Socket)(dart.fn(_ => { |
io._HttpConnection._connections[dartx.remove](this[_serviceId]); |
return new io._DetachedSocket(this[_socket], detachedIncoming); |
}, dynamicTo_DetachedSocket())); |
@@ -45261,10 +45256,10 @@ let const; |
let const; |
io._HttpServer = class _HttpServer extends dart.mixin(async.Stream$(io.HttpRequest), io._ServiceObject) { |
static bind(address, port, backlog, v6Only, shared) { |
- return io.ServerSocket.bind(address, port, {backlog: backlog, v6Only: v6Only, shared: shared}).then(io._HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), ServerSocketTo_HttpServer())); |
+ return io.ServerSocket.bind(address, port, {backlog: backlog, v6Only: v6Only, shared: shared}).then(io.HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), ServerSocketTo_HttpServer())); |
} |
static bindSecure(address, port, context, backlog, v6Only, requestClientCertificate, shared) { |
- return io.SecureServerSocket.bind(address, port, context, {backlog: backlog, v6Only: v6Only, requestClientCertificate: requestClientCertificate, shared: shared}).then(io._HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), SecureServerSocketTo_HttpServer())); |
+ return io.SecureServerSocket.bind(address, port, context, {backlog: backlog, v6Only: v6Only, requestClientCertificate: requestClientCertificate, shared: shared}).then(io.HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), SecureServerSocketTo_HttpServer())); |
} |
_(serverSocket, closeServer) { |
this.defaultResponseHeaders = io._HttpServer._initDefaultResponseHeaders(); |
@@ -47512,7 +47507,7 @@ io._FileResourceInfo = class _FileResourceInfo extends io._ReadWriteResourceInfo |
io._FileResourceInfo.openFiles[dartx.remove](info.id); |
} |
static getOpenFilesList() { |
- return ListOfMapOfString$String().from(io._FileResourceInfo.openFiles[dartx.values][dartx.map](MapOfString$String())(dart.fn(e => e.referenceValueMap, _FileResourceInfoToMapOfString$String()))); |
+ return ListOfMapOfString$String().from(io._FileResourceInfo.openFiles[dartx.values][dartx.map](dart.dynamic)(dart.fn(e => e.referenceValueMap, _FileResourceInfoToMapOfString$String()))); |
} |
static getOpenFiles(func, params) { |
dart.assert(dart.equals(func, 'ext.dart.io.getOpenFiles')); |
@@ -47587,7 +47582,7 @@ io._ProcessResourceInfo = class _ProcessResourceInfo extends io._IOResourceInfo |
io._ProcessResourceInfo.startedProcesses[dartx.remove](info.id); |
} |
static getStartedProcessesList() { |
- return ListOfMapOfString$String().from(io._ProcessResourceInfo.startedProcesses[dartx.values][dartx.map](MapOfString$String())(dart.fn(e => e.referenceValueMap, _ProcessResourceInfoToMapOfString$String()))); |
+ return ListOfMapOfString$String().from(io._ProcessResourceInfo.startedProcesses[dartx.values][dartx.map](dart.dynamic)(dart.fn(e => e.referenceValueMap, _ProcessResourceInfoToMapOfString$String()))); |
} |
static getStartedProcesses(func, params) { |
dart.assert(func == 'ext.dart.io.getProcesses'); |
@@ -47654,7 +47649,7 @@ io._SocketResourceInfo = class _SocketResourceInfo extends io._ReadWriteResource |
return dart.str`${dart.dload(dart.dload(this.socket, 'address'), 'host')}:${dart.dload(this.socket, 'port')}${remote}`; |
} |
static getOpenSocketsList() { |
- return ListOfMapOfString$String().from(io._SocketResourceInfo.openSockets[dartx.values][dartx.map](MapOfString$String())(dart.fn(e => e.referenceValueMap, _SocketResourceInfoToMapOfString$String()))); |
+ return ListOfMapOfString$String().from(io._SocketResourceInfo.openSockets[dartx.values][dartx.map](dart.dynamic)(dart.fn(e => e.referenceValueMap, _SocketResourceInfoToMapOfString$String()))); |
} |
getSocketInfoMap() { |
let result = this.fullValueMap; |
@@ -47837,7 +47832,7 @@ io._Link = class _Link extends io.FileSystemEntity { |
target = this[_makeWindowsLinkTarget](target); |
} |
let result = dart.test(recursive) ? this.parent.create({recursive: true}) : async.Future.value(null); |
- return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE_LINK, JSArrayOfString().of([this.path, target])), dynamicToFuture())).then(io._Link)(dart.fn(response => { |
+ return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE_LINK, [this.path, target]), dynamicToFuture())).then(io.Link)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionFromResponse](response, dart.str`Cannot create link to target '${target}'`, this.path)); |
} |
@@ -47876,9 +47871,9 @@ io._Link = class _Link extends io.FileSystemEntity { |
[_delete](opts) { |
let recursive = opts && 'recursive' in opts ? opts.recursive : false; |
if (dart.test(recursive)) { |
- return io.Directory.new(this.path).delete({recursive: true}).then(io._Link)(dart.fn(_ => this, FileSystemEntityTo_Link())); |
+ return io.Directory.new(this.path).delete({recursive: true}).then(io.Link)(dart.fn(_ => this, FileSystemEntityTo_Link())); |
} |
- return io._IOService._dispatch(io._FILE_DELETE_LINK, JSArrayOfString().of([this.path])).then(io._Link)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_DELETE_LINK, [this.path]).then(io.Link)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionFromResponse](response, "Cannot delete link", this.path)); |
} |
@@ -47894,7 +47889,7 @@ io._Link = class _Link extends io.FileSystemEntity { |
io._Link.throwIfError(result, "Cannot delete link", this.path); |
} |
rename(newPath) { |
- return io._IOService._dispatch(io._FILE_RENAME_LINK, JSArrayOfString().of([this.path, newPath])).then(io.Link)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_RENAME_LINK, [this.path, newPath]).then(io.Link)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionFromResponse](response, dart.str`Cannot rename link to '${newPath}'`, this.path)); |
} |
@@ -47907,7 +47902,7 @@ io._Link = class _Link extends io.FileSystemEntity { |
return io.Link.new(newPath); |
} |
target() { |
- return io._IOService._dispatch(io._FILE_LINK_TARGET, JSArrayOfString().of([this.path])).then(core.String)(dart.fn(response => { |
+ return io._IOService._dispatch(io._FILE_LINK_TARGET, [this.path]).then(core.String)(dart.fn(response => { |
if (dart.test(this[_isErrorResponse](response))) { |
dart.throw(this[_exceptionFromResponse](response, "Cannot get target of link", this.path)); |
} |
@@ -51513,7 +51508,7 @@ io._WebSocketTransformerImpl = class _WebSocketTransformerImpl extends core.Obje |
} |
let deflate = io._WebSocketTransformerImpl._negotiateCompression(request, response, compression); |
response.headers.contentLength = 0; |
- return response.detachSocket().then(io._WebSocketImpl)(dart.fn(socket => new io._WebSocketImpl._fromSocket(socket, protocol, compression, true, deflate), SocketTo_WebSocketImpl())); |
+ return response.detachSocket().then(dart.dynamic)(dart.fn(socket => new io._WebSocketImpl._fromSocket(socket, protocol, compression, true, deflate), SocketTo_WebSocketImpl())); |
} |
dart.fn(upgrade, StringToFuture()); |
let protocols = request.headers._get('Sec-WebSocket-Protocol'); |
@@ -51623,7 +51618,7 @@ io._WebSocketPerMessageDeflate = class _WebSocketPerMessageDeflate extends core. |
this[_ensureDecoder](); |
let data = []; |
data[dartx.addAll](msg); |
- data[dartx.addAll](const || (const = dart.constList([0, 0, 255, 255], core.int))); |
+ data[dartx.addAll](const || (const = dart.constList([0, 0, 255, 255], dart.dynamic))); |
this.decoder.process(ListOfint()._check(data), 0, data[dartx.length]); |
let result = []; |
let out = null; |
@@ -51823,7 +51818,7 @@ io._WebSocketOutgoingTransformer = class _WebSocketOutgoingTransformer extends c |
} |
dart.assert(index == headerSize); |
if (data == null) { |
- return JSArrayOfUint8List().of([header]); |
+ return JSArrayOfListOfint().of([header]); |
} else { |
return JSArrayOfListOfint().of([header, data]); |
} |
@@ -51944,7 +51939,7 @@ io._WebSocketConsumer = class _WebSocketConsumer extends core.Object { |
this[_ensureController](); |
const closeSocket = (function() { |
return this.socket.close().catchError(dart.fn(_ => { |
- }, dynamicTodynamic())).then(io._WebSocketImpl)(dart.fn(_ => this.webSocket, dynamicTo_WebSocketImpl())); |
+ }, dynamicTodynamic())).then(dart.dynamic)(dart.fn(_ => this.webSocket, dynamicTo_WebSocketImpl())); |
}).bind(this); |
dart.fn(closeSocket, VoidToFuture()); |
this[_controller].close(); |
@@ -52763,10 +52758,8 @@ dart.setSignature(js.JsFunction, { |
const _checkIndex = Symbol('_checkIndex'); |
const _checkInsertIndex = Symbol('_checkInsertIndex'); |
js.JsArray$ = dart.generic(E => { |
- let JSArrayOfE = () => (JSArrayOfE = dart.constFn(_interceptors.JSArray$(E)))(); |
let IterableOfE = () => (IterableOfE = dart.constFn(core.Iterable$(E)))(); |
let EAndEToint = () => (EAndEToint = dart.constFn(dart.functionType(core.int, [E, E])))(); |
- let JSArrayOfEAndEToint = () => (JSArrayOfEAndEToint = dart.constFn(_interceptors.JSArray$(EAndEToint())))(); |
class JsArray extends dart.mixin(js.JsObject, collection.ListMixin$(E)) { |
new() { |
super._fromJs([]); |
@@ -52825,7 +52818,7 @@ js.JsArray$ = dart.generic(E => { |
} |
add(value) { |
E._check(value); |
- this.callMethod('push', JSArrayOfE().of([value])); |
+ this.callMethod('push', [value]); |
} |
addAll(iterable) { |
IterableOfE()._check(iterable); |
@@ -52835,11 +52828,11 @@ js.JsArray$ = dart.generic(E => { |
insert(index, element) { |
E._check(element); |
this[_checkInsertIndex](index); |
- this.callMethod('splice', JSArrayOfObject().of([index, 0, element])); |
+ this.callMethod('splice', [index, 0, element]); |
} |
removeAt(index) { |
this[_checkIndex](index); |
- return E.as(dart.dindex(this.callMethod('splice', JSArrayOfint().of([index, 1])), 0)); |
+ return E.as(dart.dindex(this.callMethod('splice', [index, 1]), 0)); |
} |
removeLast() { |
if (this.length == 0) dart.throw(new core.RangeError(-1)); |
@@ -52847,7 +52840,7 @@ js.JsArray$ = dart.generic(E => { |
} |
removeRange(start, end) { |
js.JsArray._checkRange(start, end, this.length); |
- this.callMethod('splice', JSArrayOfint().of([start, dart.notNull(end) - dart.notNull(start)])); |
+ this.callMethod('splice', [start, dart.notNull(end) - dart.notNull(start)]); |
} |
setRange(start, end, iterable, skipCount) { |
IterableOfE()._check(iterable); |
@@ -52862,7 +52855,7 @@ js.JsArray$ = dart.generic(E => { |
} |
sort(compare) { |
if (compare === void 0) compare = null; |
- this.callMethod('sort', compare == null ? [] : JSArrayOfEAndEToint().of([compare])); |
+ this.callMethod('sort', compare == null ? [] : [compare]); |
} |
} |
dart.addTypeTests(JsArray); |
@@ -56391,10 +56384,10 @@ html.Element = class Element extends html.Node { |
return html.window[_getComputedStyle](this, pseudoElement); |
} |
get [dartx.client]() { |
- return new (RectangleOfint())(this[dartx.clientLeft], this[dartx.clientTop], this[dartx.clientWidth], this[dartx.clientHeight]); |
+ return new (RectangleOfnum())(this[dartx.clientLeft], this[dartx.clientTop], this[dartx.clientWidth], this[dartx.clientHeight]); |
} |
get [dartx.offset]() { |
- return new (RectangleOfint())(this[dartx.offsetLeft], this[dartx.offsetTop], this[dartx.offsetWidth], this[dartx.offsetHeight]); |
+ return new (RectangleOfnum())(this[dartx.offsetLeft], this[dartx.offsetTop], this[dartx.offsetWidth], this[dartx.offsetHeight]); |
} |
[dartx.appendText](text) { |
this[dartx.append](html.Text.new(text)); |
@@ -69883,14 +69876,14 @@ dart.defineExtensionNames([ |
html.DirectoryEntry = class DirectoryEntry extends html.Entry { |
[dartx.createDirectory](path, opts) { |
let exclusive = opts && 'exclusive' in opts ? opts.exclusive : false; |
- return this[_getDirectory](path, {options: dart.map({create: true, exclusive: exclusive}, core.String, core.bool)}); |
+ return this[_getDirectory](path, {options: dart.map({create: true, exclusive: exclusive})}); |
} |
[dartx.getDirectory](path) { |
return this[_getDirectory](path); |
} |
[dartx.createFile](path, opts) { |
let exclusive = opts && 'exclusive' in opts ? opts.exclusive : false; |
- return this[_getFile](path, {options: dart.map({create: true, exclusive: exclusive}, core.String, core.bool)}); |
+ return this[_getFile](path, {options: dart.map({create: true, exclusive: exclusive})}); |
} |
[dartx.getFile](path) { |
return this[_getFile](path); |
@@ -73131,7 +73124,7 @@ html.Events = class Events extends core.Object { |
dart.setSignature(html.Events, { |
constructors: () => ({new: dart.definiteFunctionType(html.Events, [html.EventTarget])}), |
fields: () => ({[_ptr]: html.EventTarget}), |
- methods: () => ({_get: dart.definiteFunctionType(async.Stream, [core.String])}) |
+ methods: () => ({_get: dart.definiteFunctionType(async.Stream$(html.Event), [core.String])}) |
}); |
html.ElementEvents = class ElementEvents extends html.Events { |
new(ptr) { |
@@ -81203,7 +81196,7 @@ html.MutationObserver = class MutationObserver extends _interceptors.Interceptor |
} |
static new(callback) { |
0; |
- return new (window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver)(_js_helper.convertDartClosureToJS(html._wrapZoneBinaryCallback)(html._wrapBinaryZone(dart.dynamic, dart.dynamic, dart.dynamic)(callback), 2)); |
+ return new (window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver)(_js_helper.convertDartClosureToJS(dynamicAnddynamicTodynamic())(html._wrapBinaryZone(dart.dynamic, dart.dynamic, dart.dynamic)(callback), 2)); |
} |
}; |
dart.setSignature(html.MutationObserver, { |
@@ -85247,7 +85240,7 @@ html.RtcPeerConnection = class RtcPeerConnection extends html.EventTarget { |
} |
static get supported() { |
try { |
- html.RtcPeerConnection.new(dart.map({iceServers: JSArrayOfMapOfString$String().of([dart.map({url: "stun:localhost"}, core.String, core.String)])}, core.String, ListOfMapOfString$String())); |
+ html.RtcPeerConnection.new(dart.map({iceServers: JSArrayOfMapOfString$String().of([dart.map({url: "stun:localhost"}, core.String, core.String)])})); |
return true; |
} catch (_) { |
return false; |
@@ -85669,7 +85662,7 @@ dart.defineExtensionNames([ |
]); |
html.Screen = class Screen extends _interceptors.Interceptor { |
get [dartx.available]() { |
- return new (RectangleOfint())(this[_availLeft], this[_availTop], this[_availWidth], this[_availHeight]); |
+ return new (RectangleOfnum())(this[_availLeft], this[_availTop], this[_availWidth], this[_availHeight]); |
} |
static _() { |
dart.throw(new core.UnsupportedError("Not supported")); |
@@ -86234,8 +86227,8 @@ html.SelectElement = class SelectElement extends html.HtmlElement { |
return this.setCustomValidity.apply(this, args); |
} |
get [dartx.options]() { |
- let options = ListOfOptionElement().from(this[dartx.querySelectorAll](html.Element)('option')); |
- return new (UnmodifiableListViewOfOptionElement())(options); |
+ let options = this[dartx.querySelectorAll](html.OptionElement)('option'); |
+ return new (UnmodifiableListViewOfOptionElement())(options.toList()); |
} |
get [dartx.selectedOptions]() { |
if (dart.test(this[dartx.multiple])) { |