blob: fa400f166bbdc5c77f6f657e87df84817eadab38 (
plain)
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
45
46
47
48
49
50
51
52
53
|
#ifndef RUST_AST_CONTAINERS_H
#define RUST_AST_CONTAINERS_H
// crappy redefined AST maybe. may move
/* This is mainly the "logical", more "abstract" representation of the code,
* while the "AST" itself is more high-level and matches the language better. */
// this is now deprecated and replaced with the proper AST
#error "rust-ast-containers.h was included by accident. Don't use."
namespace Rust {
namespace AST {
struct Module
{
public:
};
struct Crate
{
public:
Module root_module;
};
// replace with rust-types.h version
struct AttributeList
{
public:
//::std::vector<Attribute> attribs;
};
// replace with rust-types.h version
struct Visibility
{
};
/*enum VisibilityType {
Private,
PublicFull,
PublicInPath,
PublicCrate,
PublicSuper,
PublicSelfModule
};
// Represents visibility - maybe make into an enum or union or something
struct Visibility {
};
*/
} // namespace AST
} // namespace Rust
#endif
|