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

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

Issue 1144303003: Use signature inheritance when method types are unchanged (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Remove empty signatures 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
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/math.js
diff --git a/lib/runtime/dart/math.js b/lib/runtime/dart/math.js
index 0316293e2e9a3ec9aea062d1784117c96ce60004..4afd836c2304c47fdb6b8f2918ca1b9632bb023c 100644
--- a/lib/runtime/dart/math.js
+++ b/lib/runtime/dart/math.js
@@ -76,8 +76,6 @@ var _js_helper = dart.lazyImport(_js_helper);
}
dart.setSignature(Point, {
methods: () => ({
- toString: dart.functionType(core.String, []),
- '==': dart.functionType(core.bool, [dart.dynamic]),
'+': dart.functionType(Point$(T), [Point$(T)]),
'-': dart.functionType(Point$(T), [Point$(T)]),
'*': dart.functionType(Point$(T), [core.num]),
@@ -95,7 +93,6 @@ var _js_helper = dart.lazyImport(_js_helper);
return seed == null ? dart.const(new _JSRandom()) : new _Random(seed);
}
}
- dart.setSignature(Random, {});
let _RectangleBase$ = dart.generic(function(T) {
class _RectangleBase extends core.Object {
_RectangleBase() {
@@ -162,8 +159,6 @@ var _js_helper = dart.lazyImport(_js_helper);
}
dart.setSignature(_RectangleBase, {
methods: () => ({
- toString: dart.functionType(core.String, []),
- '==': dart.functionType(core.bool, [dart.dynamic]),
intersection: dart.functionType(Rectangle$(T), [Rectangle$(T)]),
intersects: dart.functionType(core.bool, [Rectangle$(core.num)]),
boundingBox: dart.functionType(Rectangle$(T), [Rectangle$(T)]),
@@ -192,7 +187,6 @@ var _js_helper = dart.lazyImport(_js_helper);
}
}
dart.defineNamedConstructor(Rectangle, 'fromPoints');
- dart.setSignature(Rectangle, {});
return Rectangle;
});
let Rectangle = Rectangle$();
@@ -235,7 +229,6 @@ var _js_helper = dart.lazyImport(_js_helper);
}
MutableRectangle[dart.implements] = () => [Rectangle$(T)];
dart.defineNamedConstructor(MutableRectangle, 'fromPoints');
- dart.setSignature(MutableRectangle, {});
return MutableRectangle;
});
let MutableRectangle = MutableRectangle$();
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698