# Source code of a function

**URL:** <https://discourse.julialang.org/t/source-code-of-a-function/4499>\
**Category:** General Usage\
**Created:** [June 27, 2017, 5:37pm UTC](https://discourse.julialang.org/t/source-code-of-a-function/4499 "2017-06-27T17:37:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [June 27, 2017, 7:10pm UTC](https://discourse.julialang.org/t/source-code-of-a-function/4499/4 "2017-06-27T19:10:37Z")

</div>

For reference, the source expression is available using the following:

`Base.uncompressed_ast(methods(f).ms[1]).code`

But right now it is necessary to go to the original code to get the unparsed version, as suggested above. It’s on the roadmap for 1.0; see [this issue](https://github.com/JuliaLang/julia/issues/21774) and others cross-referenced there.

---

_[View the full topic](https://discourse.julialang.org/t/source-code-of-a-function/4499)._
