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
mod validation_db;
mod directive;
mod enum_;
mod input_object;
mod interface;
mod object;
mod operation;
mod scalar;
mod schema;
mod union_;
mod unused_variable;
use apollo_parser::SyntaxNode;
pub use validation_db::{ValidationDatabase, ValidationStorage};
#[derive(Debug, Eq)]
struct ValidationSet {
name: String,
node: SyntaxNode,
}
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
}
}