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

Side by Side Diff: test/dart_codegen/expect/core/uri.dart

Issue 1121993004: Inference through conditional expressions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase 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
« no previous file with comments | « test/dart_codegen/expect/core/stopwatch.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of dart.core; 1 part of dart.core;
2 class Uri {final String _host; 2 class Uri {final String _host;
3 num _port; 3 num _port;
4 String _path; 4 String _path;
5 final String scheme; 5 final String scheme;
6 String get authority { 6 String get authority {
7 if (!hasAuthority) return ""; 7 if (!hasAuthority) return "";
8 var sb = new StringBuffer(); 8 var sb = new StringBuffer();
9 _writeAuthority(sb); 9 _writeAuthority(sb);
10 return sb.toString(); 10 return sb.toString();
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 267 }
268 } 268 }
269 host = authority.substring(hostStart, hostEnd); 269 host = authority.substring(hostStart, hostEnd);
270 } 270 }
271 return new Uri(scheme: scheme, userInfo: userInfo, host: DEVC$RT.cast(host, d ynamic, String, "DynamicCast", """line 609, column 26 of dart:core/uri.dart: """ , host is String, true), port: DEVC$RT.cast(port, dynamic, int, "DynamicCast", " ""line 610, column 26 of dart:core/uri.dart: """, port is int, true), pathSegmen ts: unencodedPath.split("/"), queryParameters: queryParameters); 271 return new Uri(scheme: scheme, userInfo: userInfo, host: DEVC$RT.cast(host, d ynamic, String, "DynamicCast", """line 609, column 26 of dart:core/uri.dart: """ , host is String, true), port: DEVC$RT.cast(port, dynamic, int, "DynamicCast", " ""line 610, column 26 of dart:core/uri.dart: """, port is int, true), pathSegmen ts: unencodedPath.split("/"), queryParameters: queryParameters);
272 } 272 }
273 factory Uri.file(String path, { 273 factory Uri.file(String path, {
274 bool windows} 274 bool windows}
275 ) { 275 ) {
276 windows = windows == null ? Uri._isWindows : windows; 276 windows = windows == null ? Uri._isWindows : windows;
277 return ((__x21) => DEVC$RT.cast(__x21, dynamic, Uri, "DynamicCast", """line 6 98, column 12 of dart:core/uri.dart: """, __x21 is Uri, true))(windows ? _makeWi ndowsFileUrl(path) : _makeFileUri(path)); 277 return windows ? ((__x20) => DEVC$RT.cast(__x20, dynamic, Uri, "DynamicCast", """line 698, column 22 of dart:core/uri.dart: """, __x20 is Uri, true))(_makeWi ndowsFileUrl(path)) : ((__x21) => DEVC$RT.cast(__x21, dynamic, Uri, "DynamicCast ", """line 698, column 50 of dart:core/uri.dart: """, __x21 is Uri, true))(_make FileUri(path));
278 } 278 }
279 external static Uri get base; 279 external static Uri get base;
280 external static bool get _isWindows; 280 external static bool get _isWindows;
281 static _checkNonWindowsPathReservedCharacters(List<String> segments, bool argum entError) { 281 static _checkNonWindowsPathReservedCharacters(List<String> segments, bool argum entError) {
282 segments.forEach((segment) { 282 segments.forEach((segment) {
283 if (segment.contains("/")) { 283 if (segment.contains("/")) {
284 if (argumentError) { 284 if (argumentError) {
285 throw new ArgumentError("Illegal path character $segment"); 285 throw new ArgumentError("Illegal path character $segment");
286 } 286 }
287 else { 287 else {
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 static const _schemeTable = const [0x0000, 0x0000, 0x6800, 0x03ff, 0xfffe, 0x07 ff, 0xfffe, 0x07ff]; 1268 static const _schemeTable = const [0x0000, 0x0000, 0x6800, 0x03ff, 0xfffe, 0x07 ff, 0xfffe, 0x07ff];
1269 static const _schemeLowerTable = const [0x0000, 0x0000, 0x6800, 0x03ff, 0x0000, 0x0000, 0xfffe, 0x07ff]; 1269 static const _schemeLowerTable = const [0x0000, 0x0000, 0x6800, 0x03ff, 0x0000, 0x0000, 0xfffe, 0x07ff];
1270 static const _subDelimitersTable = const [0x0000, 0x0000, 0x7fd2, 0x2bff, 0xfff e, 0x87ff, 0xfffe, 0x47ff]; 1270 static const _subDelimitersTable = const [0x0000, 0x0000, 0x7fd2, 0x2bff, 0xfff e, 0x87ff, 0xfffe, 0x47ff];
1271 static const _genDelimitersTable = const [0x0000, 0x0000, 0x8008, 0x8400, 0x000 1, 0x2800, 0x0000, 0x0000]; 1271 static const _genDelimitersTable = const [0x0000, 0x0000, 0x8008, 0x8400, 0x000 1, 0x2800, 0x0000, 0x0000];
1272 static const _userinfoTable = const [0x0000, 0x0000, 0x7fd2, 0x2fff, 0xfffe, 0x 87ff, 0xfffe, 0x47ff]; 1272 static const _userinfoTable = const [0x0000, 0x0000, 0x7fd2, 0x2fff, 0xfffe, 0x 87ff, 0xfffe, 0x47ff];
1273 static const _regNameTable = const [0x0000, 0x0000, 0x7ff2, 0x2bff, 0xfffe, 0x8 7ff, 0xfffe, 0x47ff]; 1273 static const _regNameTable = const [0x0000, 0x0000, 0x7ff2, 0x2bff, 0xfffe, 0x8 7ff, 0xfffe, 0x47ff];
1274 static const _pathCharTable = const [0x0000, 0x0000, 0x7fd2, 0x2fff, 0xffff, 0x 87ff, 0xfffe, 0x47ff]; 1274 static const _pathCharTable = const [0x0000, 0x0000, 0x7fd2, 0x2fff, 0xffff, 0x 87ff, 0xfffe, 0x47ff];
1275 static const _pathCharOrSlashTable = const [0x0000, 0x0000, 0xffd2, 0x2fff, 0xf fff, 0x87ff, 0xfffe, 0x47ff]; 1275 static const _pathCharOrSlashTable = const [0x0000, 0x0000, 0xffd2, 0x2fff, 0xf fff, 0x87ff, 0xfffe, 0x47ff];
1276 static const _queryCharTable = const [0x0000, 0x0000, 0xffd2, 0xafff, 0xffff, 0 x87ff, 0xfffe, 0x47ff]; 1276 static const _queryCharTable = const [0x0000, 0x0000, 0xffd2, 0xafff, 0xffff, 0 x87ff, 0xfffe, 0x47ff];
1277 } 1277 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/core/stopwatch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698