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

Method DefineProperty

source/script_object.cpp:1356–1369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354}
1355
1356Property *Object::DefineProperty(name_t aName)
1357{
1358 index_t insert_pos;
1359 auto field = FindField(aName, insert_pos);
1360 if (!field && !(field = Insert(aName, insert_pos)))
1361 return nullptr;
1362 if (field->symbol != SYM_DYNAMIC)
1363 {
1364 field->Free();
1365 field->symbol = SYM_DYNAMIC;
1366 field->prop = new Property();
1367 }
1368 return field->prop;
1369}
1370
1371ResultType GetObjMaxParams(IObject *aObj, int &aMaxParams, ResultToken &aResultToken)
1372{

Callers 3

DefineMembersMethod · 0.80
CreateRootPrototypesMethod · 0.80
DefineClassPropertyMethod · 0.80

Calls 1

FreeMethod · 0.45

Tested by

no test coverage detected