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

Unified Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 285423002: New analyzer snapshot (with CaughtException). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replace AnalysisException with CaughtException Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index 7886257f174cc380cd3ba973837230e2b347f580..9cfa6839434e0941c5b563ba2f8f90372e3bbf7f 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -1143,12 +1143,12 @@ class ClassElementImpl extends ElementImpl implements ClassElement {
* An array containing all of the mixins that are applied to the class being extended in order to
* derive the superclass of this class.
*/
- List<InterfaceType> mixins = InterfaceTypeImpl.EMPTY_ARRAY;
+ List<InterfaceType> mixins = InterfaceType.EMPTY_ARRAY;
/**
* An array containing all of the interfaces that are implemented by this class.
*/
- List<InterfaceType> interfaces = InterfaceTypeImpl.EMPTY_ARRAY;
+ List<InterfaceType> interfaces = InterfaceType.EMPTY_ARRAY;
/**
* An array containing all of the methods contained in this class.
@@ -2157,9 +2157,9 @@ abstract class ConstructorElement implements ClassMemberElement, ExecutableEleme
ConstructorDeclaration get node;
/**
- * Return the constructor to which this constructor is redirecting, or `null` if this constructor
- * does not redirect to another constructor or if the library containing this constructor has
- * not yet been resolved.
+ * Return the constructor to which this constructor is redirecting, or `null` if this
+ * constructor does not redirect to another constructor or if the library containing this
+ * constructor has not yet been resolved.
*
* @return the constructor to which this constructor is redirecting
*/
@@ -2203,6 +2203,12 @@ class ConstructorElementImpl extends ExecutableElementImpl implements Constructo
ConstructorElement redirectedConstructor;
/**
+ * The initializers for this constructor (used for evaluating constant instance creation
+ * expressions).
+ */
+ List<ConstructorInitializer> constantInitializers;
+
+ /**
* Initialize a newly created constructor element to have the given name.
*
* @param name the name of this element
@@ -3634,9 +3640,7 @@ class ElementLocationImpl implements ElementLocation {
index++;
}
}
- if (builder.length > 0) {
- components.add(builder.toString());
- }
+ components.add(builder.toString());
return new List.from(components);
}
@@ -6080,6 +6084,11 @@ class ImportElementImpl extends UriReferencedElementImpl implements ImportElemen
*/
abstract class InterfaceType implements ParameterizedType {
/**
+ * An empty array of types.
+ */
+ static final List<InterfaceType> EMPTY_ARRAY = new List<InterfaceType>(0);
+
+ /**
* Return an array containing all of the accessors (getters and setters) declared in this type.
*
* @return the accessors declared in this type
@@ -6372,11 +6381,6 @@ abstract class InterfaceType implements ParameterizedType {
*/
class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
/**
- * An empty array of types.
- */
- static List<InterfaceType> EMPTY_ARRAY = new List<InterfaceType>(0);
-
- /**
* This method computes the longest inheritance path from some passed [Type] to Object.
*
* @param type the [Type] to compute the longest inheritance path of from the passed
@@ -7762,8 +7766,8 @@ class LibraryElementImpl extends ElementImpl implements LibraryElement {
}
InterfaceType futureType = futureElement.type;
return futureType.substitute4(<DartType> [DynamicTypeImpl.instance]);
- } on AnalysisException catch (exception) {
- AnalysisEngine.instance.logger.logError2("Could not build the element model for dart:async", exception);
+ } on AnalysisException catch (exception, stackTrace) {
+ AnalysisEngine.instance.logger.logError2("Could not build the element model for dart:async", new CaughtException(exception, stackTrace));
return VoidTypeImpl.instance;
}
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698