| 17 | |
| 18 | /** @internal */ |
| 19 | export 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 */ |
| 39 | export interface ParsedFunction extends ParsedFunctionCode { |
nothing calls this directly
no outgoing calls
no test coverage detected