pub fn create_error(&mut self, kind: CompileError, span: Span) -> Index {
        let mut errors = HashSet::new();
        errors.insert(kind);
        self.insert(CfgNode {
            expr: Ir::Error,
            next: None,
            span,
            errors,

            // This node is actually usually generated during parsing for things like a `break` or
            // `continue`. So, we actually do want to treat it as if the user wrote it themselves.
            allow_unreachable: false,
        })
    }
/// Create a dummy `Error` node, as a stand-in for a node which should have been generated but
/// for some reason cannot be.
Create a dummy `Error` node, as a stand-in for a node which should have been generated but
for some reason cannot be.
Create a dummy ` Error ` node as a stand - in for a node which should have been generated but for some reason cannot be .
pub fn create_error(&mut self, kind: CompileError, span: Span) -> Index {
        let mut errors = HashSet::new();
        errors.insert(kind);
        self.insert(CfgNode {
            expr: Ir::Error,
            next: None,
            span,
            errors,
            // This node is actually usually generated during parsing for things like a `break` or
            // `continue`. So, we actually do want to treat it as if the user wrote it themselves.
            allow_unreachable: false,
        })
    }
pub fn create_error ( & mut self , kind : CompileError , span : Span ) -> Index { let mut errors = HashSet :: new ( ) ; errors . insert ( kind ) ; self . insert ( CfgNode { expr : Ir :: Error , next : None , span , errors , // This node is actually usually generated during parsing for things like a `break` or // `continue`. So, we actually do want to treat it as if the user wrote it themselves. allow_unreachable : false , } ) }
Create a dummy `Error` node, as a stand-in for a node which should have been generated but
for some reason cannot be.
Create a dummy ` Error ` node as a stand - in for a node which should have been generated but for some reason cannot be .
&mut self
kind
CompileError
span
Span