* Updates the reserved list with new values. * * @param values New reserved values or a function that receives the previous * reserved values and returns the new ones.
(values: List | ((prev: List) => List))
| 22 | * reserved values and returns the new ones. |
| 23 | */ |
| 24 | set(values: List | ((prev: List) => List)): void { |
| 25 | const vals = typeof values === 'function' ? values(this._array) : values; |
| 26 | this._array = vals; |
| 27 | this._set = new Set(vals); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | const runtimeReserved = new ReservedList([...keywords.pythonKeywords, ...keywords.pythonBuiltins]); |
no outgoing calls
no test coverage detected