MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / in_error_function

Method in_error_function

aiscript-vm/src/parser/mod.rs:898–903  ·  view source on GitHub ↗

Helper method to check if we're inside a function that can handle errors

(&self)

Source from the content-addressed store, hash-verified

896
897 // Helper method to check if we're inside a function that can handle errors
898 fn in_error_function(&self) -> bool {
899 self.error_resolver
900 .as_ref()
901 .map(|f| f.in_error_function)
902 .unwrap_or(false)
903 }
904
905 fn parse_function_return(&mut self) -> (Option<Token<'gc>>, Vec<Token<'gc>>) {
906 let mut return_type = None;

Callers 2

parse_error_handlingMethod · 0.80
raise_statementMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected