2024-09-30 21:35:40 +02:00

5.4 KiB

t20058 - Objective-C sequence diagram with method params test case

Config

diagrams:
  t20058_sequence:
    type: sequence
    glob:
      - t20058.m
    include:
      paths:
        - .
    from:
      - function: "t20058_tmain()"

Source code

Generated PlantUML diagrams

t20058_sequence

Generated Mermaid diagrams

t20058_sequence

Generated JSON models

{
  "diagram_type": "sequence",
  "name": "t20058_sequence",
  "participants": [
    {
      "display_name": "t20058_tmain()",
      "full_name": "t20058_tmain()",
      "id": "10013434386438137637",
      "name": "t20058_tmain",
      "namespace": "",
      "source_location": {
        "column": 5,
        "file": "t20058.m",
        "line": 42,
        "translation_unit": "t20058.m"
      },
      "type": "function"
    },
    {
      "activities": [
        {
          "display_name": "init()",
          "full_name": "t20058_B::init()",
          "id": "6614157722445367193",
          "name": "init",
          "namespace": "",
          "source_location": {
            "column": 1,
            "file": "t20058.m",
            "line": 22,
            "translation_unit": "t20058.m"
          },
          "type": "objc_method"
        },
        {
          "display_name": "b:withInt:(NSString *,int)",
          "full_name": "t20058_B::b:withInt:(NSString *,int)",
          "id": "10314969513530641452",
          "name": "b:withInt:",
          "namespace": "",
          "source_location": {
            "column": 1,
            "file": "t20058.m",
            "line": 15,
            "translation_unit": "t20058.m"
          },
          "type": "objc_method"
        }
      ],
      "display_name": "t20058_B",
      "full_name": "t20058_B",
      "id": "15651320006928075206",
      "name": "t20058_B",
      "namespace": "",
      "source_location": {
        "column": 12,
        "file": "t20058.m",
        "line": 14,
        "translation_unit": "t20058.m"
      },
      "type": "objc_interface"
    },
    {
      "activities": [
        {
          "display_name": "a:(NSString *)",
          "full_name": "t20058_A::a:(NSString *)",
          "id": "16866946361589000914",
          "name": "a:",
          "namespace": "",
          "source_location": {
            "column": 1,
            "file": "t20058.m",
            "line": 4,
            "translation_unit": "t20058.m"
          },
          "type": "objc_method"
        }
      ],
      "display_name": "t20058_A",
      "full_name": "t20058_A",
      "id": "14435852284489160511",
      "name": "t20058_A",
      "namespace": "",
      "source_location": {
        "column": 12,
        "file": "t20058.m",
        "line": 3,
        "translation_unit": "t20058.m"
      },
      "type": "objc_interface"
    }
  ],
  "sequences": [
    {
      "messages": [
        {
          "from": {
            "activity_id": "10013434386438137637",
            "participant_id": "10013434386438137637"
          },
          "name": "init()",
          "return_type": "instancetype",
          "scope": "normal",
          "source_location": {
            "column": 23,
            "file": "t20058.m",
            "line": 45,
            "translation_unit": "t20058.m"
          },
          "to": {
            "activity_id": "6614157722445367193",
            "participant_id": "15651320006928075206"
          },
          "type": "message"
        },
        {
          "from": {
            "activity_id": "10013434386438137637",
            "participant_id": "10013434386438137637"
          },
          "name": "b:withInt:(NSString *,int)",
          "return_type": "NSString *",
          "scope": "normal",
          "source_location": {
            "column": 28,
            "file": "t20058.m",
            "line": 46,
            "translation_unit": "t20058.m"
          },
          "to": {
            "activity_id": "10314969513530641452",
            "participant_id": "15651320006928075206"
          },
          "type": "message"
        },
        {
          "from": {
            "activity_id": "10314969513530641452",
            "participant_id": "15651320006928075206"
          },
          "name": "a:(NSString *)",
          "return_type": "NSString *",
          "scope": "normal",
          "source_location": {
            "column": 24,
            "file": "t20058.m",
            "line": 36,
            "translation_unit": "t20058.m"
          },
          "to": {
            "activity_id": "16866946361589000914",
            "participant_id": "14435852284489160511"
          },
          "type": "message"
        },
        {
          "from": {
            "activity_id": "10013434386438137637",
            "participant_id": "10013434386438137637"
          },
          "name": "a:(NSString *)",
          "return_type": "NSString *",
          "scope": "normal",
          "source_location": {
            "column": 29,
            "file": "t20058.m",
            "line": 50,
            "translation_unit": "t20058.m"
          },
          "to": {
            "activity_id": "16866946361589000914",
            "participant_id": "14435852284489160511"
          },
          "type": "message"
        }
      ],
      "start_from": {
        "id": "10013434386438137637",
        "location": "t20058_tmain()"
      }
    }
  ]
}