We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df521d3 commit 04d2592Copy full SHA for 04d2592
lib/elixir/lib/code.ex
@@ -198,11 +198,12 @@ defmodule Code do
198
Diagnostics returned by the compiler and code evaluation.
199
"""
200
@type diagnostic(severity) :: %{
201
- file: Path.t(),
202
- severity: severity,
203
- message: String.t(),
204
- position: position,
205
- stacktrace: Exception.stacktrace()
+ required(:file) => Path.t(),
+ required(:severity) => severity,
+ required(:message) => String.t(),
+ required(:position) => position,
+ required(:stacktrace) => Exception.stacktrace(),
206
+ optional(any()) => any()
207
}
208
209
@typedoc "The line. 0 indicates no line."
0 commit comments