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

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

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: new approach 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 unified diff | Download patch
OLDNEW
1 var core; 1 var core = dart.defineLibrary(core, {});
2 (function(exports) { 2 var _js_helper = dart.import(_js_helper);
3 var _internal = dart.import(_internal);
4 var collection = dart.import(collection);
5 var _interceptors = dart.import(_interceptors);
6 var convert = dart.import(convert);
7 (function(exports, _js_helper, _internal, collection, _interceptors, convert) {
3 'use strict'; 8 'use strict';
4 class Object { 9 class Object {
5 constructor() { 10 constructor() {
6 let name = this.constructor.name; 11 let name = this.constructor.name;
7 let init = this[name]; 12 let init = this[name];
8 let result = void 0; 13 let result = void 0;
9 if (init) 14 if (init)
10 result = init.apply(this, arguments); 15 result = init.apply(this, arguments);
11 return result === void 0 ? this : result; 16 return result === void 0 ? this : result;
12 } 17 }
(...skipping 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after
2497 if (fragment != null) { 2502 if (fragment != null) {
2498 fragment = Uri._makeFragment(fragment, 0, fragment.length); 2503 fragment = Uri._makeFragment(fragment, 0, fragment.length);
2499 } else if (this.hasFragment) { 2504 } else if (this.hasFragment) {
2500 fragment = this.fragment; 2505 fragment = this.fragment;
2501 } 2506 }
2502 return new Uri._internal(scheme, userInfo, host, port, path, query, fragme nt); 2507 return new Uri._internal(scheme, userInfo, host, port, path, query, fragme nt);
2503 } 2508 }
2504 get pathSegments() { 2509 get pathSegments() {
2505 if (this[_pathSegments] == null) { 2510 if (this[_pathSegments] == null) {
2506 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit At(0) == Uri._SLASH ? this.path.substring(1) : this.path; 2511 let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnit At(0) == Uri._SLASH ? this.path.substring(1) : this.path;
2507 this[_pathSegments] = new (collection.UnmodifiableListView$(String))(pat hToSplit == "" ? dart.const(dart.setType([], List$(String))) : new List$(String) .from(pathToSplit.split("/")[$map](dart.bind(Uri, 'decodeComponent')), {growable : false})); 2512 this[_pathSegments] = new (collection.UnmodifiableListView$(String))(pat hToSplit == "" ? dart.const(dart.setType([], List$(String))) : new (List$(String )).from(pathToSplit.split("/")[$map](dart.bind(Uri, 'decodeComponent')), {growab le: false}));
2508 } 2513 }
2509 return this[_pathSegments]; 2514 return this[_pathSegments];
2510 } 2515 }
2511 get queryParameters() { 2516 get queryParameters() {
2512 if (this[_queryParameters] == null) { 2517 if (this[_queryParameters] == null) {
2513 this[_queryParameters] = new (collection.UnmodifiableMapView$(String, St ring))(Uri.splitQueryString(this.query)); 2518 this[_queryParameters] = new (collection.UnmodifiableMapView$(String, St ring))(Uri.splitQueryString(this.query));
2514 } 2519 }
2515 return this[_queryParameters]; 2520 return this[_queryParameters];
2516 } 2521 }
2517 static _makePort(port, scheme) { 2522 static _makePort(port, scheme) {
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
3479 exports.StackTrace = StackTrace; 3484 exports.StackTrace = StackTrace;
3480 exports.Stopwatch = Stopwatch; 3485 exports.Stopwatch = Stopwatch;
3481 exports.String = String; 3486 exports.String = String;
3482 exports.RuneIterator = RuneIterator; 3487 exports.RuneIterator = RuneIterator;
3483 exports.StringBuffer = StringBuffer; 3488 exports.StringBuffer = StringBuffer;
3484 exports.StringSink = StringSink; 3489 exports.StringSink = StringSink;
3485 exports.Symbol = Symbol; 3490 exports.Symbol = Symbol;
3486 exports.Type = Type; 3491 exports.Type = Type;
3487 exports.Uri = Uri; 3492 exports.Uri = Uri;
3488 exports.SupportJsExtensionMethods = SupportJsExtensionMethods; 3493 exports.SupportJsExtensionMethods = SupportJsExtensionMethods;
3489 })(core || (core = {})); 3494 })(core, _js_helper, _internal, collection, _interceptors, convert);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698