diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-06-02 15:46:57 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-06-02 15:50:06 +0100 |
commit | 8d1f5f99484f2b79439b86dca7123eb0260776d7 (patch) | |
tree | 5a46117460f55955071a47c3a3b381f1fdc21218 /gcc/rust/backend/rust-compile-expr.h | |
parent | 0866a4fbc6e7f70cd3708467419c60af8c6104f2 (diff) | |
download | gcc-8d1f5f99484f2b79439b86dca7123eb0260776d7.zip gcc-8d1f5f99484f2b79439b86dca7123eb0260776d7.tar.gz gcc-8d1f5f99484f2b79439b86dca7123eb0260776d7.tar.bz2 |
Add new mappings for items within a module
This patch adds two new interfaces to the mappings class.
- Lookup the child items within a module
- Lookup the parent module id from the child item id
Each of these API's are going to be required so that we can resolve two new
types of path segment:
super::foo::bar
Where we need to be able to lookup the super module node id from the
current scope node id. To then lookup the children within that scope. The
other path is simpler such as: crate::foo::bar. Where we lookup the items
within the current Crate NodeId and follow on as normal.
Addresses #1227
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions