-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
We need to carefully handle the presence of the constructor in the list of methods (EtsClass::methods).
- If we receive the IR (from AA) where
methodscontain a non-empty constructor, we are good. - If there is no explicit constructor in the TS class, AA will create --- in the most cases --- an empty one (on their side, it is also marked as "synthetic"), and we will receive it via IR.
- However, sometimes there is no constructor among
methodsin the IR. We handle this insideEtsClass::ctorby searching for the method calledconstructoramong the methods, and if there is no such method, we return (inval ctor) a newly (lazily cached) created one. Probably we should consider adding this newly created ctor inmethodslist. Or better just ensure thatmethodslist contains the constructor (or put a synthetic one) during the initialization ofEtsClassImpl.
Metadata
Metadata
Assignees
Labels
No labels