[AST] Explicitly track things marked __owned.

This commit is contained in:
Huon Wilson
2018-02-27 17:50:11 -08:00
parent ae0027a225
commit e307e54098
48 changed files with 358 additions and 141 deletions

View File

@@ -210,9 +210,10 @@ enum class VarDeclSpecifier : uint8_t {
Var,
InOut,
Shared,
Owned,
};
using VarDeclSpecifierField = BCFixed<2>;
using VarDeclSpecifierField = BCFixed<3>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.
enum class ParameterConvention : uint8_t {
@@ -325,6 +326,7 @@ enum ValueOwnership : uint8_t {
Default = 0,
InOut,
Shared,
Owned
};
using ValueOwnershipField = BCFixed<2>;