diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-02-25 21:43:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 21:43:04 +0000 |
commit | ed1a4dc33fa78808fefaf020015b2177d7cdc1ce (patch) | |
tree | 1daec8a8d99f4936805928920132a2b4be794c88 /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | b695eb8f0bae01e00dfb9e9bf2554d1b48b76a9a (diff) | |
parent | dffb1adabd3853a8d1100e53d5fa351f8b5f180c (diff) | |
download | gcc-ed1a4dc33fa78808fefaf020015b2177d7cdc1ce.zip gcc-ed1a4dc33fa78808fefaf020015b2177d7cdc1ce.tar.gz gcc-ed1a4dc33fa78808fefaf020015b2177d7cdc1ce.tar.bz2 |
Merge #954
954: HIR Visitor refactoring r=philberty a=dkm
This change split the single HIR visitor in smaller abstract ones:
- Stmt
- VisItem
- Pattern
- ExternalItem
- Impl
- Type
- Expression
Instead of providing a Base class with empty visit() methods, they are kept
abstract to avoid the case where a missing visit() is silently ignored:
implementors must explicitely override all visit.
There is also a FullVisitor that covers all HIR nodes and also provides a Base
class with empty behavior.
fixes #825
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions