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

Method collectScript

hi_scripting/scripting/ScriptProcessor.cpp:1942–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1940}
1941
1942String JavascriptProcessor::collectScript(bool silent) const
1943{
1944 String x;
1945 mergeCallbacksToScript(x, NewLine::getDefault());
1946
1947 int counter = 0;
1948
1949 Array<File> includedFiles;
1950 String everything = Helpers::resolveIncludeStatements(x, includedFiles, this);
1951
1952 if (!silent && counter != 0)
1953 {
1954 everything = Helpers::stripUnusedNamespaces(everything, counter);
1955
1956 if(counter != 0)
1957 PresetHandler::showMessageWindow("Unneeded namespaces detected", String(counter) + " namespaces will be removed before exporting");
1958 }
1959
1960 return everything;
1961}
1962
1963
1964

Callers 1

encodeExpansionMethod · 0.80

Calls 2

getDefaultFunction · 0.50
StringClass · 0.50

Tested by

no test coverage detected