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

Unified Diff: pkg/analyzer/tool/summary/idl.dart

Issue 1619253003: Include explicit constructors and static methods into UnlinkedPublicName (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
Index: pkg/analyzer/tool/summary/idl.dart
diff --git a/pkg/analyzer/tool/summary/idl.dart b/pkg/analyzer/tool/summary/idl.dart
index 588c3b3d3fd2a0e93e4f230e17af17b7f347eb5f..4751038415d871c19bc62724aa293ce0faf0e50e 100644
--- a/pkg/analyzer/tool/summary/idl.dart
+++ b/pkg/analyzer/tool/summary/idl.dart
@@ -291,6 +291,16 @@ enum ReferenceKind {
classOrEnum,
/**
+ * The entity is a constructor.
+ */
+ constructor,
+
+ /**
+ * The entity is a static method.
+ */
+ staticMethod,
+
+ /**
* The entity is a typedef.
*/
typedef,
@@ -1139,9 +1149,6 @@ class UnlinkedPart {
* TODO(paulberry): add a count of generic parameters, so that resynthesis
* doesn't have to peek into the library to obtain this info.
*
- * TODO(paulberry): for classes, add info about static members and
- * constructors, since this will be needed to prelink info about constants.
- *
* TODO(paulberry): some of this information is redundant with information
* elsewhere in the summary. Consider reducing the redundancy to reduce
* summary size.
@@ -1162,6 +1169,12 @@ class UnlinkedPublicName {
* it accepts. Otherwise zero.
*/
int numTypeParameters;
+
+ /**
+ * If this [UnlinkedPublicName] is a class, the list of static methods
+ * and constructors. Otherwise empty.
+ */
+ List<UnlinkedPublicName> executables;
}
/**

Powered by Google App Engine
This is Rietveld 408576698