Protected
decoratorProtected
templatesStatic
Protected
idsProtected
getRegisters a new template and replaces all existing (added via register,prepend,append).
Registers a template for a given class type.
As soon as a single template has registered for the given classType the template registry only returns templates for this particular classType and omits all general purpose ReflectionKind.class templates for this particular classType.
Removes all registered templates.
Generated using TypeDoc
Registers additional templates that handle type decorators/annotations. The templates can safely assume that the given type in
state.accessor
is already type-checked to beT
.Decorator templates run last (after normal templates and postHook).
This split between register and registerForDecorator is made to have a distinction between native type templates and additional user-made templates. This allows to fetch only decorator templates and decide upon the result whether additional code is necessary or not. (this would not be possible if everything is added to the
register
call that does always the basic checks).