Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a sequence diagram or class diagram for dart code? [closed]

Tags:

dart

Is there a way to create a sequence diagram or class diagram for dart code? Or any other useful way to visualize the structure (or a vague programmflow) of a dart application.

edit: here is the feature request. If you think that it is a good idea, star it. http://code.google.com/p/dart/issues/detail?id=6558&q=sequence%20diagram&colspec=ID%20Type%20Status%20Priority%20Area%20Milestone%20Owner%20Summary

like image 211
Gero Avatar asked Oct 28 '12 14:10

Gero


People also ask

How do you create a sequence diagram code?

In the Model Tree, right-click an operation and select Create Sequence diagram for code. You will then be prompted if you want to use the new diagram for forward engineering. The result is a new Sequence Diagram containing the lifeline of that class.

How do I create a sequence diagram in Visual Studio code?

seqdiag file in Visual Studio Code, preview tab will open automatically. If you wish to reopen the preview tab, press CTRL+SHIFT+P or F1 to open Command Palette and execute Show Sequence Diagram Preview command. See js-sequence-diagrams for syntax details.


1 Answers

I don't think there's anything for Dart that will feed your code to Graphviz, but there are two tools in Dart Editor that I find helpful: Tools/Outline and Tools/Callers.

Doing something that would generate a pretty diagram with Graphviz sounds like it would be a great contribution to Dart! If it's been done in the Eclipse world before, then it's probably possible to hack Dart Editor to do it. Alternatively, you can file a bug on dartbug.com requesting the feature.

like image 95
Shannon -jj Behrens Avatar answered Nov 02 '22 04:11

Shannon -jj Behrens