@exercism/codemirror-lang-dart 0.0.0-stage → 1.0.0

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,33 @@
1
+ import { LRParser } from '@lezer/lr';
2
+ import { LanguageSupport, LRLanguage } from '@codemirror/language';
3
+ import { CompletionSource, CompletionContext, Completion } from '@codemirror/autocomplete';
4
+ import { SyntaxNode } from '@lezer/common';
5
+
6
+ declare const parser: LRParser
7
+
8
+ /**
9
+ Snippets for the constructs a Dart file is made of.
10
+ */
11
+ declare const snippets: readonly Completion[];
12
+ /**
13
+ Completes the names declared in the file that are in scope at the cursor:
14
+ classes, functions, fields, variables, parameters, type parameters, enum
15
+ values, import prefixes and the variables a pattern binds.
16
+ */
17
+ declare function localCompletions(context: CompletionContext, node: SyntaxNode): Completion[];
18
+ /**
19
+ Completion for Dart. After a dot it offers the common members of the core
20
+ types. Elsewhere it offers keywords, snippets, the core types and the
21
+ names in scope. Inside strings and comments it offers nothing, though it
22
+ does work inside a `${}` interpolation.
23
+ */
24
+ declare const dartCompletion: CompletionSource;
25
+
26
+ declare const dartLanguage: LRLanguage;
27
+ /**
28
+ Dart language support, with completion for keywords, snippets, the core
29
+ libraries and the names declared in the file.
30
+ */
31
+ declare function dart(): LanguageSupport;
32
+
33
+ export { dart, dartCompletion, dartLanguage, localCompletions, parser, snippets };
@@ -0,0 +1,33 @@
1
+ import { LRParser } from '@lezer/lr';
2
+ import { LanguageSupport, LRLanguage } from '@codemirror/language';
3
+ import { CompletionSource, CompletionContext, Completion } from '@codemirror/autocomplete';
4
+ import { SyntaxNode } from '@lezer/common';
5
+
6
+ declare const parser: LRParser
7
+
8
+ /**
9
+ Snippets for the constructs a Dart file is made of.
10
+ */
11
+ declare const snippets: readonly Completion[];
12
+ /**
13
+ Completes the names declared in the file that are in scope at the cursor:
14
+ classes, functions, fields, variables, parameters, type parameters, enum
15
+ values, import prefixes and the variables a pattern binds.
16
+ */
17
+ declare function localCompletions(context: CompletionContext, node: SyntaxNode): Completion[];
18
+ /**
19
+ Completion for Dart. After a dot it offers the common members of the core
20
+ types. Elsewhere it offers keywords, snippets, the core types and the
21
+ names in scope. Inside strings and comments it offers nothing, though it
22
+ does work inside a `${}` interpolation.
23
+ */
24
+ declare const dartCompletion: CompletionSource;
25
+
26
+ declare const dartLanguage: LRLanguage;
27
+ /**
28
+ Dart language support, with completion for keywords, snippets, the core
29
+ libraries and the names declared in the file.
30
+ */
31
+ declare function dart(): LanguageSupport;
32
+
33
+ export { dart, dartCompletion, dartLanguage, localCompletions, parser, snippets };