salsa/examples/compiler/interner.rs

11 lines
260 B
Rust
Raw Normal View History

use crate::values::*;
#[salsa::query_group(InternerDatabase)]
pub trait Interner: salsa::Database {
#[salsa::interned]
fn intern_field(&self, field: FieldData) -> Field;
#[salsa::interned]
fn intern_class(&self, class: ClassData) -> Class;
}