Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an LS extension for the revamped sequence diagram #340

Open
nipunayf opened this issue Mar 29, 2024 · 0 comments · May be fixed by #338
Open

Implement an LS extension for the revamped sequence diagram #340

nipunayf opened this issue Mar 29, 2024 · 0 comments · May be fixed by #338
Assignees

Comments

@nipunayf
Copy link
Contributor

nipunayf commented Mar 29, 2024

Description:

$title. To grasp the idea of the revamped sequence diagram, consider the following source code and its produced diagram. In contrast to what we have now, the proposed sequence diagram only highlights the interactions and the nodes related to such interactions. The proposed LS extension produces the JSON model required to visualize the diagram.

function fn1(int maxCount) { 
  int count = 0;
  while count < maxCount {
    count = fn2(count);
  }
  fn3(count.toString());
}

function fn2(int i) => i + 1;

function fn3(string s) => print(s);
sequenceDiagram
    loop count < maxCount
        FN1->>FN2: int i
        FN2-->>FN1: int 
    end
    FN1->>FN3: string s
    FN3-->>FN1: 
@nipunayf nipunayf self-assigned this Mar 29, 2024
@nipunayf nipunayf linked a pull request Mar 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: PR Sent
Development

Successfully merging a pull request may close this issue.

1 participant