refactored more SkSL IRNodes

Change-Id: Iab04e4915715bad56b795993022b24a137339daf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/324125
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/sksl/SkSLDehydrator.cpp b/src/sksl/SkSLDehydrator.cpp
index 5689fa9..23d9f4a 100644
--- a/src/sksl/SkSLDehydrator.cpp
+++ b/src/sksl/SkSLDehydrator.cpp
@@ -323,8 +323,8 @@
             case Expression::Kind::kIndex: {
                 const IndexExpression& i = e->as<IndexExpression>();
                 this->writeCommand(Rehydrator::kIndex_Command);
-                this->write(i.fBase.get());
-                this->write(i.fIndex.get());
+                this->write(i.base().get());
+                this->write(i.index().get());
                 break;
             }
             case Expression::Kind::kIntLiteral: {
@@ -460,7 +460,7 @@
             case Statement::Kind::kReturn: {
                 const ReturnStatement& r = s->as<ReturnStatement>();
                 this->writeCommand(Rehydrator::kReturn_Command);
-                this->write(r.fExpression.get());
+                this->write(r.expression().get());
                 break;
             }
             case Statement::Kind::kSwitch: {
@@ -497,8 +497,8 @@
             case Statement::Kind::kWhile: {
                 const WhileStatement& w = s->as<WhileStatement>();
                 this->writeCommand(Rehydrator::kWhile_Command);
-                this->write(w.fTest.get());
-                this->write(w.fStatement.get());
+                this->write(w.test().get());
+                this->write(w.statement().get());
                 break;
             }
         }