[I] Scalar
A scalar declaration or expression, with optional scalar inheritance and named constructors.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|---|
baseScalar? | public | Scalar | Scalar this scalar extends. | - | - |
constructors | public | Map<string, ScalarConstructor> | Constructors keyed by name, including inherited constructors rebound to this scalar. | - | - |
creating? | public | true | If the type is currently being created. | - | BaseType.creating |
decorators | public | DecoratorApplication[] | Applications used when finishing this type, including copied or synthesized applications. | - | DecoratedType.decorators |
derivedScalars | public | Scalar[] | Direct children. This is the reverse relation of See baseScalar | - | - |
entityKind | readonly | "Type" | Distinguishes semantic types from values and parameter constraints. | - | BaseType.entityKind |
expression | public | boolean | Whether this scalar was declared in expression position (anonymous scalar ...) rather than as a named statement. | - | - |
instantiationParameters? | public | Type[] | Legacy instantiation metadata. The compiler’s type checker does not populate this field, so its absence does not indicate whether this type is a template instance. | - | BaseType.instantiationParameters |
isFinished | public | boolean | Reflect if a type has been finished(Decorators have been called). There is multiple reasons a type might not be finished: - a template declaration will not - a template instance that argument that are still template parameters - a template instance that is only partially instantiated(like a templated operation inside a templated interface) | - | BaseType.isFinished |
kind | public | "Scalar" | Discriminant for scalar types rather than scalar values. | BaseType.kind | - |
name | public | string | Declared name, or an empty string for an anonymous scalar expression. | - | - |
namespace? | public | Namespace | Namespace the scalar was defined in. | - | - |
node? | public | ScalarStatementNode | ScalarDeclarationExpressionNode | Node used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example. | BaseType.node | - |
templateMapper? | public | TypeMapper | Argument substitutions for an instantiation; absent on an uninstantiated declaration. | - | TemplatedTypeBase.templateMapper |
templateNode? | public | Node | Originating template node, when retained separately from the type’s source node. | - | TemplatedTypeBase.templateNode |