MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / evaluate

Method evaluate

app/src/DataModel/Editors/JsCodeEditor.cpp:410–418  ·  view source on GitHub ↗

* @brief Validates the current code for syntax errors and reports the result. */

Source from the content-addressed store, hash-verified

408 * @brief Validates the current code for syntax errors and reports the result.
409 */
410void DataModel::JsCodeEditor::evaluate()
411{
412 auto& parser = DataModel::FrameParser::instance();
413 if (parser.loadScript(m_sourceId, text(), true)) {
414 Misc::Utilities::showMessageBox(tr("Code Validation Successful"),
415 tr("No syntax errors detected in the parser code."),
416 QMessageBox::Information);
417 }
418}
419
420/**
421 * @brief Reloads the editor text from the current project model code.

Callers 15

painterDryRunMethod · 0.45
outputWidgetDryRunMethod · 0.45
dryRunMethod · 0.45
installBootstrapMethod · 0.45
compileMethod · 0.45
BaseMethod · 0.45
compileMethod · 0.45
definesMqttFunctionMethod · 0.45
runScriptMethod · 0.45
compileTransformsJSMethod · 0.45
validateTransformMethod · 0.45
testTransformMethod · 0.45

Calls 1

loadScriptMethod · 0.45

Tested by

no test coverage detected