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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/engine.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; 4 library engine;
5 5
6 import 'dart:collection' show HasNextIterator; 6 import 'dart:collection' show HasNextIterator;
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 'error.dart'; 10 import 'error.dart';
12 import 'source.dart'; 11 import 'source.dart';
13 import 'scanner.dart' show Token, CharBufferScanner, StringScanner; 12 import 'scanner.dart' show Token, CharBufferScanner, StringScanner;
14 import 'ast.dart'; 13 import 'ast.dart';
15 import 'parser.dart' show Parser; 14 import 'parser.dart' show Parser;
16 import 'sdk.dart' show DartSdk; 15 import 'sdk.dart' show DartSdk;
17 import 'element.dart'; 16 import 'element.dart';
(...skipping 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2821 class RecursiveXmlVisitor_6 extends RecursiveXmlVisitor<Object> { 2820 class RecursiveXmlVisitor_6 extends RecursiveXmlVisitor<Object> {
2822 final AnalysisContextImpl AnalysisContextImpl_this; 2821 final AnalysisContextImpl AnalysisContextImpl_this;
2823 Source htmlSource; 2822 Source htmlSource;
2824 List<Source> libraries; 2823 List<Source> libraries;
2825 RecursiveXmlVisitor_6(this.AnalysisContextImpl_this, this.htmlSource, this.lib raries) : super(); 2824 RecursiveXmlVisitor_6(this.AnalysisContextImpl_this, this.htmlSource, this.lib raries) : super();
2826 Object visitXmlTagNode(XmlTagNode node) { 2825 Object visitXmlTagNode(XmlTagNode node) {
2827 if (javaStringEqualsIgnoreCase(node.tag.lexeme, AnalysisContextImpl._TAG_SCR IPT)) { 2826 if (javaStringEqualsIgnoreCase(node.tag.lexeme, AnalysisContextImpl._TAG_SCR IPT)) {
2828 for (XmlAttributeNode attribute in node.attributes) { 2827 for (XmlAttributeNode attribute in node.attributes) {
2829 if (javaStringEqualsIgnoreCase(attribute.name.lexeme, AnalysisContextImp l._ATTRIBUTE_SRC)) { 2828 if (javaStringEqualsIgnoreCase(attribute.name.lexeme, AnalysisContextImp l._ATTRIBUTE_SRC)) {
2830 try { 2829 try {
2831 Uri uri = new Uri.fromComponents(path: attribute.text); 2830 Uri uri = new Uri(path: attribute.text);
2832 String fileName = uri.path; 2831 String fileName = uri.path;
2833 if (AnalysisEngine.isDartFileName(fileName)) { 2832 if (AnalysisEngine.isDartFileName(fileName)) {
2834 Source librarySource = AnalysisContextImpl_this._sourceFactory.res olveUri(htmlSource, fileName); 2833 Source librarySource = AnalysisContextImpl_this._sourceFactory.res olveUri(htmlSource, fileName);
2835 if (librarySource.exists()) { 2834 if (librarySource.exists()) {
2836 libraries.add(librarySource); 2835 libraries.add(librarySource);
2837 } 2836 }
2838 } 2837 }
2839 } catch (exception) { 2838 } catch (exception) {
2840 AnalysisEngine.instance.logger.logError2("Invalid URL ('${attribute. text}') in script tag in '${htmlSource.fullName}'", exception); 2839 AnalysisEngine.instance.logger.logError2("Invalid URL ('${attribute. text}') in script tag in '${htmlSource.fullName}'", exception);
2841 } 2840 }
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
3955 } 3954 }
3956 void logError2(String message, Exception exception) { 3955 void logError2(String message, Exception exception) {
3957 } 3956 }
3958 void logError3(Exception exception) { 3957 void logError3(Exception exception) {
3959 } 3958 }
3960 void logInformation(String message) { 3959 void logInformation(String message) {
3961 } 3960 }
3962 void logInformation2(String message, Exception exception) { 3961 void logInformation2(String message, Exception exception) {
3963 } 3962 }
3964 } 3963 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698