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

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 711003002: Add some ArgumentError and RangeError constructors that capture more information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library dart.dom.svg; 1 library dart.dom.svg;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_internal' hide deprecated; 5 import 'dart:_internal' hide deprecated;
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:_blink' as _blink; 9 import 'dart:_blink' as _blink;
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 2937 matching lines...) Expand 10 before | Expand all | Expand 10 after
2948 @DocsEditable() 2948 @DocsEditable()
2949 @Experimental() // untriaged 2949 @Experimental() // untriaged
2950 int get length => _blink.BlinkSVGLengthList.instance.length_Getter_(this); 2950 int get length => _blink.BlinkSVGLengthList.instance.length_Getter_(this);
2951 2951
2952 @DomName('SVGLengthList.numberOfItems') 2952 @DomName('SVGLengthList.numberOfItems')
2953 @DocsEditable() 2953 @DocsEditable()
2954 int get numberOfItems => _blink.BlinkSVGLengthList.instance.numberOfItems_Gett er_(this); 2954 int get numberOfItems => _blink.BlinkSVGLengthList.instance.numberOfItems_Gett er_(this);
2955 2955
2956 Length operator[](int index) { 2956 Length operator[](int index) {
2957 if (index < 0 || index >= length) 2957 if (index < 0 || index >= length)
2958 throw new RangeError.range(index, 0, length); 2958 throw new RangeError.index(index, this);
2959 return getItem(index); 2959 return getItem(index);
2960 } 2960 }
2961 2961
2962 void operator[]=(int index, Length value) { 2962 void operator[]=(int index, Length value) {
2963 throw new UnsupportedError("Cannot assign element of immutable List."); 2963 throw new UnsupportedError("Cannot assign element of immutable List.");
2964 } 2964 }
2965 // -- start List<Length> mixins. 2965 // -- start List<Length> mixins.
2966 // Length is the element type. 2966 // Length is the element type.
2967 2967
2968 2968
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
3440 @DocsEditable() 3440 @DocsEditable()
3441 @Experimental() // untriaged 3441 @Experimental() // untriaged
3442 int get length => _blink.BlinkSVGNumberList.instance.length_Getter_(this); 3442 int get length => _blink.BlinkSVGNumberList.instance.length_Getter_(this);
3443 3443
3444 @DomName('SVGNumberList.numberOfItems') 3444 @DomName('SVGNumberList.numberOfItems')
3445 @DocsEditable() 3445 @DocsEditable()
3446 int get numberOfItems => _blink.BlinkSVGNumberList.instance.numberOfItems_Gett er_(this); 3446 int get numberOfItems => _blink.BlinkSVGNumberList.instance.numberOfItems_Gett er_(this);
3447 3447
3448 Number operator[](int index) { 3448 Number operator[](int index) {
3449 if (index < 0 || index >= length) 3449 if (index < 0 || index >= length)
3450 throw new RangeError.range(index, 0, length); 3450 throw new RangeError.index(index, this);
3451 return getItem(index); 3451 return getItem(index);
3452 } 3452 }
3453 3453
3454 void operator[]=(int index, Number value) { 3454 void operator[]=(int index, Number value) {
3455 throw new UnsupportedError("Cannot assign element of immutable List."); 3455 throw new UnsupportedError("Cannot assign element of immutable List.");
3456 } 3456 }
3457 // -- start List<Number> mixins. 3457 // -- start List<Number> mixins.
3458 // Number is the element type. 3458 // Number is the element type.
3459 3459
3460 3460
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
4464 @DocsEditable() 4464 @DocsEditable()
4465 @Experimental() // untriaged 4465 @Experimental() // untriaged
4466 int get length => _blink.BlinkSVGPathSegList.instance.length_Getter_(this); 4466 int get length => _blink.BlinkSVGPathSegList.instance.length_Getter_(this);
4467 4467
4468 @DomName('SVGPathSegList.numberOfItems') 4468 @DomName('SVGPathSegList.numberOfItems')
4469 @DocsEditable() 4469 @DocsEditable()
4470 int get numberOfItems => _blink.BlinkSVGPathSegList.instance.numberOfItems_Get ter_(this); 4470 int get numberOfItems => _blink.BlinkSVGPathSegList.instance.numberOfItems_Get ter_(this);
4471 4471
4472 PathSeg operator[](int index) { 4472 PathSeg operator[](int index) {
4473 if (index < 0 || index >= length) 4473 if (index < 0 || index >= length)
4474 throw new RangeError.range(index, 0, length); 4474 throw new RangeError.index(index, this);
4475 return getItem(index); 4475 return getItem(index);
4476 } 4476 }
4477 4477
4478 void operator[]=(int index, PathSeg value) { 4478 void operator[]=(int index, PathSeg value) {
4479 throw new UnsupportedError("Cannot assign element of immutable List."); 4479 throw new UnsupportedError("Cannot assign element of immutable List.");
4480 } 4480 }
4481 // -- start List<PathSeg> mixins. 4481 // -- start List<PathSeg> mixins.
4482 // PathSeg is the element type. 4482 // PathSeg is the element type.
4483 4483
4484 4484
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
5234 @DocsEditable() 5234 @DocsEditable()
5235 @Experimental() // untriaged 5235 @Experimental() // untriaged
5236 int get length => _blink.BlinkSVGStringList.instance.length_Getter_(this); 5236 int get length => _blink.BlinkSVGStringList.instance.length_Getter_(this);
5237 5237
5238 @DomName('SVGStringList.numberOfItems') 5238 @DomName('SVGStringList.numberOfItems')
5239 @DocsEditable() 5239 @DocsEditable()
5240 int get numberOfItems => _blink.BlinkSVGStringList.instance.numberOfItems_Gett er_(this); 5240 int get numberOfItems => _blink.BlinkSVGStringList.instance.numberOfItems_Gett er_(this);
5241 5241
5242 String operator[](int index) { 5242 String operator[](int index) {
5243 if (index < 0 || index >= length) 5243 if (index < 0 || index >= length)
5244 throw new RangeError.range(index, 0, length); 5244 throw new RangeError.index(index, this);
5245 return getItem(index); 5245 return getItem(index);
5246 } 5246 }
5247 5247
5248 void operator[]=(int index, String value) { 5248 void operator[]=(int index, String value) {
5249 throw new UnsupportedError("Cannot assign element of immutable List."); 5249 throw new UnsupportedError("Cannot assign element of immutable List.");
5250 } 5250 }
5251 // -- start List<String> mixins. 5251 // -- start List<String> mixins.
5252 // String is the element type. 5252 // String is the element type.
5253 5253
5254 5254
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
6746 @DocsEditable() 6746 @DocsEditable()
6747 @Experimental() // untriaged 6747 @Experimental() // untriaged
6748 int get length => _blink.BlinkSVGTransformList.instance.length_Getter_(this); 6748 int get length => _blink.BlinkSVGTransformList.instance.length_Getter_(this);
6749 6749
6750 @DomName('SVGTransformList.numberOfItems') 6750 @DomName('SVGTransformList.numberOfItems')
6751 @DocsEditable() 6751 @DocsEditable()
6752 int get numberOfItems => _blink.BlinkSVGTransformList.instance.numberOfItems_G etter_(this); 6752 int get numberOfItems => _blink.BlinkSVGTransformList.instance.numberOfItems_G etter_(this);
6753 6753
6754 Transform operator[](int index) { 6754 Transform operator[](int index) {
6755 if (index < 0 || index >= length) 6755 if (index < 0 || index >= length)
6756 throw new RangeError.range(index, 0, length); 6756 throw new RangeError.index(index, this);
6757 return getItem(index); 6757 return getItem(index);
6758 } 6758 }
6759 6759
6760 void operator[]=(int index, Transform value) { 6760 void operator[]=(int index, Transform value) {
6761 throw new UnsupportedError("Cannot assign element of immutable List."); 6761 throw new UnsupportedError("Cannot assign element of immutable List.");
6762 } 6762 }
6763 // -- start List<Transform> mixins. 6763 // -- start List<Transform> mixins.
6764 // Transform is the element type. 6764 // Transform is the element type.
6765 6765
6766 6766
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
7527 @DocsEditable() 7527 @DocsEditable()
7528 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7528 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7529 /** 7529 /**
7530 * Constructor instantiated by the DOM when a custom element has been created. 7530 * Constructor instantiated by the DOM when a custom element has been created.
7531 * 7531 *
7532 * This can only be called by subclasses from their created constructor. 7532 * This can only be called by subclasses from their created constructor.
7533 */ 7533 */
7534 _SVGVKernElement.created() : super.created(); 7534 _SVGVKernElement.created() : super.created();
7535 7535
7536 } 7536 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698