stan-language-server 0.2.0-beta.1 → 0.3.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.
@@ -1,9 +0,0 @@
1
- import { TextDocument } from "vscode-languageserver-textdocument";
2
- import { type FileContent, type Filename, type FilePathError } from "./includes";
3
- import type { StancReturn } from "../types/common";
4
- type GetIncludesFunction = (fileContent: FileContent) => Promise<Record<Filename, FileContent | FilePathError>>;
5
- export declare const compile: (getIncludesFn: GetIncludesFunction) => (document: TextDocument, args?: string[]) => Promise<StancReturn>;
6
- export declare function getMathSignatures(): string;
7
- export declare function getMathDistributions(): string;
8
- declare const _default: (document: TextDocument, args?: string[]) => Promise<StancReturn>;
9
- export default _default;
@@ -1,10 +0,0 @@
1
- export type Filename = string;
2
- export type FileContent = string;
3
- export type FilePathError = {
4
- msg: string;
5
- };
6
- export declare function getFilenames(fileContent: string): Filename[];
7
- export declare function isFilePathError(value: unknown): value is FilePathError;
8
- export declare const getIncludes: (readFileFn: (filename: string) => Promise<string>) => (fileContent: FileContent) => Promise<Record<Filename, FileContent>>;
9
- declare const _default: (fileContent: FileContent) => Promise<Record<Filename, FileContent>>;
10
- export default _default;
@@ -1,2 +0,0 @@
1
- import type { StancReturn } from "../types/common";
2
- export declare const provideCompilation: (filename: string, code: string, args: string[], includes: Record<string, string>) => StancReturn;
@@ -1,2 +0,0 @@
1
- export = b;
2
- declare function b(a: any, b: any, c: any): any;
@@ -1,18 +0,0 @@
1
- import type { Position } from "./common";
2
- export type { Position };
3
- export interface Range {
4
- start: Position;
5
- end: Position;
6
- }
7
- export declare enum DiagnosticSeverity {
8
- Error = 1,
9
- Warning = 2,
10
- Information = 3,
11
- Hint = 4
12
- }
13
- export interface StanDiagnostic {
14
- range: Range;
15
- severity: DiagnosticSeverity;
16
- message: string;
17
- source?: string;
18
- }
@@ -1,26 +0,0 @@
1
- export interface FormattingOptions {
2
- /** Maximum line length for formatted code */
3
- maxLineLength?: number;
4
- /** Whether to canonicalize deprecations */
5
- canonicalizeDeprecations?: boolean;
6
- /** Whether to allow undefined functions */
7
- allowUndefined?: boolean;
8
- }
9
- export interface FormattingResult {
10
- /** Whether formatting was successful */
11
- success: boolean;
12
- /** The formatted code if successful */
13
- formattedCode?: string;
14
- /** Error messages if formatting failed */
15
- errors?: string[];
16
- /** Warning messages from the formatter */
17
- warnings?: string[];
18
- }
19
- export interface FormattingContext {
20
- /** The filename being formatted */
21
- filename: string;
22
- /** The content to format */
23
- content: string;
24
- /** Include file contents */
25
- includes?: Record<string, string>;
26
- }
@@ -1,11 +0,0 @@
1
- // src/types/diagnostics.ts
2
- var DiagnosticSeverity;
3
- ((DiagnosticSeverity2) => {
4
- DiagnosticSeverity2[DiagnosticSeverity2["Error"] = 1] = "Error";
5
- DiagnosticSeverity2[DiagnosticSeverity2["Warning"] = 2] = "Warning";
6
- DiagnosticSeverity2[DiagnosticSeverity2["Information"] = 3] = "Information";
7
- DiagnosticSeverity2[DiagnosticSeverity2["Hint"] = 4] = "Hint";
8
- })(DiagnosticSeverity ||= {});
9
- export {
10
- DiagnosticSeverity
11
- };