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

Unified Diff: lib/runtime/dart/isolate.js

Issue 1145283002: Use short array syntax in method signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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/runtime/dart/isolate.js
diff --git a/lib/runtime/dart/isolate.js b/lib/runtime/dart/isolate.js
index 547cd41b1e12f76b281ca23ae2d1377713b0a432..59ac4ff0e2b31ea4bf50262f5e5be1160fde25ea 100644
--- a/lib/runtime/dart/isolate.js
+++ b/lib/runtime/dart/isolate.js
@@ -20,7 +20,7 @@ var async = dart.import(async);
}
IsolateSpawnException[dart.implements] = () => [core.Exception];
dart.setSignature(IsolateSpawnException, {
- methods: () => ({toString: dart.functionType(core.String, [])})
+ methods: () => ({toString: [core.String, []]})
});
let _pause = Symbol('_pause');
class Isolate extends core.Object {
@@ -155,20 +155,20 @@ var async = dart.import(async);
}
dart.setSignature(Isolate, {
methods: () => ({
- pause: dart.functionType(Capability, [], [Capability]),
- [_pause]: dart.functionType(dart.void, [Capability]),
- resume: dart.functionType(dart.void, [Capability]),
- addOnExitListener: dart.functionType(dart.void, [SendPort]),
- removeOnExitListener: dart.functionType(dart.void, [SendPort]),
- setErrorsFatal: dart.functionType(dart.void, [core.bool]),
- kill: dart.functionType(dart.void, [], [core.int]),
- ping: dart.functionType(dart.void, [SendPort], [core.int]),
- addErrorListener: dart.functionType(dart.void, [SendPort]),
- removeErrorListener: dart.functionType(dart.void, [SendPort])
+ pause: [Capability, [], [Capability]],
+ [_pause]: [dart.void, [Capability]],
+ resume: [dart.void, [Capability]],
+ addOnExitListener: [dart.void, [SendPort]],
+ removeOnExitListener: [dart.void, [SendPort]],
+ setErrorsFatal: [dart.void, [core.bool]],
+ kill: [dart.void, [], [core.int]],
+ ping: [dart.void, [SendPort], [core.int]],
+ addErrorListener: [dart.void, [SendPort]],
+ removeErrorListener: [dart.void, [SendPort]]
}),
statics: () => ({
- spawn: dart.functionType(async.Future$(Isolate), [dart.functionType(dart.void, [dart.dynamic]), dart.dynamic], {ause: core.bool}),
- spawnUri: dart.functionType(async.Future$(Isolate), [core.Uri, core.List$(core.String), dart.dynamic], {ause: core.bool, ackageRoo: core.Uri})
+ spawn: [async.Future$(Isolate), [dart.functionType(dart.void, [dart.dynamic]), dart.dynamic], {ause: core.bool}],
+ spawnUri: [async.Future$(Isolate), [core.Uri, core.List$(core.String), dart.dynamic], {ause: core.bool, ackageRoo: core.Uri}]
}),
names: ['spawn', 'spawnUri']
});
@@ -214,7 +214,7 @@ var async = dart.import(async);
}
_IsolateUnhandledException[dart.implements] = () => [core.Exception];
dart.setSignature(_IsolateUnhandledException, {
- methods: () => ({toString: dart.functionType(core.String, [])})
+ methods: () => ({toString: [core.String, []]})
});
let _description = Symbol('_description');
class RemoteError extends core.Object {
@@ -228,7 +228,7 @@ var async = dart.import(async);
}
RemoteError[dart.implements] = () => [core.Error];
dart.setSignature(RemoteError, {
- methods: () => ({toString: dart.functionType(core.String, [])})
+ methods: () => ({toString: [core.String, []]})
});
let _trace = Symbol('_trace');
class _RemoteStackTrace extends core.Object {
@@ -241,7 +241,7 @@ var async = dart.import(async);
}
_RemoteStackTrace[dart.implements] = () => [core.StackTrace];
dart.setSignature(_RemoteStackTrace, {
- methods: () => ({toString: dart.functionType(core.String, [])})
+ methods: () => ({toString: [core.String, []]})
});
// Exports:
exports.Capability = Capability;
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/math.js » ('j') | lib/runtime/dart_runtime.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698