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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/resolver.dart

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.resolver; 4 library engine.resolver;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:uri' show Uri;
8 import 'java_core.dart'; 7 import 'java_core.dart';
9 import 'java_engine.dart'; 8 import 'java_engine.dart';
10 import 'instrumentation.dart'; 9 import 'instrumentation.dart';
11 import 'source.dart'; 10 import 'source.dart';
12 import 'error.dart'; 11 import 'error.dart';
13 import 'scanner.dart' as sc; 12 import 'scanner.dart' as sc;
14 import 'utilities_dart.dart'; 13 import 'utilities_dart.dart';
15 import 'ast.dart'; 14 import 'ast.dart';
16 import 'parser.dart' show Parser, ParserErrorCode; 15 import 'parser.dart' show Parser, ParserErrorCode;
17 import 'sdk.dart' show DartSdk; 16 import 'sdk.dart' show DartSdk;
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 library.definingCompilationUnit = elem; 872 library.definingCompilationUnit = elem;
874 script.scriptLibrary = library; 873 script.scriptLibrary = library;
875 } on AnalysisException catch (exception) { 874 } on AnalysisException catch (exception) {
876 print(exception); 875 print(exception);
877 } 876 }
878 _scripts.add(script); 877 _scripts.add(script);
879 } else { 878 } else {
880 ExternalHtmlScriptElementImpl script = new ExternalHtmlScriptElementImpl (node); 879 ExternalHtmlScriptElementImpl script = new ExternalHtmlScriptElementImpl (node);
881 if (scriptSourcePath != null) { 880 if (scriptSourcePath != null) {
882 try { 881 try {
883 new Uri(scriptSourcePath); 882 Uri.parse(scriptSourcePath);
884 Source scriptSource = _context.sourceFactory.resolveUri(htmlSource, scriptSourcePath); 883 Source scriptSource = _context.sourceFactory.resolveUri(htmlSource, scriptSourcePath);
885 script.scriptSource = scriptSource; 884 script.scriptSource = scriptSource;
886 if (!scriptSource.exists()) { 885 if (!scriptSource.exists()) {
887 reportError(HtmlWarningCode.URI_DOES_NOT_EXIST, scriptAttribute.of fset + 1, scriptSourcePath.length, []); 886 reportError(HtmlWarningCode.URI_DOES_NOT_EXIST, scriptAttribute.of fset + 1, scriptSourcePath.length, []);
888 } 887 }
889 } on URISyntaxException catch (exception) { 888 } on URISyntaxException catch (exception) {
890 reportError(HtmlWarningCode.INVALID_URI, scriptAttribute.offset + 1, scriptSourcePath.length, []); 889 reportError(HtmlWarningCode.INVALID_URI, scriptAttribute.offset + 1, scriptSourcePath.length, []);
891 } 890 }
892 } 891 }
893 _scripts.add(script); 892 _scripts.add(script);
(...skipping 7516 matching lines...) Expand 10 before | Expand all | Expand 10 after
8410 ResolverErrorCode(this.__name, this.__ordinal, ErrorType type, String message) { 8409 ResolverErrorCode(this.__name, this.__ordinal, ErrorType type, String message) {
8411 this._type = type; 8410 this._type = type;
8412 this._message = message; 8411 this._message = message;
8413 } 8412 }
8414 ErrorSeverity get errorSeverity => _type.severity; 8413 ErrorSeverity get errorSeverity => _type.severity;
8415 String get message => _message; 8414 String get message => _message;
8416 ErrorType get type => _type; 8415 ErrorType get type => _type;
8417 bool needsRecompilation() => true; 8416 bool needsRecompilation() => true;
8418 int compareTo(ResolverErrorCode other) => __ordinal - other.__ordinal; 8417 int compareTo(ResolverErrorCode other) => __ordinal - other.__ordinal;
8419 String toString() => __name; 8418 String toString() => __name;
8420 } 8419 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/java_io.dart ('k') | pkg/analyzer_experimental/lib/src/generated/sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698