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

Method EndClassDefinition

source/script_object.cpp:913–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911//
912
913void Object::EndClassDefinition()
914{
915 auto &obj = *(Object *)GetOwnPropObj(_T("Prototype"));
916 // Each variable declaration created a 'missing' property in the class or prototype object to prevent
917 // duplicate or conflicting declarations. Remove them now so that the declaration acts like a normal
918 // assignment (i.e. invokes property setters and __Set), for flexibility and consistency; and so that
919 // SYM_MISSING doesn't need special handling at runtime.
920 RemoveMissingProperties();
921 obj.RemoveMissingProperties();
922}
923
924void Object::RemoveMissingProperties()
925{

Callers 1

LoadIncludedFileMethod · 0.80

Calls 1

Tested by

no test coverage detected