* Generate a map of source positions to function names. The names are meant to * describe the stack frame in an error trace and may contain more contextual * information than just the actual name of the function. * * The output is encoded for use in a source map. For details about the format, *
( ast: BabelNode, context?: Context, )
| 80 | * see MappingEncoder below. |
| 81 | */ |
| 82 | function generateFunctionMap( |
| 83 | ast: BabelNode, |
| 84 | context?: Context, |
| 85 | ): FBSourceFunctionMap { |
| 86 | const encoder = new MappingEncoder(); |
| 87 | forEachMapping(ast, context, mapping => encoder.push(mapping)); |
| 88 | return encoder.getResult(); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Same as generateFunctionMap, but returns the raw array of mappings instead |
no test coverage detected
searching dependent graphs…