runmat-hir 0.4.6

High-level IR for RunMat with type inference and lowering utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Span;

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum HirDiagnosticSeverity {
    Warning,
    Information,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct HirDiagnostic {
    pub message: String,
    pub span: Span,
    pub code: &'static str,
    pub severity: HirDiagnosticSeverity,
}