def hover.text

bolt@1.27.0.0 · src/lsp/proto.bend:113

import bolt@1.27.0.0/src/lsp/proto.bend as Proto
import Base

113# an item as hover text: its signature as code, then its doc comment
114def hover.text(sig: String, +doc: String) -> String:
115  "```bend\n" ++ sig ++ "\n```" ++ Bool.pick(String, String.is_empty(doc), "", "\n\n" ++ doc)

Uses (4)

Used by (1)