OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |