mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Parse docs
This commit is contained in:
parent
8843235f5f
commit
504f537208
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ module Ameba
|
||||||
def ast
|
def ast
|
||||||
@ast ||=
|
@ast ||=
|
||||||
Crystal::Parser.new(code)
|
Crystal::Parser.new(code)
|
||||||
|
.tap { |parser| parser.wants_doc = true }
|
||||||
.tap { |parser| parser.filename = @path }
|
.tap { |parser| parser.filename = @path }
|
||||||
.parse
|
.parse
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue