Align Range/RangeInclusive handling with other definitions (#4489)

* Align Range/RangeInclusive handling with other definitions

* Split RangeInclusive class

* Rnage -> Range TypeDef

* Correct Range wrappers

* CHANGELOG

* Remove extra Range CHANGELOG entry

* Update CHANGELOG.md
This commit is contained in:
Jaco
2022-01-24 08:46:35 +02:00
committed by GitHub
parent b94cf566c9
commit db5b0986c4
11 changed files with 71 additions and 29 deletions
@@ -519,7 +519,9 @@ export class PortableRegistry extends Struct implements ILookup {
});
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
return withTypeString(this.registry, {
info: TypeDefInfo.Range,
info: pathFirst === 'Range'
? TypeDefInfo.Range
: TypeDefInfo.RangeInclusive,
sub: this.#createSiDef(params[0].type.unwrap()),
type: pathFirst
});