MCPcopy Create free account
hub / github.com/hey-api/hey-api / set

Method set

packages/openapi-python/src/py-dsl/utils/reserved.ts:24–28  ·  view source on GitHub ↗

* 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))

Source from the content-addressed store, hash-verified

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
31const runtimeReserved = new ReservedList([...keywords.pythonKeywords, ...keywords.pythonBuiltins]);

Callers 15

getExportsMethod · 0.45
getImportsMethod · 0.45
subscript.tsFile · 0.45
call.tsFile · 0.45
constructorMethod · 0.45
attr.tsFile · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
return.tsFile · 0.45
constructorMethod · 0.45
exceptMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected