mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 08:06:19 +00:00
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:
committed by
Commit Bot service account
parent
f12054ea2a
commit
1e29f4beb0
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user