MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / parseScript

Function parseScript

packages/parsers/src/gsapParser.ts:77–85  ·  view source on GitHub ↗
(script: string)

Source from the content-addressed store, hash-verified

75type ScopeBindings = ReadonlyMap<string, number | string | boolean>;
76
77function parseScript(script: string) {
78 return recast.parse(script, {
79 parser: {
80 parse(source: string) {
81 return babelParse(source, { sourceType: "script", plugins: [], tokens: true });
82 },
83 },
84 });
85}
86
87function collectScopeBindings(ast: AstNode): ScopeBindings {
88 const bindings = new Map<string, number | string | boolean>();

Callers 6

parseGsapAstFunction · 0.70
parseExprFunction · 0.70
addAnimationToScriptFunction · 0.70
insertInheritedStateSetFunction · 0.70
addMotionPathToScriptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected