8
8
/**
9
9
* Turn a unist point into a language server protocol position.
10
10
*
11
- * @param {Point } point The unist point to convert.
12
- * @returns {LspPosition } The LSP position.
11
+ * @param {Point } point
12
+ * The unist point to convert.
13
+ * @returns {LspPosition }
14
+ * The LSP position.
13
15
*/
14
16
export function fromPoint ( point ) {
15
17
return {
@@ -21,8 +23,10 @@ export function fromPoint(point) {
21
23
/**
22
24
* Convert an LSP position to a unist point.
23
25
*
24
- * @param {LspPosition } lspPosition The LSP position to convert.
25
- * @returns {Point } The unist point.
26
+ * @param {LspPosition } lspPosition
27
+ * The LSP position to convert.
28
+ * @returns {Point }
29
+ * The unist point.
26
30
*/
27
31
export function toPoint ( lspPosition ) {
28
32
return {
@@ -34,8 +38,10 @@ export function toPoint(lspPosition) {
34
38
/**
35
39
* Convert a unist position to an LSP range.
36
40
*
37
- * @param {UnistPosition } unistPosition The unist position to convert.
38
- * @returns {Range } The LSP range.
41
+ * @param {UnistPosition } unistPosition
42
+ * The unist position to convert.
43
+ * @returns {Range }
44
+ * The LSP range.
39
45
*/
40
46
export function fromPosition ( unistPosition ) {
41
47
return {
@@ -47,8 +53,10 @@ export function fromPosition(unistPosition) {
47
53
/**
48
54
* Convert an LSP range to a unist position.
49
55
*
50
- * @param {Range } range The LSP range to convert.
51
- * @returns {UnistPosition } The range converted to a unist position.
56
+ * @param {Range } range
57
+ * The LSP range to convert.
58
+ * @returns {UnistPosition }
59
+ * The range converted to a unist position.
52
60
*/
53
61
export function toPosition ( range ) {
54
62
return {
0 commit comments