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

Unified Diff: pkg/compiler/lib/src/common_elements.dart

Issue 2982733002: Use entities in most of MirrorsData (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common_elements.dart
diff --git a/pkg/compiler/lib/src/common_elements.dart b/pkg/compiler/lib/src/common_elements.dart
index 58b7f9db19d8e34d874d47abf73ab7c74e39a021..d9d9a5584bca52c946d7dc32f22c54bd77b9c7e1 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -1334,8 +1334,18 @@ abstract class ElementEnvironment {
/// on deferred libraries.
bool isDeferredLoadLibraryGetter(MemberEntity member);
+ /// Returns the metadata constants declared on [library].
+ Iterable<ConstantValue> getLibraryMetadata(LibraryEntity library);
+
+ /// Returns the metadata constants declared on [cls].
+ Iterable<ConstantValue> getClassMetadata(ClassEntity cls);
+
+ /// Returns the metadata constants declared on [typedef].
+ Iterable<ConstantValue> getTypedefMetadata(TypedefEntity typedef);
+
/// Returns the metadata constants declared on [member].
- Iterable<ConstantValue> getMemberMetadata(MemberEntity member);
+ Iterable<ConstantValue> getMemberMetadata(MemberEntity member,
+ {bool includeParameterMetadata: false});
/// Returns the function type that is an alias of a [typedef].
FunctionType getFunctionTypeOfTypedef(TypedefEntity typedef);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698