Skip to main content

Module code_frame

Module code_frame 

Source

Functions§

code_frame_columns
Produce a code frame matching @babel/code-frame’s codeFrameColumns() in non-highlighted mode.
format_compiler_error
Format a CompilerError into a message string matching the TS compiler’s CompilerError.printErrorMessage() / formatCompilerError() format.
print_code_frame
Format a code frame with abbreviation for long spans, matching the JS printCodeFrame() function.