Skip to content

Commit

Permalink
lazy function views
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Jan 30, 2017
1 parent 36653ac commit 3c28145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ isanon(f) = contains(string(f), "#")

@render Inline f::Function begin
isanon(f) ? span(".syntax--support.syntax--function", "λ") :
Tree(span(".syntax--support.syntax--function", string(typeof(f).name.mt.name)),
[(Atom.CodeTools.hasdoc(f) ? [doc(f)] : [])..., methods(f)])
LazyTree(span(".syntax--support.syntax--function", string(typeof(f).name.mt.name)),
()->[(Atom.CodeTools.hasdoc(f) ? [doc(f)] : [])..., methods(f)])
end

# TODO: lazy load a recursive tree
Expand Down

0 comments on commit 3c28145

Please sign in to comment.