HomePhabricator

eolian: introduce the keyword required

Authored by Marcel Hollerbach <mail@marcel-hollerbach.de> on Jan 10 2019, 3:10 AM.

Description

eolian: introduce the keyword required

This introduces a new keyword called required. It only works on mixins.
You can specify a list of regular/abstract classes in there.
Classes specified after the required keyword are later used to verify
the usage of the mixin. With this feature a mixin can define a list of
types that the inheriting object (the object that inherits from a mixin)
needs to fullfill, if one class that is required is not in the
implemented classes, then eolian will bail out.

Differential Revision: https://phab.enlightenment.org/D7584

Marcel Hollerbach <mail@marcel-hollerbach.de> committed rEFL455dedd49dd5: eolian: introduce the keyword required (authored by Marcel Hollerbach <mail@marcel-hollerbach.de>).Jan 11 2019, 3:37 AM