Fix typo in framework.dart private method name (#14046)
This commit is contained in:
parent
1dca1b22e8
commit
2a07f3f211
@ -3165,7 +3165,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
Set<InheritedElement> _dependencies;
|
Set<InheritedElement> _dependencies;
|
||||||
bool _hadUnsatisfiedDependencies = false;
|
bool _hadUnsatisfiedDependencies = false;
|
||||||
|
|
||||||
bool _debugCheckStateIsActiveForAncestorLoopkup() {
|
bool _debugCheckStateIsActiveForAncestorLookup() {
|
||||||
assert(() {
|
assert(() {
|
||||||
if (_debugLifecycleState != _ElementLifecycle.active) {
|
if (_debugLifecycleState != _ElementLifecycle.active) {
|
||||||
throw new FlutterError(
|
throw new FlutterError(
|
||||||
@ -3183,7 +3183,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
InheritedWidget inheritFromWidgetOfExactType(Type targetType) {
|
InheritedWidget inheritFromWidgetOfExactType(Type targetType) {
|
||||||
assert(_debugCheckStateIsActiveForAncestorLoopkup());
|
assert(_debugCheckStateIsActiveForAncestorLookup());
|
||||||
final InheritedElement ancestor = _inheritedWidgets == null ? null : _inheritedWidgets[targetType];
|
final InheritedElement ancestor = _inheritedWidgets == null ? null : _inheritedWidgets[targetType];
|
||||||
if (ancestor != null) {
|
if (ancestor != null) {
|
||||||
assert(ancestor is InheritedElement);
|
assert(ancestor is InheritedElement);
|
||||||
@ -3198,7 +3198,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
InheritedElement ancestorInheritedElementForWidgetOfExactType(Type targetType) {
|
InheritedElement ancestorInheritedElementForWidgetOfExactType(Type targetType) {
|
||||||
assert(_debugCheckStateIsActiveForAncestorLoopkup());
|
assert(_debugCheckStateIsActiveForAncestorLookup());
|
||||||
final InheritedElement ancestor = _inheritedWidgets == null ? null : _inheritedWidgets[targetType];
|
final InheritedElement ancestor = _inheritedWidgets == null ? null : _inheritedWidgets[targetType];
|
||||||
return ancestor;
|
return ancestor;
|
||||||
}
|
}
|
||||||
@ -3210,7 +3210,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget ancestorWidgetOfExactType(Type targetType) {
|
Widget ancestorWidgetOfExactType(Type targetType) {
|
||||||
assert(_debugCheckStateIsActiveForAncestorLoopkup());
|
assert(_debugCheckStateIsActiveForAncestorLookup());
|
||||||
Element ancestor = _parent;
|
Element ancestor = _parent;
|
||||||
while (ancestor != null && ancestor.widget.runtimeType != targetType)
|
while (ancestor != null && ancestor.widget.runtimeType != targetType)
|
||||||
ancestor = ancestor._parent;
|
ancestor = ancestor._parent;
|
||||||
@ -3219,7 +3219,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
State ancestorStateOfType(TypeMatcher matcher) {
|
State ancestorStateOfType(TypeMatcher matcher) {
|
||||||
assert(_debugCheckStateIsActiveForAncestorLoopkup());
|
assert(_debugCheckStateIsActiveForAncestorLookup());
|
||||||
Element ancestor = _parent;
|
Element ancestor = _parent;
|
||||||
while (ancestor != null) {
|
while (ancestor != null) {
|
||||||
if (ancestor is StatefulElement && matcher.check(ancestor.state))
|
if (ancestor is StatefulElement && matcher.check(ancestor.state))
|
||||||
@ -3232,7 +3232,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
State rootAncestorStateOfType(TypeMatcher matcher) {
|
State rootAncestorStateOfType(TypeMatcher matcher) {
|
||||||
assert(_debugCheckStateIsActiveForAncestorLoopkup());
|
assert(_debugCheckStateIsActiveForAncestorLookup());
|
||||||
Element ancestor = _parent;
|
Element ancestor = _parent;
|
||||||
StatefulElement statefulAncestor;
|
StatefulElement statefulAncestor;
|
||||||
while (ancestor != null) {
|
while (ancestor != null) {
|
||||||
@ -3245,7 +3245,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
RenderObject ancestorRenderObjectOfType(TypeMatcher matcher) {
|
RenderObject ancestorRenderObjectOfType(TypeMatcher matcher) {
|
||||||
assert(_debugCheckStateIsActiveForAncestorLoopkup());
|
assert(_debugCheckStateIsActiveForAncestorLookup());
|
||||||
Element ancestor = _parent;
|
Element ancestor = _parent;
|
||||||
while (ancestor != null) {
|
while (ancestor != null) {
|
||||||
if (ancestor is RenderObjectElement && matcher.check(ancestor.renderObject))
|
if (ancestor is RenderObjectElement && matcher.check(ancestor.renderObject))
|
||||||
@ -3258,7 +3258,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void visitAncestorElements(bool visitor(Element element)) {
|
void visitAncestorElements(bool visitor(Element element)) {
|
||||||
assert(_debugCheckStateIsActiveForAncestorLoopkup());
|
assert(_debugCheckStateIsActiveForAncestorLookup());
|
||||||
Element ancestor = _parent;
|
Element ancestor = _parent;
|
||||||
while (ancestor != null && visitor(ancestor))
|
while (ancestor != null && visitor(ancestor))
|
||||||
ancestor = ancestor._parent;
|
ancestor = ancestor._parent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user