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

Unified Diff: pkg/compiler/lib/src/native/enqueue.dart

Issue 1419883002: Reenable support for native factory constructors. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/native/enqueue.dart
diff --git a/pkg/compiler/lib/src/native/enqueue.dart b/pkg/compiler/lib/src/native/enqueue.dart
index 42ceba2d4b2f9f80c23f757dba1a6a137730675d..5fcea39d5353ce46847506be837b1ba411b6d159 100644
--- a/pkg/compiler/lib/src/native/enqueue.dart
+++ b/pkg/compiler/lib/src/native/enqueue.dart
@@ -348,7 +348,10 @@ abstract class NativeEnqueuerBase implements NativeEnqueuer {
registerElement(Element element) {
reporter.withCurrentElement(element, () {
- if (element.isFunction || element.isGetter || element.isSetter) {
+ if (element.isFunction ||
+ element.isFactoryConstructor ||
+ element.isGetter ||
+ element.isSetter) {
handleMethodAnnotations(element);
if (element.isNative) {
registerMethodUsed(element);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698