MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Type

Method Type

source/script_object.cpp:990–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988//
989
990LPTSTR Object::Type()
991{
992 Object *base;
993 ExprTokenType value;
994 if (GetOwnProp(value, _T("__Class")))
995 return _T("Prototype"); // This object is a prototype.
996 for (base = mBase; base; base = base->mBase)
997 if (base->GetOwnProp(value, _T("__Class")))
998 return TokenToString(value); // This object is an instance of that class.
999 return _T("Object"); // Provide a default in case __Class has been removed from all of the base objects.
1000}
1001
1002
1003Object *Object::CreateClass(Object *aPrototype)

Callers 2

FullyReleasedMethod · 0.45
NameMethod · 0.45

Calls 2

TokenToStringFunction · 0.85
GetOwnPropMethod · 0.80

Tested by

no test coverage detected