Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gcc/rust/ast/clone-test.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ namespace user_code {
}
#endif

#endif
#endif
83 changes: 44 additions & 39 deletions gcc/rust/ast/rust-ast-containers.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,52 @@
#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 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 {
};

*/
}
}

#endif
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
420 changes: 211 additions & 209 deletions gcc/rust/ast/rust-ast-visitor.h

Large diffs are not rendered by default.

Loading