You could define a struct like

```rust
pub struct LintState {
   lvl: level,
   src: LintSource
}
```

and then have the `emit_lint` function being a public `.emit` method. The `node_levels` map would then store `LintState`.