diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-12-18 21:33:09 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-18 21:33:09 +0800 |
commit | aa283484a3dffedc404653af18f9413775cbc3df (patch) | |
tree | 118a5b918c48fba3261731bba0a6b4149209f7d8 /gcc/rust/analysis/rust-resolution.h | |
parent | f764eeb8abf1ec50794ddb1f31bc57d025e29a3c (diff) | |
parent | bc14d9a0cd3c67093a9c11ad368c0d28325b21c6 (diff) | |
download | gcc-aa283484a3dffedc404653af18f9413775cbc3df.zip gcc-aa283484a3dffedc404653af18f9413775cbc3df.tar.gz gcc-aa283484a3dffedc404653af18f9413775cbc3df.tar.bz2 |
Merge branch 'master' of https://github.com/redbrain/gccrs
Diffstat (limited to 'gcc/rust/analysis/rust-resolution.h')
-rw-r--r-- | gcc/rust/analysis/rust-resolution.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/gcc/rust/analysis/rust-resolution.h b/gcc/rust/analysis/rust-resolution.h deleted file mode 100644 index 9eb4b95..0000000 --- a/gcc/rust/analysis/rust-resolution.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include "rust-system.h" -#include "rust-ast-full.h" -#include "rust-ast-visitor.h" -#include "rust-scan.h" -#include "scope.h" - -namespace Rust { -namespace Analysis { - -class Resolution : public AST::ASTVisitor -{ -public: - virtual ~Resolution () - { - scope.Pop (); - valueScope.Pop (); - macroScope.Pop (); - typeScope.Pop (); - }; - -private: - virtual bool go () = 0; - -protected: - Resolution (AST::Crate &crate, TopLevelScan &toplevel) - : crate (crate), toplevel (toplevel) - { - scope.Push (); - valueScope.Push (); - macroScope.Push (); - typeScope.Push (); - }; - - Scope<AST::Type *> scope; - Scope<AST::Type *> valueScope; - Scope<AST::Type *> macroScope; - Scope<AST::Type *> typeScope; - - AST::Crate &crate; - TopLevelScan &toplevel; - - std::vector<AST::IdentifierPattern> letPatternBuffer; - std::vector<AST::Type *> typeBuffer; - std::vector<std::string> typeComparisonBuffer; - std::vector<AST::Function *> functionLookup; -}; - -} // namespace Analysis -} // namespace Rust |