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

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

Issue 685993004: Clean up logging uses (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 8148 matching lines...) Expand 10 before | Expand all | Expand 10 after
8159 return VoidTypeImpl.instance; 8159 return VoidTypeImpl.instance;
8160 } 8160 }
8161 ClassElement futureElement = asyncElement.getType("Future"); 8161 ClassElement futureElement = asyncElement.getType("Future");
8162 if (futureElement == null) { 8162 if (futureElement == null) {
8163 AnalysisEngine.instance.logger.logError("Could not find type Future in d art:async"); 8163 AnalysisEngine.instance.logger.logError("Could not find type Future in d art:async");
8164 return VoidTypeImpl.instance; 8164 return VoidTypeImpl.instance;
8165 } 8165 }
8166 InterfaceType futureType = futureElement.type; 8166 InterfaceType futureType = futureElement.type;
8167 return futureType.substitute4(<DartType> [DynamicTypeImpl.instance]); 8167 return futureType.substitute4(<DartType> [DynamicTypeImpl.instance]);
8168 } on AnalysisException catch (exception, stackTrace) { 8168 } on AnalysisException catch (exception, stackTrace) {
8169 AnalysisEngine.instance.logger.logError2("Could not build the element mode l for dart:async", new CaughtException(exception, stackTrace)); 8169 AnalysisEngine.instance.logger.logError(
8170 "Could not build the element model for dart:async",
8171 new CaughtException(exception, stackTrace));
8170 return VoidTypeImpl.instance; 8172 return VoidTypeImpl.instance;
8171 } 8173 }
8172 } 8174 }
8173 8175
8174 /** 8176 /**
8175 * Answer `true` if the receiver directly or indirectly imports the dart:html libraries. 8177 * Answer `true` if the receiver directly or indirectly imports the dart:html libraries.
8176 * 8178 *
8177 * @return `true` if the receiver directly or indirectly imports the dart:html libraries 8179 * @return `true` if the receiver directly or indirectly imports the dart:html libraries
8178 */ 8180 */
8179 bool get isOrImportsBrowserLibrary { 8181 bool get isOrImportsBrowserLibrary {
(...skipping 3584 matching lines...) Expand 10 before | Expand all | Expand 10 after
11764 if (type is UnionType) { 11766 if (type is UnionType) {
11765 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite dTypePairs); 11767 return (type as UnionTypeImpl).internalUnionTypeIsSuperTypeOf(this, visite dTypePairs);
11766 } 11768 }
11767 // The only subtype relations that pertain to void are therefore: 11769 // The only subtype relations that pertain to void are therefore:
11768 // void <: void (by reflexivity) 11770 // void <: void (by reflexivity)
11769 // bottom <: void (as bottom is a subtype of all types). 11771 // bottom <: void (as bottom is a subtype of all types).
11770 // void <: dynamic (as dynamic is a supertype of all types) 11772 // void <: dynamic (as dynamic is a supertype of all types)
11771 return identical(type, this) || type.isDynamic; 11773 return identical(type, this) || type.isDynamic;
11772 } 11774 }
11773 } 11775 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698