MCPcopy Index your code
hub / github.com/simstudioai/sim / canResolve

Method canResolve

apps/sim/executor/variables/resolvers/block.ts:72–82  ·  view source on GitHub ↗
(reference: string)

Source from the content-addressed store, hash-verified

70 }
71
72 canResolve(reference: string): boolean {
73 if (!isReference(reference)) {
74 return false
75 }
76 const parts = parseReferencePath(reference)
77 if (parts.length === 0) {
78 return false
79 }
80 const [type] = parts
81 return !(SPECIAL_REFERENCE_PREFIXES as readonly string[]).includes(type)
82 }
83
84 resolve(reference: string, context: ResolutionContext): any {
85 const parts = parseReferencePath(reference)

Callers

nothing calls this directly

Calls 2

isReferenceFunction · 0.90
parseReferencePathFunction · 0.90

Tested by

no test coverage detected