blob: 5bc8ed971aeae7c8c81f20b732fbb75f9173017c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//! Implements warnings that are emitted in cases where code passed to
//! Tvix exhibits problems that the user could address.
#[derive(Debug)]
pub enum WarningKind {
DeprecatedLiteralURL,
UselessInherit,
UnusedBinding,
ShadowedGlobal(&'static str),
}
#[derive(Debug)]
pub struct EvalWarning {
pub node: rnix::SyntaxNode,
pub kind: WarningKind,
}
|