@exercism/codemirror-lang-kotlin 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ import { LRParser } from '@lezer/lr';
2
+ import { LanguageSupport, LRLanguage } from '@codemirror/language';
3
+ import { CompletionSource, Completion } from '@codemirror/autocomplete';
4
+
5
+ declare const parser: LRParser
6
+
7
+ /**
8
+ Snippets for the constructs a Kotlin file is mostly made of.
9
+ */
10
+ declare const snippets: readonly Completion[];
11
+ /**
12
+ Completion for Kotlin's keywords, snippets and the parts of the standard
13
+ library that are reached for most. After a `.` it offers only the functions
14
+ called on a value.
15
+ */
16
+ declare const kotlinCompletion: CompletionSource;
17
+ /**
18
+ Completion for the names declared in the file. A name is offered where it
19
+ is in scope: a parameter inside its function, a local below its
20
+ declaration, and a member anywhere in its class.
21
+ */
22
+ declare const localCompletionSource: CompletionSource;
23
+
24
+ declare const kotlinLanguage: LRLanguage;
25
+ /**
26
+ Kotlin language support, with completion for keywords, snippets, the
27
+ standard library and the names declared in the file.
28
+ */
29
+ declare function kotlin(): LanguageSupport;
30
+
31
+ export { kotlin, kotlinCompletion, kotlinLanguage, localCompletionSource, parser, snippets };
@@ -0,0 +1,31 @@
1
+ import { LRParser } from '@lezer/lr';
2
+ import { LanguageSupport, LRLanguage } from '@codemirror/language';
3
+ import { CompletionSource, Completion } from '@codemirror/autocomplete';
4
+
5
+ declare const parser: LRParser
6
+
7
+ /**
8
+ Snippets for the constructs a Kotlin file is mostly made of.
9
+ */
10
+ declare const snippets: readonly Completion[];
11
+ /**
12
+ Completion for Kotlin's keywords, snippets and the parts of the standard
13
+ library that are reached for most. After a `.` it offers only the functions
14
+ called on a value.
15
+ */
16
+ declare const kotlinCompletion: CompletionSource;
17
+ /**
18
+ Completion for the names declared in the file. A name is offered where it
19
+ is in scope: a parameter inside its function, a local below its
20
+ declaration, and a member anywhere in its class.
21
+ */
22
+ declare const localCompletionSource: CompletionSource;
23
+
24
+ declare const kotlinLanguage: LRLanguage;
25
+ /**
26
+ Kotlin language support, with completion for keywords, snippets, the
27
+ standard library and the names declared in the file.
28
+ */
29
+ declare function kotlin(): LanguageSupport;
30
+
31
+ export { kotlin, kotlinCompletion, kotlinLanguage, localCompletionSource, parser, snippets };