* * Create a Numeric Value. * * @internal
(
value:
| number
| bigint
| Complex
| OneOf<[BigNum | NumericValueData | ExactNumericValueData]>
)
| 974 | * (`engine-configuration-lifecycle.ts`, `axisMaskOf` — the per-kind masks |
| 975 | * are documented there and in the design's §2/§5). |
| 976 | * @internal |
| 977 | */ |
| 978 | get _anyVersion(): number { |
| 979 | return this._configurationLifecycle.anyVersion; |
| 980 | } |
| 981 | |
| 982 | /** |
| 983 | * The `semantic` invalidation axis — semantic mutations only; excludes |
| 984 | * ephemeral loop-index writes and clean scope pops, so caches keyed on it |
| 985 | * (the `Comprehension` element memo) survive unrelated scoped |
| 986 | * evaluations. READ-ONLY since the step-2b cutover — see `_anyVersion`. |
| 987 | * @internal |
| 988 | */ |
| 989 | get _semanticVersion(): number { |
| 990 | return this._configurationLifecycle.semanticVersion; |
| 991 | } |
| 992 | |
| 993 | /** |
| 994 | * The `world` invalidation axis — rare global-semantics events only |
| 995 | * (assumptions, redefinition, inference, configuration). A cache whose |
| 996 | * dependency tracking already covers value writes (the collection element |
| 997 | * memo) keys on THIS axis, so an unrelated `assign()` does not cold it. |
| 998 | * READ-ONLY since the step-2b cutover — see `_anyVersion`. |
| 999 | * @internal |
| 1000 | */ |
| 1001 | get _worldVersion(): number { |
| 1002 | return this._configurationLifecycle.worldVersion; |
| 1003 | } |
| 1004 | |
| 1005 | /** |
| 1006 | * The `callable` invalidation axis (design §5, step 3) — events that can |
| 1007 | * change what the effects projection reads: world-class events, callable |
| 1008 | * writes/declares/retypes/swaps, and assumption-dirty pops. Keys |
| 1009 | * `BoxedFunction._effects` (with a scope-identity stamp). READ-ONLY — |
| 1010 | * see `_anyVersion`. |
| 1011 | * @internal |
| 1012 | */ |
| 1013 | get _callableVersion(): number { |
| 1014 | return this._configurationLifecycle.callableVersion; |
| 1015 | } |
| 1016 | |
| 1017 | /** |
| 1018 | * When > 0, value writes are ephemeral loop-index writes: they bump |
| 1019 | * `_anyVersion` and the definition's `_writeVersion` but not |
| 1020 | * `_semanticVersion`. Incremented/decremented (try/finally) around the |
| 1021 | * index assigns of `reduceBigOp` and `ComprehensionIndexFrame`. |
| 1022 | * @internal |
| 1023 | */ |
| 1024 | get _ephemeralWriteDepth(): number { |
| 1025 | return this._configurationLifecycle.ephemeralWriteDepth; |
| 1026 | } |
| 1027 | |
| 1028 | set _ephemeralWriteDepth(value: number) { |
| 1029 | this._configurationLifecycle.ephemeralWriteDepth = value; |
| 1030 | } |
| 1031 | |
| 1032 | get _scratchDeclarationScopes(): object[] { |
| 1033 | return this._configurationLifecycle.scratchDeclarationScopes; |
nothing calls this directly
no test coverage detected