AST: Witness stores SubstitutionList instead of SubstitutionMap

This simplifies serialization and removes some calls of
SubstitutionMap::addSubstitution() and addConformance().
This commit is contained in:
Slava Pestov
2017-02-07 23:47:24 -08:00
parent e8bd2cb367
commit ec4a95be21
7 changed files with 55 additions and 84 deletions

View File

@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
/// in source control, you should also update the comment to briefly
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
const uint16_t VERSION_MINOR = 313; // Last change: generic environments
const uint16_t VERSION_MINOR = 314; // Last change: change synthetic substitution serialization
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;