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

Method SetOwnProp

source/script_object.h:408–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 }
407
408 bool SetOwnProp(name_t aName, ExprTokenType &aValue)
409 {
410 index_t insert_pos;
411 auto field = FindField(aName, insert_pos);
412 if (!field && !(field = Insert(aName, insert_pos)))
413 return false;
414 return field->Assign(aValue);
415 }
416
417 bool SetOwnProp(name_t aName, __int64 aValue) { return SetOwnProp(aName, ExprTokenType(aValue)); }
418 bool SetOwnProp(name_t aName, IObject *aValue) { return SetOwnProp(aName, ExprTokenType(aValue)); }

Callers 8

SubmitMethod · 0.80
CreateMethod · 0.80
CreateClassMethod · 0.80
CreatePrototypeMethod · 0.80
GetOwnPropDescMethod · 0.80
DefineClassMethod · 0.80
DefineClassVarsMethod · 0.80
GetIDsOfNamesMethod · 0.80

Calls 2

ExprTokenTypeClass · 0.85
AssignMethod · 0.45

Tested by

no test coverage detected