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

Side by Side Diff: lib/runtime/dart/_interceptors.js

Issue 1083763003: refactor emitMemberName to be used more consistently (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var _interceptors; 1 var _interceptors;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 let JSArray = Array; 4 let JSArray = Array;
5 let JSMutableArray$ = dart.generic(function(E) { 5 let JSMutableArray$ = dart.generic(function(E) {
6 class JSMutableArray extends JSArray$(E) {} 6 class JSMutableArray extends JSArray$(E) {}
7 JSMutableArray[dart.implements] = () => [JSMutableIndexable]; 7 JSMutableArray[dart.implements] = () => [JSMutableIndexable];
8 return JSMutableArray; 8 return JSMutableArray;
9 }); 9 });
10 let JSMutableArray = JSMutableArray$(); 10 let JSMutableArray = JSMutableArray$();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 toString() { 219 toString() {
220 if (dart.notNull(dart.equals(this, 0)) && 1 / this < 0) { 220 if (dart.notNull(dart.equals(this, 0)) && 1 / this < 0) {
221 return '-0.0'; 221 return '-0.0';
222 } else { 222 } else {
223 return "" + this; 223 return "" + this;
224 } 224 }
225 } 225 }
226 get hashCode() { 226 get hashCode() {
227 return this & 0x1FFFFFFF; 227 return this & 0x1FFFFFFF;
228 } 228 }
229 ['-']() { 229 ['unary-']() {
230 return -this; 230 return -this;
231 } 231 }
232 ['+'](other) { 232 ['+'](other) {
233 if (!dart.is(other, core.num)) 233 if (!dart.is(other, core.num))
234 throw new core.ArgumentError(other); 234 throw new core.ArgumentError(other);
235 return this + other; 235 return this + other;
236 } 236 }
237 ['-'](other) { 237 ['-'](other) {
238 if (!dart.is(other, core.num)) 238 if (!dart.is(other, core.num))
239 throw new core.ArgumentError(other); 239 throw new core.ArgumentError(other);
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 _js_helper.checkInt(startIndex); 503 _js_helper.checkInt(startIndex);
504 if (dart.notNull(startIndex) < 0 || dart.notNull(startIndex) > dart.notNul l(this.length)) { 504 if (dart.notNull(startIndex) < 0 || dart.notNull(startIndex) > dart.notNul l(this.length)) {
505 throw new core.RangeError.range(startIndex, 0, this.length); 505 throw new core.RangeError.range(startIndex, 0, this.length);
506 } 506 }
507 return dart.as(_js_helper.stringReplaceFirstUnchecked(this, from, to, star tIndex), core.String); 507 return dart.as(_js_helper.stringReplaceFirstUnchecked(this, from, to, star tIndex), core.String);
508 } 508 }
509 split(pattern) { 509 split(pattern) {
510 _js_helper.checkNull(pattern); 510 _js_helper.checkNull(pattern);
511 if (typeof pattern == 'string') { 511 if (typeof pattern == 'string') {
512 return dart.as(this.split(pattern), core.List$(core.String)); 512 return dart.as(this.split(pattern), core.List$(core.String));
513 } else if (dart.notNull(dart.is(pattern, _js_helper.JSSyntaxRegExp)) && _j s_helper.regExpCaptureCount(pattern) == 0) { 513 } else if (dart.is(pattern, _js_helper.JSSyntaxRegExp) && _js_helper.regEx pCaptureCount(pattern) == 0) {
514 let re = _js_helper.regExpGetNative(pattern); 514 let re = _js_helper.regExpGetNative(pattern);
515 return dart.as(this.split(re), core.List$(core.String)); 515 return dart.as(this.split(re), core.List$(core.String));
516 } else { 516 } else {
517 return this[_defaultSplit](pattern); 517 return this[_defaultSplit](pattern);
518 } 518 }
519 } 519 }
520 [_defaultSplit](pattern) { 520 [_defaultSplit](pattern) {
521 let result = new core.List$(core.String).from([]); 521 let result = new core.List$(core.String).from([]);
522 let start = 0; 522 let start = 0;
523 let length = 1; 523 let length = 1;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 exports.findInterceptorForType = findInterceptorForType; 1084 exports.findInterceptorForType = findInterceptorForType;
1085 exports.JSBool = JSBool; 1085 exports.JSBool = JSBool;
1086 exports.JSNull = JSNull; 1086 exports.JSNull = JSNull;
1087 exports.JSIndexable = JSIndexable; 1087 exports.JSIndexable = JSIndexable;
1088 exports.JSMutableIndexable = JSMutableIndexable; 1088 exports.JSMutableIndexable = JSMutableIndexable;
1089 exports.JSObject = JSObject; 1089 exports.JSObject = JSObject;
1090 exports.JavaScriptObject = JavaScriptObject; 1090 exports.JavaScriptObject = JavaScriptObject;
1091 exports.PlainJavaScriptObject = PlainJavaScriptObject; 1091 exports.PlainJavaScriptObject = PlainJavaScriptObject;
1092 exports.UnknownJavaScriptObject = UnknownJavaScriptObject; 1092 exports.UnknownJavaScriptObject = UnknownJavaScriptObject;
1093 })(_interceptors || (_interceptors = {})); 1093 })(_interceptors || (_interceptors = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698