Skip to content

Commit b567966

Browse files
authored
Minor diag fixes in TypedTreePickle (#18469)
1 parent b0956fe commit b567966

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/Compiler/TypedTree/TypedTreePickle.fs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ type NodeOutTable<'Data, 'Node> =
135135
Table = Table<_>.Create nm
136136
}
137137

138+
// Small glossary for future generations:
139+
// o... - output
140+
// i... - input
141+
// os - output stream
142+
// is - input stream
143+
// tab - table
144+
// osgn - output stream graph nodes
145+
138146
[<NoEquality; NoComparison>]
139147
type WriterState =
140148
{
@@ -1937,7 +1945,7 @@ let u_tcref st =
19371945
match tag with
19381946
| 0 -> u_local_item_ref st.ientities st |> ERefLocal
19391947
| 1 -> u_nleref st |> ERefNonLocal
1940-
| _ -> ufailwith st "u_item_ref"
1948+
| _ -> ufailwith st "u_tcref"
19411949

19421950
let u_ucref st =
19431951
let a, b = u_tup2 u_tcref u_string st
@@ -2027,7 +2035,7 @@ let u_vref st =
20272035
match tag with
20282036
| 0 -> u_local_item_ref st.ivals st |> VRefLocal
20292037
| 1 -> u_nonlocal_val_ref st |> VRefNonLocal
2030-
| _ -> ufailwith st "u_item_ref"
2038+
| _ -> ufailwith st "u_vref"
20312039

20322040
let u_vrefs = u_list u_vref
20332041

@@ -3206,7 +3214,7 @@ and u_parentref st =
32063214
match tag with
32073215
| 0 -> ParentNone
32083216
| 1 -> u_tcref st |> Parent
3209-
| _ -> ufailwith st "u_attribkind"
3217+
| _ -> ufailwith st "u_parentref"
32103218

32113219
and u_attribkind st =
32123220
let tag = u_byte st
@@ -3496,7 +3504,7 @@ and u_lval_op_kind st =
34963504
| 1 -> LByrefGet
34973505
| 2 -> LSet
34983506
| 3 -> LByrefSet
3499-
| _ -> ufailwith st "uval_op_kind"
3507+
| _ -> ufailwith st "ulval_op_kind"
35003508

35013509
and p_op x st =
35023510
match x with

0 commit comments

Comments
 (0)