MCPcopy Create free account
hub / github.com/christophhart/HISE / getSnippet

Method getSnippet

hi_scripting/scripting/ScriptProcessor.cpp:1553–1561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551
1552
1553JavascriptProcessor::SnippetDocument * JavascriptProcessor::getSnippet(const Identifier& id)
1554{
1555 for (int i = 0; i < getNumSnippets(); i++)
1556 {
1557 if (getSnippet(i)->getCallbackName() == id) return getSnippet(i);
1558 }
1559
1560 return nullptr;
1561}
1562
1563const JavascriptProcessor::SnippetDocument * JavascriptProcessor::getSnippet(const Identifier& id) const
1564{

Callers 15

controlCallbackMethod · 0.45
showPopupForCallbackMethod · 0.45
fillIndexListMethod · 0.45
gotoLocationMethod · 0.45
ScriptingEditorMethod · 0.45
showCallbackMethod · 0.45
getActiveCallbackMethod · 0.45
checkActiveSnippetsMethod · 0.45
initialiseEditorMethod · 0.45
fillRecursiveMethod · 0.45
fillSearchListMethod · 0.45

Calls 3

getSnippetFunction · 0.85
getNumSnippetsFunction · 0.70
getCallbackNameMethod · 0.45

Tested by

no test coverage detected