Skip to content

Commit 004b4c6

Browse files
committed
Change printing of K"latestworld"
Parens are nice, but it wasn't consistent
1 parent 8a52e0c commit 004b4c6

File tree

10 files changed

+262
-262
lines changed

10 files changed

+262
-262
lines changed

src/syntax_graph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ function _value_string(ex)
431431
k == K"Symbol" ? ":$(ex.name_val)" :
432432
k == K"globalref" ? "$(ex.mod).$(ex.name_val)" :
433433
k == K"slot" ? "slot" :
434-
k == K"latestworld" ? "(latestworld)" :
434+
k == K"latestworld" ? "latestworld" :
435435
k == K"static_parameter" ? "static_parameter" :
436436
k == K"symbolic_label" ? "label:$(ex.name_val)" :
437437
k == K"symbolic_goto" ? "goto:$(ex.name_val)" :

test/assignments_ir.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ begin
4646
end
4747
#---------------------
4848
1 (method TestMod.b)
49-
2 (latestworld)
49+
2 latestworld
5050
3 TestMod.b
5151
4 (call core.Typeof %₃)
5252
5 (call core.svec %₄)
@@ -58,7 +58,7 @@ end
5858
1 TestMod.d
5959
2 (= slot₂/c %₁)
6060
3 (return %₁)
61-
10 (latestworld)
61+
10 latestworld
6262
11 TestMod.b
6363
12 (= slot₁/a %₁₁)
6464
13 (return %₁₁)
@@ -143,7 +143,7 @@ X{T} = Y{T,T}
143143
7 (call core.apply_type %%%₆)
144144
8 (call core.UnionAll %%₇)
145145
9 (constdecl TestMod.X %₈)
146-
10 (latestworld)
146+
10 latestworld
147147
11 (return %₈)
148148

149149
########################################
@@ -161,7 +161,7 @@ end
161161
7 (call core.apply_type %%%₆)
162162
8 (call core.UnionAll %%₇)
163163
9 (= slot₁/X %₈)
164-
10 (latestworld)
164+
10 latestworld
165165
11 (return %₈)
166166

167167
########################################

0 commit comments

Comments
 (0)