3fb5f27d05
The enhancement is that we can now create a const constructor if the class to be created is being used as an annotation. We could also do this if the class were being created from a constructor invocation, but I didn't do that. This also doesn't handle creating a named constructor, but I don't think it's any worse than before. If you disagree let me know. Change-Id: Idcff7bd0ac8def416b141b49b801f6798548405d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148885 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>