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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/private/js_array.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart._interceptors; 5 part of dart._interceptors;
6 6
7 /** 7 /**
8 * The interceptor class for [List]. The compiler recognizes this 8 * The interceptor class for [List]. The compiler recognizes this
9 * class as an interceptor, and changes references to [:this:] to 9 * class as an interceptor, and changes references to [:this:] to
10 * actually use the receiver of the method, which is generated as an extra 10 * actually use the receiver of the method, which is generated as an extra
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 577
578 /** 578 /**
579 * Dummy subclasses that allow the backend to track more precise 579 * Dummy subclasses that allow the backend to track more precise
580 * information about arrays through their type. The CPA type inference 580 * information about arrays through their type. The CPA type inference
581 * relies on the fact that these classes do not override [] nor []=. 581 * relies on the fact that these classes do not override [] nor []=.
582 * 582 *
583 * These classes are really a fiction, and can have no methods, since 583 * These classes are really a fiction, and can have no methods, since
584 * getInterceptor always returns JSArray. We should consider pushing the 584 * getInterceptor always returns JSArray. We should consider pushing the
585 * 'isGrowable' and 'isMutable' checks into the getInterceptor implementation so 585 * 'isGrowable' and 'isMutable' checks into the getInterceptor implementation so
586 * these classes can have specialized implementations. Doing so will challenge 586 * these classes can have specialized implementations. Doing so will challenge
587 * many assuptions in the JS backend. 587 * many assumptions in the JS backend.
588 */ 588 */
589 class JSMutableArray<E> extends JSArray<E> {} 589 class JSMutableArray<E> extends JSArray<E> {}
590 590
591 class JSFixedArray<E> extends JSMutableArray<E> {} 591 class JSFixedArray<E> extends JSMutableArray<E> {}
592 592
593 class JSExtendableArray<E> extends JSMutableArray<E> {} 593 class JSExtendableArray<E> extends JSMutableArray<E> {}
594 594
595 class JSUnmodifiableArray<E> extends JSArray<E> {} // Already is JSIndexable. 595 class JSUnmodifiableArray<E> extends JSArray<E> {} // Already is JSIndexable.
596 596
597 /// An [Iterator] that iterates a JSArray. 597 /// An [Iterator] that iterates a JSArray.
(...skipping 23 matching lines...) Expand all
621 621
622 if (_index >= length) { 622 if (_index >= length) {
623 _current = null; 623 _current = null;
624 return false; 624 return false;
625 } 625 }
626 _current = _iterable[_index]; 626 _current = _iterable[_index];
627 _index++; 627 _index++;
628 return true; 628 return true;
629 } 629 }
630 } 630 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/foreign_helper.dart ('k') | pkg/dev_compiler/tool/input_sdk/private/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698