Add accDescription field to state diagrams

This commit is contained in:
Tali Herzka
2022-04-07 21:35:13 +00:00
committed by GitHub
parent 0c5252594e
commit 49409241bc
12 changed files with 506 additions and 275 deletions

View File

@@ -115,6 +115,16 @@ let startCnt = 0;
let endCnt = 0; // eslint-disable-line
// let stateCnt = 0;
let description = '';
const setAccDescription = function (txt) {
description = txt;
};
const getAccDescription = function () {
return description;
};
/**
* Function called by parser when a node definition has been found.
*
@@ -280,4 +290,6 @@ export default {
getRootDocV2,
extract,
trimColon,
getAccDescription,
setAccDescription,
};