Move CloneContext and Traits from src/ast to src/

CloneContext clones the AST, types, symbols and in the future semantic info.
3/4 of these are non-ast, so promote these up to the root.

Bug: tint:390
Change-Id: I49619796e6f81f9ab64f79413a12c87312cb1901
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38361
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton
2021-01-21 16:20:40 +00:00
committed by Commit Bot service account
parent f12054ea2a
commit 1e29f4beb0
81 changed files with 150 additions and 158 deletions

View File

@@ -705,7 +705,7 @@ DefInfo::~DefInfo() = default;
bool StatementBuilder::IsValid() const {
return true;
}
ast::Node* StatementBuilder::Clone(ast::CloneContext*) const {
ast::Node* StatementBuilder::Clone(CloneContext*) const {
return nullptr;
}
void StatementBuilder::to_str(std::ostream& out, size_t indent) const {

View File

@@ -350,7 +350,7 @@ class StatementBuilder : public Castable<StatementBuilder, ast::Statement> {
private:
bool IsValid() const override;
Node* Clone(ast::CloneContext*) const override;
Node* Clone(CloneContext*) const override;
void to_str(std::ostream& out, size_t indent) const override;
};