@exercism/codemirror-lang-fsharp 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.
- package/LICENSE +21 -0
- package/README.md +91 -2
- package/dist/index.cjs +806 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +798 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { parser } from "./syntax.grammar";
|
|
2
|
+
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
3
|
+
import { Completion, CompletionContext, CompletionResult, CompletionSource } from "@codemirror/autocomplete";
|
|
4
|
+
declare const snippets: readonly Completion[];
|
|
5
|
+
// Keywords, built-in functions and types, core modules and snippets.
|
|
6
|
+
declare const globalCompletion: CompletionSource;
|
|
7
|
+
// Functions of a core module after its name and a dot, as in `List.ma`.
|
|
8
|
+
declare function moduleMemberCompletion(context: CompletionContext): CompletionResult | null;
|
|
9
|
+
// Names declared in the file that are in scope at the cursor.
|
|
10
|
+
declare function localCompletionSource(context: CompletionContext): CompletionResult | null;
|
|
11
|
+
declare const fsharpLanguage: LRLanguage;
|
|
12
|
+
declare function fsharp(): LanguageSupport;
|
|
13
|
+
export { parser, globalCompletion, localCompletionSource, moduleMemberCompletion, snippets, fsharpLanguage, fsharp };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { parser } from "./syntax.grammar";
|
|
2
|
+
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
3
|
+
import { Completion, CompletionContext, CompletionResult, CompletionSource } from "@codemirror/autocomplete";
|
|
4
|
+
declare const snippets: readonly Completion[];
|
|
5
|
+
// Keywords, built-in functions and types, core modules and snippets.
|
|
6
|
+
declare const globalCompletion: CompletionSource;
|
|
7
|
+
// Functions of a core module after its name and a dot, as in `List.ma`.
|
|
8
|
+
declare function moduleMemberCompletion(context: CompletionContext): CompletionResult | null;
|
|
9
|
+
// Names declared in the file that are in scope at the cursor.
|
|
10
|
+
declare function localCompletionSource(context: CompletionContext): CompletionResult | null;
|
|
11
|
+
declare const fsharpLanguage: LRLanguage;
|
|
12
|
+
declare function fsharp(): LanguageSupport;
|
|
13
|
+
export { parser, globalCompletion, localCompletionSource, moduleMemberCompletion, snippets, fsharpLanguage, fsharp };
|