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

Can this be used to create a call graph? #79

Open
Shasoosh opened this issue Jan 31, 2024 · 0 comments
Open

Can this be used to create a call graph? #79

Shasoosh opened this issue Jan 31, 2024 · 0 comments

Comments

@Shasoosh
Copy link

Hello,

I'm seeking a method to visualize all the classes in my project but also identify dependencies \ relationship. (basically which class calls another.)

Is it possible to achieve this with the tool?
For example, scanning Car.swift will produce something similar to

+-------------------+        +-------------------+       +----------------------+
|   Music           |  <--   |   Car             | -->   |   Engine             |
+-------------------+        +-------------------+       +----------------------+
| + startMusic()    |        | + startCar()      |       | + startEngine()      |
+-------------------+        +-------------------+       +----------------------+
class Car {
    static func startCar() {
        print("Car started")
        Engine.startEngine()
        Music.startMusic()
    }
}
class Music {
    static func startMusic() {
        print("Music started")
    }
}
class Engine {
    static func startEngine() {
        print("Engine started")
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant