syntax_data: {"ast_node_type":"function","tokens":[{"end":65,"kind":"keyword","start":0,"text":"pub"}]}
source_snippet:     pub fn set_error_format(&mut self, output: ErrorOutputType) {
context_before:     /// format. If `early_err` was previously called this will panic.
context_after:         assert!(self.dcx.handle().has_errors().is_none());