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:collection'; | 10 import 'dart:collection'; |
(...skipping 7077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7088 Set<Source> angularElementsSources = new Set(); | 7088 Set<Source> angularElementsSources = new Set(); |
7089 for (AngularElement angularElement in angularElements) { | 7089 for (AngularElement angularElement in angularElements) { |
7090 if (angularElement is AngularHasTemplateElement) { | 7090 if (angularElement is AngularHasTemplateElement) { |
7091 AngularHasTemplateElement hasTemplate = angularElement; | 7091 AngularHasTemplateElement hasTemplate = angularElement; |
7092 angularElementsSources.add(angularElement.source); | 7092 angularElementsSources.add(angularElement.source); |
7093 String templateUri = hasTemplate.templateUri; | 7093 String templateUri = hasTemplate.templateUri; |
7094 if (templateUri == null) { | 7094 if (templateUri == null) { |
7095 continue; | 7095 continue; |
7096 } | 7096 } |
7097 try { | 7097 try { |
7098 Source templateSource = _source.resolveRelative(parseUriWithException(
templateUri)); | 7098 Source templateSource = _context.sourceFactory.forUri2(_source.resolve
Relative(parseUriWithException(templateUri))); |
7099 if (!_context.exists(templateSource)) { | 7099 if (!_context.exists(templateSource)) { |
7100 templateSource = _context.sourceFactory.resolveUri(_source, "package
:${templateUri}"); | 7100 templateSource = _context.sourceFactory.resolveUri(_source, "package
:${templateUri}"); |
7101 if (!_context.exists(templateSource)) { | 7101 if (!_context.exists(templateSource)) { |
7102 _errorListener.onError(new AnalysisError.con2(angularElement.sourc
e, hasTemplate.templateUriOffset, templateUri.length, AngularCode.URI_DOES_NOT_E
XIST, [templateUri])); | 7102 _errorListener.onError(new AnalysisError.con2(angularElement.sourc
e, hasTemplate.templateUriOffset, templateUri.length, AngularCode.URI_DOES_NOT_E
XIST, [templateUri])); |
7103 continue; | 7103 continue; |
7104 } | 7104 } |
7105 } | 7105 } |
7106 if (!AnalysisEngine.isHtmlFileName(templateUri)) { | 7106 if (!AnalysisEngine.isHtmlFileName(templateUri)) { |
7107 continue; | 7107 continue; |
7108 } | 7108 } |
(...skipping 8626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15735 _index++; | 15735 _index++; |
15736 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { | 15736 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { |
15737 _index = 0; | 15737 _index = 0; |
15738 _queueIndex++; | 15738 _queueIndex++; |
15739 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th
is._workQueues[_queueIndex].isEmpty) { | 15739 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th
is._workQueues[_queueIndex].isEmpty) { |
15740 _queueIndex++; | 15740 _queueIndex++; |
15741 } | 15741 } |
15742 } | 15742 } |
15743 } | 15743 } |
15744 } | 15744 } |
OLD | NEW |