Include Semantics Node in debugDumpRenderTree, if available (#10338)

Makes debugging semantics easier (e.g. which RenderObject has semantics, where is a SemanticNode seen in the semantic tree comming from, etc).

It's only printed if accessibility is turned on.
This commit is contained in:
Michael Goderbauer
2017-05-26 09:31:39 -07:00
committed by GitHub
parent f68c6fb814
commit 307f3569a2

View File

@@ -2680,6 +2680,8 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
description.add('constraints: $constraints');
if (_layer != null) // don't access it via the "layer" getter since that's only valid when we don't need paint
description.add('layer: $_layer');
if (_semantics != null)
description.add('semantics: $_semantics');
}
/// Returns a string describing the current node's descendants. Each line of