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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart

Issue 78873007: Support type argument substitution on unnamed mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart
index 373b65dd369bdeb11dd39c4a24a414d33096fe64..4846cb613af23cb235bec04ffce8b6b867b2b958 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart
@@ -60,10 +60,10 @@ String getReflectionDataParser(String classesCollector, Namer namer) {
var element = descriptor[property];
var firstChar = property.substring(0, 1);
var previousProperty;
- if (firstChar === "+") {
- mangledGlobalNames[previousProperty] = property.substring(1);
- if (descriptor[property] == 1) ''' // Break long line.
-'''descriptor[previousProperty].$reflectableField = 1;
+ if (firstChar === "+" || firstChar === "-") {
+ if (firstChar === "+") ${/* Break long line.
+*/""}mangledGlobalNames[previousProperty] = property.substring(1);
Johnni Winther 2013/11/25 07:19:20 Indent to align `mangledGlobalNames...` under `fir
zarah 2013/12/19 10:53:34 Done.
+ if (element == 1) descriptor[previousProperty].$reflectableField = 1;
Johnni Winther 2013/11/25 07:19:20 Indent to align with `if (element)...` below.
zarah 2013/12/19 10:53:34 Done.
if (element && element.length) ''' // Break long line.
'''init.typeInformation[previousProperty] = element;
} else if (firstChar === "@") {

Powered by Google App Engine
This is Rietveld 408576698