Handle enum classes for clonable properties.

This commit is contained in:
Bobby Holley 2016-08-10 11:58:53 -07:00
parent 7afe037625
commit 1cd76c2917
2 changed files with 6 additions and 7 deletions

View file

@ -58,6 +58,9 @@ class Keyword(object):
def needs_cast(self):
return self.gecko_enum_prefix is None
def maybe_cast(self, type_str):
return "as " + type_str if self.needs_cast() else ""
class Longhand(object):
def __init__(self, style_struct, name, animatable=None, derived_from=None, keyword=None,