| Index: lib/src/compiler/code_generator.dart
|
| diff --git a/lib/src/compiler/code_generator.dart b/lib/src/compiler/code_generator.dart
|
| index 898c6b57be226f3406c2815c4d858c587801ca44..255f15931c429f5c653b581e0435d18102ae04d9 100644
|
| --- a/lib/src/compiler/code_generator.dart
|
| +++ b/lib/src/compiler/code_generator.dart
|
| @@ -416,7 +416,12 @@ class CodeGenerator extends GeneralizingAstVisitor
|
| // Don't allow redefining names from this library.
|
| if (currentNames.containsKey(export.name)) continue;
|
|
|
| - _loader.emitDeclaration(export);
|
| + if (export.isSynthetic && export is PropertyInducingElement) {
|
| + _loader.emitDeclaration(export.getter);
|
| + _loader.emitDeclaration(export.setter);
|
| + } else {
|
| + _loader.emitDeclaration(export);
|
| + }
|
| if (export is ClassElement && export.typeParameters.isNotEmpty) {
|
| // Export the generic name as well.
|
| // TODO(jmesserly): revisit generic classes
|
|
|