| 1782 | |
| 1783 | |
| 1784 | void JavascriptProcessor::restoreInterfaceData(ValueTree propertyData) |
| 1785 | { |
| 1786 | auto buildComponents = !mainController->shouldSkipCompiling(); |
| 1787 | |
| 1788 | auto r = dynamic_cast<ProcessorWithScriptingContent*>(this)->getScriptingContent()->createComponentsFromValueTree(propertyData, buildComponents); |
| 1789 | |
| 1790 | int numComponents = 0; |
| 1791 | |
| 1792 | valuetree::Helpers::forEach(propertyData, [&numComponents](ValueTree& v) |
| 1793 | { |
| 1794 | if(v.getType() == Identifier("Component")) |
| 1795 | numComponents++; |
| 1796 | |
| 1797 | return false; |
| 1798 | }); |
| 1799 | |
| 1800 | dynamic_cast<Processor*>(this)->updateParameterSlots(numComponents); |
| 1801 | |
| 1802 | if (r.failed()) |
| 1803 | { |
| 1804 | debugError(dynamic_cast<Processor*>(this), r.getErrorMessage()); |
| 1805 | } |
| 1806 | } |
| 1807 | |
| 1808 | String JavascriptProcessor::Helpers::resolveIncludeStatements(String& x, Array<File>& includedFiles, const JavascriptProcessor* p) |
| 1809 | { |
nothing calls this directly
no test coverage detected