Honor fIsScope when emitting a Block's description.
Change-Id: I93d580e67cb66d388bd66b280ff229cb79e5b154 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/354218 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
cf1e2f3d9b
commit
4ed174526b
@ -68,12 +68,15 @@ public:
|
||||
}
|
||||
|
||||
String description() const override {
|
||||
String result("{");
|
||||
String result;
|
||||
if (fIsScope) {
|
||||
result += "{";
|
||||
}
|
||||
for (const std::unique_ptr<Statement>& stmt : this->children()) {
|
||||
result += "\n";
|
||||
result += stmt->description();
|
||||
}
|
||||
result += "\n}\n";
|
||||
result += fIsScope ? "\n}\n" : "\n";
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user