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
40
41
42
43
44
extern crate linked_hash_map;
#[macro_use]
extern crate log;
extern crate reproto_ast as ast;
extern crate reproto_core as core;
extern crate reproto_naming as naming;
extern crate reproto_parser as parser;
extern crate reproto_path_parser as path_parser;
macro_rules! check_attributes {
($ctx:expr, $attr:expr) => {{
let mut __a_r = $ctx.report();
for unused in $attr.unused() {
__a_r = __a_r.err(unused, "unknown attribute");
}
if let Some(e) = __a_r.close() {
return Err(e.into());
}
}}
}
macro_rules! check_selection {
($ctx:expr, $sel:expr) => {{
let mut __a_r = $ctx.report();
for unused in $sel.unused() {
__a_r = __a_r.err(unused, "unknown attribute");
}
if let Some(e) = __a_r.close() {
return Err(e.into());
}
}}
}
mod into_model;
mod scope;
pub mod environment;
pub use self::environment::Environment;