1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
mod validation_db;
mod argument;
mod directive;
mod enum_;
mod extension;
mod field;
mod fragment;
mod input_object;
mod interface;
mod object;
mod operation;
mod scalar;
mod schema;
mod selection;
mod union_;
mod variable;
pub use validation_db::{ValidationDatabase, ValidationStorage};
use crate::hir::HirNodeLocation;
#[derive(Debug, Eq)]
struct ValidationSet {
name: String,
loc: Option<HirNodeLocation>,
}
impl std::hash::Hash for ValidationSet {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.name.hash(state);
}
}
impl PartialEq for ValidationSet {
fn eq(&self, other: &Self) -> bool {
self.name == other.name
}
}