AST: Add GenericTypeParamType::getWeight()

This is currently always 0, but can be set to 1.
This commit is contained in:
Slava Pestov
2025-04-29 12:36:37 -04:00
parent 115ba5c54f
commit e1fc29193d
7 changed files with 68 additions and 29 deletions

View File

@@ -2423,7 +2423,8 @@ public:
paramKind = GenericTypeParamKind::Pack;
}
auto gp = GenericTypeParamType::get(paramKind, 0, paramIndex, Type(),
auto gp = GenericTypeParamType::get(paramKind, /*depth=*/0, paramIndex,
/*weight=*/0, /*valueType=*/Type(),
TC.Context);
substGenericParams.push_back(gp);