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

Method canResolve

apps/sim/executor/variables/resolvers/loop.ts:46–56  ·  view source on GitHub ↗
(reference: string)

Source from the content-addressed store, hash-verified

44 private static KNOWN_PROPERTIES = new Set(['iteration', 'index', 'item', 'currentItem', 'items'])
45
46 canResolve(reference: string): boolean {
47 if (!isReference(reference)) {
48 return false
49 }
50 const parts = parseReferencePath(reference)
51 if (parts.length === 0) {
52 return false
53 }
54 const [type] = parts
55 return type === REFERENCE.PREFIX.LOOP || this.loopNameToId.has(type)
56 }
57
58 resolve(reference: string, context: ResolutionContext): any {
59 return this.resolveInternal(reference, context, false)

Callers

nothing calls this directly

Calls 2

isReferenceFunction · 0.90
parseReferencePathFunction · 0.90

Tested by

no test coverage detected