# `ExAST.Comments`
[🔗](https://github.com/elixir-vibe/ex_ast/blob/v0.11.0/lib/ex_ast/comments.ex#L1)

Extracts comments from Elixir source while preserving source positions.

# `extract`

```elixir
@spec extract(String.t()) :: [ExAST.Comment.t()]
```

# `text`

```elixir
@spec text(String.t()) :: String.t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
