We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 143807f commit 1f9cf9dCopy full SHA for 1f9cf9d
test/outline.jl
@@ -131,6 +131,24 @@
131
end
132
133
134
+ # detect all the method parameters of a method with a `where` clause
135
+ let str = """
136
+ function push!′(ary::Vector{T}, item::S) where {T, S<:T}
137
+ tmpvec, tmpitem = ary, item
138
+ push!(tmpvec, tmpitem)
139
+ end
140
+ """
141
+
142
+ binds = map(l -> l[:name], Atom.locals(str, 1, 0))
143
+ @test "ary" in binds
144
+ @test "item" in binds
145
+ @test "T" in binds
146
+ @test "S" in binds
147
+ @test "tmpvec" in binds
148
+ @test "tmpitem" in binds
149
+ @test "push!′" in binds
150
151
152
let str = """
153
function foo(x)
154
@macrocall begin
0 commit comments