lean4-htt/tests/lean/interactive/hoverDot.lean.expected.out
Kim Morrison 1ee7e1a9d8
chore: normalize URLs to the language reference in test results (#7782)
Links to the language reference include a version slug, either `latest`
or `v4.X.0`. These are included in hovers, which then get tested. To
avoid test breakages, in the testing framework we normalize all such URL
prefixes back to `REFERENCE`.
2025-04-02 06:17:31 +00:00

66 lines
3.6 KiB
Text

{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 8, "character": 11}}
{"range":
{"start": {"line": 8, "character": 7}, "end": {"line": 8, "character": 14}},
"contents": {"value": "```lean\nFoo.foo : Foo\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 12, "character": 7}}
{"range":
{"start": {"line": 12, "character": 7}, "end": {"line": 12, "character": 10}},
"contents": {"value": "```lean\nFoo.foo : Foo\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 12, "character": 11}}
{"range":
{"start": {"line": 12, "character": 11}, "end": {"line": 12, "character": 13}},
"contents":
{"value": "```lean\nFoo.f₁ (self : Foo) : Nat\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 12, "character": 14}}
{"range":
{"start": {"line": 12, "character": 14}, "end": {"line": 12, "character": 18}},
"contents":
{"value":
"```lean\nNat.succ (n : Nat) : Nat\n```\n***\nThe successor of a natural number `n`.\n\nUsing `Nat.succ n` should usually be avoided in favor of `n + 1`, which is the [simp normal\nform](REFERENCE/find/?domain=Verso.Genre.Manual.section&name=simp-normal-forms).\n\n***\n*import Init.Prelude*",
"kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 16, "character": 11}}
{"range":
{"start": {"line": 16, "character": 11}, "end": {"line": 16, "character": 13}},
"contents":
{"value": "```lean\nFoo.f₂ (f : Foo) : Nat\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 16, "character": 14}}
{"range":
{"start": {"line": 16, "character": 14}, "end": {"line": 16, "character": 18}},
"contents":
{"value":
"```lean\nNat.succ (n : Nat) : Nat\n```\n***\nThe successor of a natural number `n`.\n\nUsing `Nat.succ n` should usually be avoided in favor of `n + 1`, which is the [simp normal\nform](REFERENCE/find/?domain=Verso.Genre.Manual.section&name=simp-normal-forms).\n\n***\n*import Init.Prelude*",
"kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 19, "character": 13}}
{"range":
{"start": {"line": 19, "character": 13}, "end": {"line": 19, "character": 15}},
"contents":
{"value": "```lean\nFoo.f₂ (f : Foo) : Nat\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 19, "character": 16}}
{"range":
{"start": {"line": 19, "character": 16}, "end": {"line": 19, "character": 20}},
"contents":
{"value":
"```lean\nNat.succ (n : Nat) : Nat\n```\n***\nThe successor of a natural number `n`.\n\nUsing `Nat.succ n` should usually be avoided in favor of `n + 1`, which is the [simp normal\nform](REFERENCE/find/?domain=Verso.Genre.Manual.section&name=simp-normal-forms).\n\n***\n*import Init.Prelude*",
"kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 22, "character": 14}}
{"range":
{"start": {"line": 22, "character": 14}, "end": {"line": 22, "character": 16}},
"contents":
{"value": "```lean\nFoo.f₂ (f : Foo) : Nat\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///hoverDot.lean"},
"position": {"line": 22, "character": 17}}
{"range":
{"start": {"line": 22, "character": 17}, "end": {"line": 22, "character": 21}},
"contents":
{"value":
"```lean\nNat.succ (n : Nat) : Nat\n```\n***\nThe successor of a natural number `n`.\n\nUsing `Nat.succ n` should usually be avoided in favor of `n + 1`, which is the [simp normal\nform](REFERENCE/find/?domain=Verso.Genre.Manual.section&name=simp-normal-forms).\n\n***\n*import Init.Prelude*",
"kind": "markdown"}}