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

Method constructor

packages/openapi-python/src/py-dsl/expr/expr.ts:18–26  ·  view source on GitHub ↗
(id: Id)

Source from the content-addressed store, hash-verified

16 protected _exprInput: Ref<Id>;
17
18 constructor(id: Id) {
19 super();
20 this._exprInput = ref(id);
21 if (typeof id === 'string' || isSymbol(id)) {
22 this.name.set(id);
23 } else if (isNode(id)) {
24 this.name.set(id.name);
25 }
26 }
27
28 override analyze(ctx: AnalysisContext): void {
29 super.analyze(ctx);

Callers

nothing calls this directly

Calls 4

refFunction · 0.90
isSymbolFunction · 0.90
isNodeFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected