Struct melior_next::ir::Location
source · pub struct Location<'c> { /* private fields */ }
Expand description
A location
Implementations§
source§impl<'c> Location<'c>
impl<'c> Location<'c>
sourcepub fn new(
context: &'c Context,
filename: &str,
line: usize,
column: usize
) -> Self
pub fn new( context: &'c Context, filename: &str, line: usize, column: usize ) -> Self
Creates a location with a filename and line and column numbers.
sourcepub fn fused(
context: &'c Context,
locations: &[Self],
attribute: Attribute<'_>
) -> Self
pub fn fused( context: &'c Context, locations: &[Self], attribute: Attribute<'_> ) -> Self
Creates a fused location.
sourcepub fn name(context: &'c Context, name: &str, child: Location<'_>) -> Self
pub fn name(context: &'c Context, name: &str, child: Location<'_>) -> Self
Creates a name location.
sourcepub fn context(&self) -> ContextRef<'c>
pub fn context(&self) -> ContextRef<'c>
Gets a context.