implement pretty print for struct field access expression

This commit is contained in:
2020-02-04 21:34:28 +01:00
parent 1ca3f5ca8b
commit f0b6f052d6

View File

@@ -407,7 +407,11 @@ public class PrettyPrintVisitor implements Visitor<Void> {
@Override
public Void visit(StructFieldAccessExpression e) {
// TODO Auto-generated method stub
ex.write(e.varName);
for (int i = 0; i < e.path.length; i++) {
ex.write(".");
ex.write(e.path[i]);
}
return null;
}