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

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

Issue 428303004: Breaking changes in 'analyzer' package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename Source.resolveRelative to resolveRelativeUri, soften version constraints Created 6 years, 4 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:collection'; 10 import 'dart:collection';
(...skipping 7077 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RelativeUri(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 5543 matching lines...) Expand 10 before | Expand all | Expand 10 after
12652 * @param message an explanation of why the error occurred or what it means 12652 * @param message an explanation of why the error occurred or what it means
12653 */ 12653 */
12654 void logError(String message); 12654 void logError(String message);
12655 12655
12656 /** 12656 /**
12657 * Log the given exception as one representing an error. 12657 * Log the given exception as one representing an error.
12658 * 12658 *
12659 * @param message an explanation of why the error occurred or what it means 12659 * @param message an explanation of why the error occurred or what it means
12660 * @param exception the exception being logged 12660 * @param exception the exception being logged
12661 */ 12661 */
12662 void logError2(String message, Exception exception); 12662 void logError2(String message, exception);
12663 12663
12664 /** 12664 /**
12665 * Log the given informational message. 12665 * Log the given informational message.
12666 * 12666 *
12667 * @param message an explanation of why the error occurred or what it means 12667 * @param message an explanation of why the error occurred or what it means
12668 * @param exception the exception being logged 12668 * @param exception the exception being logged
12669 */ 12669 */
12670 void logInformation(String message); 12670 void logInformation(String message);
12671 12671
12672 /** 12672 /**
12673 * Log the given exception as one representing an informational message. 12673 * Log the given exception as one representing an informational message.
12674 * 12674 *
12675 * @param message an explanation of why the error occurred or what it means 12675 * @param message an explanation of why the error occurred or what it means
12676 * @param exception the exception being logged 12676 * @param exception the exception being logged
12677 */ 12677 */
12678 void logInformation2(String message, Exception exception); 12678 void logInformation2(String message, Exception exception);
12679 } 12679 }
12680 12680
12681 /** 12681 /**
12682 * Implementation of [Logger] that does nothing. 12682 * Implementation of [Logger] that does nothing.
12683 */ 12683 */
12684 class Logger_NullLogger implements Logger { 12684 class Logger_NullLogger implements Logger {
12685 @override 12685 @override
12686 void logError(String message) { 12686 void logError(String message) {
12687 } 12687 }
12688 12688
12689 @override 12689 @override
12690 void logError2(String message, Exception exception) { 12690 void logError2(String message, exception) {
12691 } 12691 }
12692 12692
12693 @override 12693 @override
12694 void logInformation(String message) { 12694 void logInformation(String message) {
12695 } 12695 }
12696 12696
12697 @override 12697 @override
12698 void logInformation2(String message, Exception exception) { 12698 void logInformation2(String message, exception) {
12699 } 12699 }
12700 } 12700 }
12701 12701
12702 /** 12702 /**
12703 * [NgComponentElementProcessor] applies [AngularComponentElement] by parsing ma pped 12703 * [NgComponentElementProcessor] applies [AngularComponentElement] by parsing ma pped
12704 * attributes as expressions. 12704 * attributes as expressions.
12705 */ 12705 */
12706 class NgComponentElementProcessor extends NgDirectiveProcessor { 12706 class NgComponentElementProcessor extends NgDirectiveProcessor {
12707 final AngularComponentElement _element; 12707 final AngularComponentElement _element;
12708 12708
(...skipping 3025 matching lines...) Expand 10 before | Expand all | Expand 10 after
15734 void _advance() { 15734 void _advance() {
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698