Unverified Commit f03b0070 authored by Yegor's avatar Yegor Committed by GitHub

code readability: fix awkward variable shadowing (#23886)

parent dd30efa1
...@@ -2414,17 +2414,17 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im ...@@ -2414,17 +2414,17 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
final bool childrenMergeIntoParent = mergeIntoParent || config.isMergingSemanticsOfDescendants; final bool childrenMergeIntoParent = mergeIntoParent || config.isMergingSemanticsOfDescendants;
visitChildrenForSemantics((RenderObject renderChild) { visitChildrenForSemantics((RenderObject renderChild) {
final _SemanticsFragment fragment = renderChild._getSemanticsForParent( final _SemanticsFragment parentFragment = renderChild._getSemanticsForParent(
mergeIntoParent: childrenMergeIntoParent, mergeIntoParent: childrenMergeIntoParent,
); );
if (fragment.dropsSemanticsOfPreviousSiblings) { if (parentFragment.dropsSemanticsOfPreviousSiblings) {
fragments.clear(); fragments.clear();
toBeMarkedExplicit.clear(); toBeMarkedExplicit.clear();
if (!config.isSemanticBoundary) if (!config.isSemanticBoundary)
dropSemanticsOfPreviousSiblings = true; dropSemanticsOfPreviousSiblings = true;
} }
// Figure out which child fragments are to be made explicit. // Figure out which child fragments are to be made explicit.
for (_InterestingSemanticsFragment fragment in fragment.interestingFragments) { for (_InterestingSemanticsFragment fragment in parentFragment.interestingFragments) {
fragments.add(fragment); fragments.add(fragment);
fragment.addAncestor(this); fragment.addAncestor(this);
fragment.addTags(config.tagsForChildren); fragment.addTags(config.tagsForChildren);
......
...@@ -296,10 +296,10 @@ class TestSemantics { ...@@ -296,10 +296,10 @@ class TestSemantics {
return true; return true;
bool result = true; bool result = true;
final Iterator<TestSemantics> it = children.iterator; final Iterator<TestSemantics> it = children.iterator;
for (final SemanticsNode node in node.debugListChildrenInOrder(childOrder)) { for (final SemanticsNode child in node.debugListChildrenInOrder(childOrder)) {
it.moveNext(); it.moveNext();
final bool childMatches = it.current._matches( final bool childMatches = it.current._matches(
node, child,
matchState, matchState,
ignoreRect: ignoreRect, ignoreRect: ignoreRect,
ignoreTransform: ignoreTransform, ignoreTransform: ignoreTransform,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment