MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / hasStaticValue

Method hasStaticValue

src/hx/cppia/CppiaClasses.cpp:1424–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422
1423
1424bool CppiaClassInfo::hasStaticValue(const String &inName)
1425{
1426 if (findStaticGetter(inName))
1427 return true;
1428
1429 CppiaExpr *closure = findFunction(true,inName);
1430 if (closure)
1431 return true;
1432
1433 // Look for dynamic function (variable)
1434 for(int i=0;i<staticDynamicFunctions.size();i++)
1435 if (cppia.strings[ staticDynamicFunctions[i]->nameId ]==inName)
1436 return true;
1437
1438 for(int i=0;i<staticVars.size();i++)
1439 {
1440 CppiaVar &var = *staticVars[i];
1441 if (var.name==inName)
1442 return true;
1443 }
1444
1445 return false;
1446}
1447
1448
1449Dynamic CppiaClassInfo::setStaticValue(const String &inName,const Dynamic &inValue ,hx::PropertyAccess inCallProp)

Callers 1

__HasFieldMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected