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

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

Issue 348673002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/ast.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 0bbe88b4019119eca62cd52e7783efa3deff97e8..1087d8d8c7922d65cb2c6c58ab38cedde97622a3 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -3640,6 +3640,14 @@ class ElementKind extends Enum<ElementKind> {
*/
abstract class ElementLocation {
/**
+ * Return the path to the element whose location is represented by this object. Clients must not
+ * modify the returned array.
+ *
+ * @return the path to the element whose location is represented by this object
+ */
+ List<String> get components;
+
+ /**
* Return an encoded representation of this location that can be used to create a location that is
* equal to this location.
*
@@ -3686,6 +3694,15 @@ class ElementLocationImpl implements ElementLocation {
this._components = _decode(encoding);
}
+ /**
+ * Initialize a newly created location from the given components.
+ *
+ * @param components the components of a location
+ */
+ ElementLocationImpl.con3(List<String> components) {
+ this._components = components;
+ }
+
@override
bool operator ==(Object object) {
if (identical(this, object)) {
@@ -3714,11 +3731,7 @@ class ElementLocationImpl implements ElementLocation {
return true;
}
- /**
- * Return the path to the element whose location is represented by this object.
- *
- * @return the path to the element whose location is represented by this object
- */
+ @override
List<String> get components => _components;
@override
@@ -5157,7 +5170,8 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
String get displayName {
String name = this.name;
if (name == null || name.length == 0) {
- // TODO(brianwilkerson) Determine whether function types should ever have an empty name.
+ // Function types have an empty name when they are defined implicitly by either a closure or
+ // as part of a parameter declaration.
List<DartType> normalParameterTypes = this.normalParameterTypes;
List<DartType> optionalParameterTypes = this.optionalParameterTypes;
Map<String, DartType> namedParameterTypes = this.namedParameterTypes;
@@ -6074,6 +6088,9 @@ class HtmlElementImpl extends ElementImpl implements HtmlElement {
builder.append(source.fullName);
}
}
+
+ @override
+ String get identifier => source.encoding;
}
/**
« 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