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

Side by Side Diff: test/codegen/expect/dart/core.js

Issue 1023543002: Enable inference in the core libs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Deprecated extends Object { 4 class Deprecated extends Object {
5 Deprecated(expires) { 5 Deprecated(expires) {
6 this.expires = expires; 6 this.expires = expires;
7 } 7 }
8 toString() { 8 toString() {
9 return `Deprecated feature. Will be removed ${this.expires}`; 9 return `Deprecated feature. Will be removed ${this.expires}`;
10 } 10 }
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 } 1703 }
1704 get query() { 1704 get query() {
1705 return this[_query] === null ? "" : this[_query]; 1705 return this[_query] === null ? "" : this[_query];
1706 } 1706 }
1707 get fragment() { 1707 get fragment() {
1708 return this[_fragment] === null ? "" : this[_fragment]; 1708 return this[_fragment] === null ? "" : this[_fragment];
1709 } 1709 }
1710 static parse(uri) { 1710 static parse(uri) {
1711 // Function isRegName: (int) → bool 1711 // Function isRegName: (int) → bool
1712 function isRegName(ch) { 1712 function isRegName(ch) {
1713 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary( dart.dindex(Uri._regNameTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(c h) & 15)), 0)); 1713 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary( Uri._regNameTable.get(dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15)) , 0));
1714 } 1714 }
1715 let EOI = -1; 1715 let EOI = -1;
1716 let scheme = ""; 1716 let scheme = "";
1717 let userinfo = ""; 1717 let userinfo = "";
1718 let host = null; 1718 let host = null;
1719 let port = null; 1719 let port = null;
1720 let path = null; 1720 let path = null;
1721 let query = null; 1721 let query = null;
1722 let fragment = null; 1722 let fragment = null;
1723 let index = 0; 1723 let index = 0;
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNul l(i) + 1) { 2155 for (let i = start; dart.notNull(i) < dart.notNull(end); i = dart.notNul l(i) + 1) {
2156 if (host.codeUnitAt(i) === Uri._COLON) { 2156 if (host.codeUnitAt(i) === Uri._COLON) {
2157 parseIPv6Address(host, start, end); 2157 parseIPv6Address(host, start, end);
2158 return `[${host}]`; 2158 return `[${host}]`;
2159 } 2159 }
2160 } 2160 }
2161 } 2161 }
2162 return _normalizeRegName(host, start, end); 2162 return _normalizeRegName(host, start, end);
2163 } 2163 }
2164 static [_isRegNameChar](char) { 2164 static [_isRegNameChar](char) {
2165 return dart.notNull(char) < 127 && dart.notNull(!dart.equals(dart.dbinary( dart.dindex(Uri._regNameTable, dart.notNull(char) >> 4), '&', 1 << (dart.notNull (char) & 15)), 0)); 2165 return dart.notNull(char) < 127 && dart.notNull(!dart.equals(dart.dbinary( Uri._regNameTable.get(dart.notNull(char) >> 4), '&', 1 << (dart.notNull(char) & 15)), 0));
2166 } 2166 }
2167 static [_normalizeRegName](host, start, end) { 2167 static [_normalizeRegName](host, start, end) {
2168 let buffer = null; 2168 let buffer = null;
2169 let sectionStart = start; 2169 let sectionStart = start;
2170 let index = start; 2170 let index = start;
2171 let isNormalized = true; 2171 let isNormalized = true;
2172 while (dart.notNull(index) < dart.notNull(end)) { 2172 while (dart.notNull(index) < dart.notNull(end)) {
2173 let char = host.codeUnitAt(index); 2173 let char = host.codeUnitAt(index);
2174 if (char === Uri._PERCENT) { 2174 if (char === Uri._PERCENT) {
2175 let replacement = _normalizeEscape(host, index, true); 2175 let replacement = _normalizeEscape(host, index, true);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 value = 32; 2344 value = 32;
2345 } 2345 }
2346 return new String.fromCharCode(value); 2346 return new String.fromCharCode(value);
2347 } 2347 }
2348 if (dart.notNull(firstDigit) >= dart.notNull(Uri._LOWER_CASE_A) || dart.no tNull(secondDigit) >= dart.notNull(Uri._LOWER_CASE_A)) { 2348 if (dart.notNull(firstDigit) >= dart.notNull(Uri._LOWER_CASE_A) || dart.no tNull(secondDigit) >= dart.notNull(Uri._LOWER_CASE_A)) {
2349 return source.substring(index, dart.notNull(index) + 3).toUpperCase(); 2349 return source.substring(index, dart.notNull(index) + 3).toUpperCase();
2350 } 2350 }
2351 return null; 2351 return null;
2352 } 2352 }
2353 static [_isUnreservedChar](ch) { 2353 static [_isUnreservedChar](ch) {
2354 return dart.notNull(ch) < 127 && dart.notNull(!dart.equals(dart.dbinary(da rt.dindex(Uri._unreservedTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull( ch) & 15)), 0)); 2354 return dart.notNull(ch) < 127 && dart.notNull(!dart.equals(dart.dbinary(Ur i._unreservedTable.get(dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15) ), 0));
2355 } 2355 }
2356 static [_escapeChar](char) { 2356 static [_escapeChar](char) {
2357 dart.assert(dart.dbinary(char, '<=', 1114111)); 2357 dart.assert(dart.dbinary(char, '<=', 1114111));
2358 let hexDigits = "0123456789ABCDEF"; 2358 let hexDigits = "0123456789ABCDEF";
2359 let codeUnits = null; 2359 let codeUnits = null;
2360 if (dart.dbinary(char, '<', 128)) { 2360 if (dart.dbinary(char, '<', 128)) {
2361 codeUnits = new List(3); 2361 codeUnits = new List(3);
2362 codeUnits.set(0, Uri._PERCENT); 2362 codeUnits.set(0, Uri._PERCENT);
2363 codeUnits.set(1, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '>>', 4 ), int))); 2363 codeUnits.set(1, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '>>', 4 ), int)));
2364 codeUnits.set(2, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '&', 15 ), int))); 2364 codeUnits.set(2, hexDigits.codeUnitAt(dart.as(dart.dbinary(char, '&', 15 ), int)));
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 } 2434 }
2435 if (buffer === null) { 2435 if (buffer === null) {
2436 return component.substring(start, end); 2436 return component.substring(start, end);
2437 } 2437 }
2438 if (dart.notNull(sectionStart) < dart.notNull(end)) { 2438 if (dart.notNull(sectionStart) < dart.notNull(end)) {
2439 buffer.write(component.substring(sectionStart, end)); 2439 buffer.write(component.substring(sectionStart, end));
2440 } 2440 }
2441 return buffer.toString(); 2441 return buffer.toString();
2442 } 2442 }
2443 static [_isSchemeCharacter](ch) { 2443 static [_isSchemeCharacter](ch) {
2444 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary(da rt.dindex(Uri._schemeTable, dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15)), 0)); 2444 return dart.notNull(ch) < 128 && dart.notNull(!dart.equals(dart.dbinary(Ur i._schemeTable.get(dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15)), 0 ));
2445 } 2445 }
2446 static [_isGeneralDelimiter](ch) { 2446 static [_isGeneralDelimiter](ch) {
2447 return dart.notNull(ch) <= dart.notNull(Uri._RIGHT_BRACKET) && dart.notNul l(!dart.equals(dart.dbinary(dart.dindex(Uri._genDelimitersTable, dart.notNull(ch ) >> 4), '&', 1 << (dart.notNull(ch) & 15)), 0)); 2447 return dart.notNull(ch) <= dart.notNull(Uri._RIGHT_BRACKET) && dart.notNul l(!dart.equals(dart.dbinary(Uri._genDelimitersTable.get(dart.notNull(ch) >> 4), '&', 1 << (dart.notNull(ch) & 15)), 0));
2448 } 2448 }
2449 get isAbsolute() { 2449 get isAbsolute() {
2450 return dart.notNull(!dart.equals(this.scheme, "")) && dart.notNull(dart.eq uals(this.fragment, "")); 2450 return dart.notNull(!dart.equals(this.scheme, "")) && dart.notNull(dart.eq uals(this.fragment, ""));
2451 } 2451 }
2452 [_merge](base, reference) { 2452 [_merge](base, reference) {
2453 if (base.isEmpty) 2453 if (base.isEmpty)
2454 return `/${reference}`; 2454 return `/${reference}`;
2455 let backCount = 0; 2455 let backCount = 0;
2456 let refStart = 0; 2456 let refStart = 0;
2457 while (reference.startsWith("../", refStart)) { 2457 while (reference.startsWith("../", refStart)) {
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
3037 exports.Stopwatch = Stopwatch; 3037 exports.Stopwatch = Stopwatch;
3038 exports.String = String; 3038 exports.String = String;
3039 exports.Runes = Runes; 3039 exports.Runes = Runes;
3040 exports.RuneIterator = RuneIterator; 3040 exports.RuneIterator = RuneIterator;
3041 exports.StringBuffer = StringBuffer; 3041 exports.StringBuffer = StringBuffer;
3042 exports.StringSink = StringSink; 3042 exports.StringSink = StringSink;
3043 exports.Symbol = Symbol; 3043 exports.Symbol = Symbol;
3044 exports.Type = Type; 3044 exports.Type = Type;
3045 exports.Uri = Uri; 3045 exports.Uri = Uri;
3046 })(core || (core = {})); 3046 })(core || (core = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/dart/convert.js ('k') | test/dart_codegen/expect/async/schedule_microtask.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698