Closed JonnyWalker closed 10 years ago
Enum hints are set while type checking. Only inside membership (belong)-nodes, if both children-nodes are ids. e.g x:S, S is added as hint to the x node. If there is already a hint present, the hint is set to None and will be ignored inside the enumeration. It is set as ast-node modification after a frame pop (write to env).
The hint is used in try_all_values and and all_values inside enumeration.py
Removed enum hint. The hint was set but never used in enumeration.py. It was always nonsense to collect constraints while type checking. Collecting the information x:S without knowing the context was never useful at all
Write more enum hint-tests