forked from Ericsson/CodeCompass
-
Notifications
You must be signed in to change notification settings - Fork 2
C# diagrams #1
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
Open
ervin7mk
wants to merge
50
commits into
csharp_plugin
Choose a base branch
from
csharp_diagrams
base: csharp_plugin
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
C# diagrams #1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csharpservice::getFileDiagramTypes and getFileDiagrams got a test functionality, creating the diagram 'TEST DIAGRAM'. csharpfilediagram.cpp and .h got created in order to achieve this. getFileDiagramTypes and getFileDiagram got added to thrift.
Previously data was only provided by csharpservice.cpp and no data was requested from the CsharpQueryHandler.cs. This commit requests the first AstValue associated with the path of the .cs file desired to create a diagram on.
This commit adds CsharpEdge.cs to create a table named CsharpEdge.
More work needed for the table to actually appear
The aim is to make this table appear
This commit creates the RelationCollector class which is derived from CsharpSyntaxWalker in order to populate the CsharpEdges table in the future.
More work added in RelationCollector.cs and Program.cs in order to collect data into CsharpEdges table
This commit fixes code related errors when parsing using the newly created RelationCollector
This commit adds conditions to check for null files.
This commit fixes the RelationCollector class and makes changes to the Program.cs. We add a ConcurrentDictionary in order to gather data into it with the relationcollector. After data is collected, the contents of this ConcurrentDictionary is transferred to the DbContext and the changes are saved. RelationCollector needs further work on the VisitValueDeclarator and VisitInvocationExpression functions.
In this commmit i gather the data required, to build
the file usages diagram, into a string, using the
following format $"{uses}:{revUses}".
This will be converted and used.
The data we gather from the Csharp component in order to build the diagram needs to be converted in order to be useful. This means converting from a string which contains both the uses and the revuses to two vector<FileId> instances to later pass on to the diagram generator functions.
With this commit the first version of the file usage diagram shows, the first level of usages and revusages show.
The diagram didnt show in cases where either it didnt have uses or revuses, this commit fixes this issue.
With this commit the file usage diagram is extended with further information, meaning more children are added to the diagram. This was achieved by using a BFS in the c# component to gather the data into a dictionary and passed along to the diagram building function.
This commit enables that every possible edge is shown from a single file, not just until depth 3 is reached like before.
This commit adds the internal structure diagram aka the subsystem directory diagram.
Data gather in csharpservice.cpp
With this commit the external users diagram can be visualized. It can be called upon a directory and it will show the directories sub directories and every external directory which uses one of our directory
With this commit the new diagram types Function call diagram and Detailed class diagrams show as options when right clicking on either a function or a class. Also, CodeBites option is available.
This commit adds a first version of the function call diagram which can be visualized by right clicking on the declaration of a function
This commit adds the detailed class diagram which creates a UML diagram on the desired class.
This commit adds diagram legends to function call and detailed class diagrams.
This commit removes previously written testdiagram and the menu now shows C# Diagrams option instead of Diagrams.
This commit removes accessability tags from the signature of methods,classes and properties since there is a visual aid in form of +,- and #, so there is no need to write out the accessability of each.
This commit fixes a case where the detailed class diagram will include the annotations before the signature in the diagram. This commit fixes this. It looks clean now.
This commit adds a functional version of CodeBites. This was achieved by modifying AstVisitor.cs by adding declarations into CsharpEtcEntitys table. Modifications to CodeBites.js were also needed since new behavior was introduced in case of .CS files. Now edges dont show declarations and declarations can be moved to a new box.
There were some commented lines of code and a variable which needed to be deleted.
This commit improves queryCallers,queryCallees and queryCall functions so that it will not query itself.
With this commit I am cleaning up code which is either commented or not in use.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.