Skip to content

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

@Shasoosh

Description

@Shasoosh

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")
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions