Struct bytecode_source_map::marking::MarkedSourceMapping
source · pub struct MarkedSourceMapping { /* private fields */ }
Expand description
A data structure that contains markings for both functions and structs. This will be used for printing out error messages and the like.
Implementations§
source§impl MarkedSourceMapping
impl MarkedSourceMapping
pub fn new() -> Self
pub fn mark_code_offset( &mut self, function_definition_index: FunctionDefinitionIndex, code_offset: CodeOffset, message: String )
pub fn mark_function_type_param( &mut self, function_definition_index: FunctionDefinitionIndex, type_param_offset: usize, message: String )
pub fn mark_struct_field( &mut self, struct_definition_index: StructDefinitionIndex, field_index: MemberCount, message: String )
pub fn mark_struct_type_param( &mut self, struct_definition_index: StructDefinitionIndex, type_param_offset: usize, message: String )
Trait Implementations§
source§impl Debug for MarkedSourceMapping
impl Debug for MarkedSourceMapping
source§impl Default for MarkedSourceMapping
impl Default for MarkedSourceMapping
source§fn default() -> MarkedSourceMapping
fn default() -> MarkedSourceMapping
Returns the “default value” for a type. Read more