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

Unified Diff: reflectable/lib/src/encoding_constants.dart

Issue 1289933004: Implements support for reflection on parameters. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Merging with code from Sigurd, caused several adjustments Created 5 years, 4 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 | reflectable/lib/src/mirrors_unimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: reflectable/lib/src/encoding_constants.dart
diff --git a/reflectable/lib/src/encoding_constants.dart b/reflectable/lib/src/encoding_constants.dart
index 4f1b16e4576d9ae729d9c61bf11a5c48eb7f808d..12d18a5397d0b1bf52c4324dc2ca205c126a8cce 100644
--- a/reflectable/lib/src/encoding_constants.dart
+++ b/reflectable/lib/src/encoding_constants.dart
@@ -15,6 +15,7 @@ const method = 2;
const getter = 3;
const setter = 4;
const field = 5;
+const parameter = 6;
// Flags:
const staticAttribute = 1 << (flagsBit);
@@ -24,5 +25,10 @@ const constAttribute = 1 << (flagsBit + 3);
const redirectingConstructorAttribute = 1 << (flagsBit + 4);
const abstractAttribute = 1 << (flagsBit + 5);
const finalAttribute = 1 << (flagsBit + 6);
+const hasDefaultValueAttribute = 1 << (flagsBit + 7);
+const optionalAttribute = 1 << (flagsBit + 8);
+const namedAttribute = 1 << (flagsBit + 9);
+const dynamicAttribute = 1 << (flagsBit + 10);
+const classTypeAttribute = 1 << (flagsBit + 11);
int kindFromEncoding(int encoding) => encoding & ((1 << flagsBit) - 1);
« no previous file with comments | « no previous file | reflectable/lib/src/mirrors_unimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698