MCPcopy Create free account
hub / github.com/Fryuni/inox-tools / ParsedFunctionCode

Interface ParsedFunctionCode

packages/inline-mod/src/closure/parseFunction.ts:19–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18/** @internal */
19export interface ParsedFunctionCode {
20 // The serialized code for the function, usable as an expression. Valid for all functions forms
21 // (functions, lambdas, methods, etc.).
22 funcExprWithoutName: string;
23
24 // The serialized code for the function, usable as an function-declaration. Valid only for
25 // non-lambda function forms.
26 funcExprWithName?: string;
27
28 // the name of the function if it was a function-declaration. This is needed so
29 // that we can include an entry in the environment mapping this function name to
30 // the actual function we generate for it. This is needed so that nested recursive calls
31 // to the function see the function we're generating.
32 functionDeclarationName?: string;
33
34 // Whether or not this was an arrow function.
35 isArrowFunction: boolean;
36}
37
38/** @internal */
39export interface ParsedFunction extends ParsedFunctionCode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected