@@ -524,6 +524,26 @@ algorithm
524524 serializeList(file,eq. beqs,serializeExp);
525525 File . write(file,"]}]}" );
526526 then true ;
527+ case SimCode . SES_ALGORITHM (statements= {stmt as DAE . STMT_ASSIGN ()})
528+ equation
529+ File . write(file, " \n { \" eqIndex \" :" );
530+ File . write(file, intString(eq. index));
531+ if parent <> 0 then
532+ File . write(file, ", \" parent \" :" );
533+ File . write(file, intString(parent));
534+ end if ;
535+ File . write(file, ", \" section \" : \" " );
536+ File . write(file, section);
537+ File . write(file, " \" , \" tag \" : \" algorithm \" , \" defines \" :[ \" " );
538+ File . writeEscape(file,crefStr(Expression . expCref(stmt. exp1)),escape= File . Escape . JSON );
539+ File . write(file, " \" ], \" uses \" :[" );
540+ serializeUses(file,Expression . extractUniqueCrefsFromExp(stmt. exp));
541+ File . write(file, "], \" equation \" :[" );
542+ serializeList(file,eq. statements,serializeStatement);
543+ File . write(file, "], \" source \" :" );
544+ serializeSource(file,Algorithm . getStatementSource(stmt),withOperations);
545+ File . write(file, "}" );
546+ then true ;
527547 case SimCode . SES_ALGORITHM (statements= stmt::_)
528548 equation
529549 File . write(file, " \n { \" eqIndex \" :" );
0 commit comments