Parse docs

This commit is contained in:
Vitalii Elenhaupt 2019-07-22 16:23:59 +03:00
parent 8843235f5f
commit 504f537208
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706

View file

@ -52,6 +52,7 @@ module Ameba
def ast
@ast ||=
Crystal::Parser.new(code)
.tap { |parser| parser.wants_doc = true }
.tap { |parser| parser.filename = @path }
.parse
end