Skip to content

Commit a4f0c94

Browse files
arnaudroquesgithub-actions
andauthored
Auto branch 20250604110853 (#34)
* Create function1.puml * Add generated files in /db --------- Co-authored-by: github-actions <[email protected]>
1 parent 791042b commit a4f0c94

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"sha1": "63k2z5wn0rlz78nb85fa9i3a2v7kbj3",
3+
"insertion": {
4+
"when": "2025-06-04T11:08:52.876Z",
5+
"url": "https://github.com/plantuml/plantuml/issues/2182",
6+
7+
}
8+
}
9+
@startuml
10+
11+
!procedure $test_proc($param1 = "foo", $param2 = "bar")
12+
rectangle $param1{
13+
rectangle $param2{
14+
}
15+
}
16+
!endprocedure
17+
18+
!function $test_func($param1 = "foo", $param2 = "bar")
19+
!return $param1 + $param2
20+
!endfunction
21+
22+
$test_proc($param2 = "baz")
23+
24+
rectangle func0 [
25+
$test_func()
26+
]
27+
28+
rectangle func1 [
29+
!$value = $test_func("baz", "qu" + "x")
30+
$value
31+
]
32+
33+
rectangle func2 [
34+
$test_func($param2 = "qu" + "x")
35+
]
36+
37+
@enduml

input/function1.puml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
https://github.com/plantuml/plantuml/issues/2182
2+
3+
@startuml
4+
5+
!procedure $test_proc($param1 = "foo", $param2 = "bar")
6+
rectangle $param1{
7+
rectangle $param2{
8+
}
9+
}
10+
!endprocedure
11+
12+
!function $test_func($param1 = "foo", $param2 = "bar")
13+
!return $param1 + $param2
14+
!endfunction
15+
16+
$test_proc($param2 = "baz")
17+
18+
rectangle func0 [
19+
$test_func()
20+
]
21+
22+
rectangle func1 [
23+
!$value = $test_func("baz", "qu" + "x")
24+
$value
25+
]
26+
27+
rectangle func2 [
28+
$test_func($param2 = "qu" + "x")
29+
]
30+
31+
@enduml

0 commit comments

Comments
 (0)