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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 42543006: Supress list mixins for deprecated/removed class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index aa309ae46cede98167b2e93b8754743bedc1200c..49d5cb82bdaa2003b6f27ffa40d3332813ef6e78 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -26633,54 +26633,10 @@ class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix
@DomName('HTMLAllCollection')
// http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dom-document-all
@deprecated // deprecated
-abstract class _HTMLAllCollection extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node> implements List native "HTMLAllCollection" {
+abstract class _HTMLAllCollection extends Interceptor native "HTMLAllCollection" {
// To suppress missing implicit constructor warnings.
factory _HTMLAllCollection._() { throw new UnsupportedError("Not supported"); }
- Node operator[](int index) {
- if (JS("bool", "# >>> 0 !== # || # >= #", index,
- index, index, length))
- throw new RangeError.range(index, 0, length);
- return this.item(index);
- }
- void operator[]=(int index, Node value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<Node> mixins.
- // Node is the element type.
-
-
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- Node get first {
- if (this.length > 0) {
- return JS('Node', '#[0]', this);
- }
- throw new StateError("No elements");
- }
-
- Node get last {
- int len = this.length;
- if (len > 0) {
- return JS('Node', '#[#]', this, len - 1);
- }
- throw new StateError("No elements");
- }
-
- Node get single {
- int len = this.length;
- if (len == 1) {
- return JS('Node', '#[0]', this);
- }
- if (len == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- Node elementAt(int index) => this[index];
- // -- end List<Node> mixins.
-
@JSName('item')
@DomName('HTMLAllCollection.item')
@DocsEditable()
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698