Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: src/sksl/ast/SkSLASTVarDeclarationStatement.h

Issue 2312233002: refactored SkSL VarDeclaration handling (Closed)
Patch Set: fixed nits Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/sksl/ast/SkSLASTVarDeclaration.h ('k') | src/sksl/ir/SkSLStatement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/ast/SkSLASTVarDeclarationStatement.h
diff --git a/src/sksl/ast/SkSLASTVarDeclarationStatement.h b/src/sksl/ast/SkSLASTVarDeclarationStatement.h
index b647b6e52fa73448d207756d6ae3c5999456eca2..8bae389146c1b2b2c6afa977b84366fd85a40b0f 100644
--- a/src/sksl/ast/SkSLASTVarDeclarationStatement.h
+++ b/src/sksl/ast/SkSLASTVarDeclarationStatement.h
@@ -17,15 +17,15 @@ namespace SkSL {
* A variable declaration appearing as a statement within a function.
*/
struct ASTVarDeclarationStatement : public ASTStatement {
- ASTVarDeclarationStatement(std::unique_ptr<ASTVarDeclaration> decl)
+ ASTVarDeclarationStatement(std::unique_ptr<ASTVarDeclarations> decl)
: INHERITED(decl->fPosition, kVarDeclaration_Kind)
- , fDeclaration(std::move(decl)) {}
+ , fDeclarations(std::move(decl)) {}
std::string description() const override {
- return fDeclaration->description() + ";";
+ return fDeclarations->description() + ";";
}
- std::unique_ptr<ASTVarDeclaration> fDeclaration;
+ std::unique_ptr<ASTVarDeclarations> fDeclarations;
typedef ASTStatement INHERITED;
};
« no previous file with comments | « src/sksl/ast/SkSLASTVarDeclaration.h ('k') | src/sksl/ir/SkSLStatement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698