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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 914373004: Use package: URIs for files in lib (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added test and fixed URI usage Created 5 years, 10 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import "dart:math" as math; 10 import "dart:math" as math;
(...skipping 10304 matching lines...) Expand 10 before | Expand all | Expand 10 after
10315 ht.XmlAttributeNode scriptAttribute = null; 10315 ht.XmlAttributeNode scriptAttribute = null;
10316 for (ht.XmlAttributeNode attribute in node.attributes) { 10316 for (ht.XmlAttributeNode attribute in node.attributes) {
10317 if (javaStringEqualsIgnoreCase( 10317 if (javaStringEqualsIgnoreCase(
10318 attribute.name, 10318 attribute.name,
10319 ParseHtmlTask._ATTRIBUTE_SRC)) { 10319 ParseHtmlTask._ATTRIBUTE_SRC)) {
10320 scriptAttribute = attribute; 10320 scriptAttribute = attribute;
10321 } 10321 }
10322 } 10322 }
10323 if (scriptAttribute != null) { 10323 if (scriptAttribute != null) {
10324 try { 10324 try {
10325 Uri uri = new Uri(path: scriptAttribute.text); 10325 Uri uri = Uri.parse(scriptAttribute.text);
10326 String fileName = uri.path; 10326 String fileName = uri.path;
10327 Source librarySource = 10327 Source librarySource =
10328 _task.context.sourceFactory.resolveUri(_task.source, fileName); 10328 _task.context.sourceFactory.resolveUri(_task.source, fileName);
10329 if (_task.context.exists(librarySource)) { 10329 if (_task.context.exists(librarySource)) {
10330 libraries.add(librarySource); 10330 libraries.add(librarySource);
10331 } 10331 }
10332 } on FormatException catch (e) { 10332 } on FormatException catch (e) {
10333 // ignored - invalid URI reported during resolution phase 10333 // ignored - invalid URI reported during resolution phase
10334 } 10334 }
10335 } 10335 }
(...skipping 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after
12409 if (element.id == _id) { 12409 if (element.id == _id) {
12410 result = element; 12410 result = element;
12411 throw new _ElementByIdFinderException(); 12411 throw new _ElementByIdFinderException();
12412 } 12412 }
12413 super.visitElement(element); 12413 super.visitElement(element);
12414 } 12414 }
12415 } 12415 }
12416 12416
12417 class _ElementByIdFinderException { 12417 class _ElementByIdFinderException {
12418 } 12418 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/source/package_map_resolver.dart ('k') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698