Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ClearTypeHashVisitor Class Reference
Inheritance diagram for dart::ClearTypeHashVisitor:
dart::ObjectVisitor

Public Member Functions

 ClearTypeHashVisitor (Zone *zone)
 
void VisitObject (ObjectPtr obj) override
 
- Public Member Functions inherited from dart::ObjectVisitor
 ObjectVisitor ()
 
virtual ~ObjectVisitor ()
 
virtual void VisitObject (ObjectPtr obj)=0
 

Detailed Description

Definition at line 1142 of file class_finalizer.cc.

Constructor & Destructor Documentation

◆ ClearTypeHashVisitor()

dart::ClearTypeHashVisitor::ClearTypeHashVisitor ( Zone zone)
inlineexplicit

Definition at line 1144 of file class_finalizer.cc.

1145 : type_(AbstractType::Handle(zone)),
1146 type_args_(TypeArguments::Handle(zone)) {}
static Object & Handle()
Definition: object.h:407

Member Function Documentation

◆ VisitObject()

void dart::ClearTypeHashVisitor::VisitObject ( ObjectPtr  obj)
inlineoverridevirtual

Implements dart::ObjectVisitor.

Definition at line 1148 of file class_finalizer.cc.

1148 {
1149 if (obj->IsType() || obj->IsTypeParameter() || obj->IsFunctionType() ||
1150 obj->IsRecordType()) {
1151 type_ ^= obj;
1152 type_.SetHash(0);
1153 } else if (obj->IsTypeArguments()) {
1154 type_args_ ^= obj;
1155 type_args_.SetHash(0);
1156 }
1157 }
void SetHash(intptr_t value) const
Definition: object.h:13386

The documentation for this class was generated from the following file: