Skip to content

Commit 4864161

Browse files
authored
improve compiler/stmtinfo.jl docs (#37544)
1 parent b94a0fe commit 4864161

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

base/compiler/stmtinfo.jl

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ by calling an `@pure` function).
1919
"""
2020
struct MethodResultPure end
2121

22-
2322
"""
2423
struct UnionSplitInfo
2524
@@ -36,8 +35,8 @@ end
3635
"""
3736
struct CallMeta
3837
39-
A simple struct that captures both the return type any any additional `info`
40-
for a given generic call.
38+
A simple struct that captures both the return type (`rt`) and any additional information
39+
(`info`) for a given generic call.
4140
"""
4241
struct CallMeta
4342
rt::Any
@@ -57,12 +56,12 @@ end
5756
"""
5857
struct ApplyCallInfo
5958
60-
This info applies to any call of _apply_iterate(...) and captures both the
59+
This info applies to any call of `_apply_iterate(...)` and captures both the
6160
info of the actual call being applied and the info for any implicit call
6261
to the `iterate` function. Note that it is possible for the call itself
6362
to be yet another `_apply_iterate`, in which case the `.call` field will
64-
be another ApplyCallInfo. This info is illegal on any statement that is
65-
not an _apply_iterate call.
63+
be another `ApplyCallInfo`. This info is illegal on any statement that is
64+
not an `_apply_iterate` call.
6665
"""
6766
struct ApplyCallInfo
6867
# The info for the call itself
@@ -75,10 +74,8 @@ end
7574
struct UnionSplitApplyCallInfo
7675
7776
Like `UnionSplitInfo`, but for `ApplyCallInfo` rather than MethodMatchInfo.
78-
This info is illegal on any statement that is not an _apply_iterate call.
77+
This info is illegal on any statement that is not an `_apply_iterate` call.
7978
"""
8079
struct UnionSplitApplyCallInfo
8180
infos::Vector{ApplyCallInfo}
8281
end
83-
84-

0 commit comments

Comments
 (0)