| 493 | } |
| 494 | |
| 495 | ValueTree CtrlrLuaMethodManager::getDefaultMethodTree(const String &methodName, const String &methodCode, const String &methodProperty, const Uuid methodUuid) |
| 496 | { |
| 497 | ValueTree methodTree (Ids::luaMethod); |
| 498 | methodTree.setProperty (Ids::luaMethodName, methodName, nullptr); |
| 499 | |
| 500 | if (methodCode.isEmpty()) |
| 501 | methodTree.setProperty (Ids::luaMethodCode, getDefaultMethodCode(methodName, methodProperty), nullptr); |
| 502 | else |
| 503 | methodTree.setProperty (Ids::luaMethodCode, methodCode, nullptr); |
| 504 | |
| 505 | methodTree.setProperty (Ids::luaMethodLinkedProperty, methodProperty, nullptr); |
| 506 | methodTree.setProperty (Ids::luaMethodSource, (int)CtrlrLuaMethod::codeInProperty, nullptr); |
| 507 | methodTree.setProperty (Ids::uuid, methodUuid.isNull() ? Uuid().toString() : methodUuid.toString(), nullptr); |
| 508 | return (methodTree); |
| 509 | } |
| 510 | |
| 511 | ValueTree CtrlrLuaMethodManager::getDefaultMethodTree(const File &methodFileSource, const Uuid methodUuid) |
| 512 | { |
nothing calls this directly
no test coverage detected