| 217 | } |
| 218 | |
| 219 | resolve( |
| 220 | candidateValue: string | null, |
| 221 | themeKeys: ThemeKey[], |
| 222 | options: ThemeOptions = ThemeOptions.NONE, |
| 223 | ): string | null { |
| 224 | let themeKey = this.#resolveKey(candidateValue, themeKeys) |
| 225 | |
| 226 | if (!themeKey) return null |
| 227 | |
| 228 | let value = this.values.get(themeKey)! |
| 229 | |
| 230 | if ((options | value.options) & ThemeOptions.INLINE) { |
| 231 | return value.value |
| 232 | } |
| 233 | |
| 234 | return this.#var(themeKey) |
| 235 | } |
| 236 | |
| 237 | resolveValue(candidateValue: string | null, themeKeys: ThemeKey[]): string | null { |
| 238 | let themeKey = this.#resolveKey(candidateValue, themeKeys) |