@hamelin.sh/compiler 0.1.34-prerelease.20250627T215948 → 0.1.35-prerelease.20250702T172131
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/dist/main.d.ts +32 -32
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -12,38 +12,6 @@ interface FunctionDescription {
|
|
|
12
12
|
parameters: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
interface ContextualTranslationErrors {
|
|
16
|
-
hamelin: string;
|
|
17
|
-
errors: ContextualTranslationError[];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type TranslationErrors = TranslationError[];
|
|
21
|
-
|
|
22
|
-
interface Context {
|
|
23
|
-
interval: { start: number; end: number };
|
|
24
|
-
message: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface ContextualTranslationError {
|
|
28
|
-
error: TranslationError;
|
|
29
|
-
pretty: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface TranslationError {
|
|
33
|
-
area: LanguageArea | undefined;
|
|
34
|
-
stage: Stage;
|
|
35
|
-
level: Level;
|
|
36
|
-
primary: Context;
|
|
37
|
-
supporting: Context[] | undefined;
|
|
38
|
-
source_desc: string | undefined;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
type Stage = "Translation" | "Parsing" | "SemanticAnalysis";
|
|
42
|
-
|
|
43
|
-
type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Parsing";
|
|
44
|
-
|
|
45
|
-
type Level = "Error" | "Warning" | "Info";
|
|
46
|
-
|
|
47
15
|
interface ContextualResult {
|
|
48
16
|
hamelin: string;
|
|
49
17
|
errors: ContextualTranslationError[];
|
|
@@ -97,6 +65,38 @@ interface Translation {
|
|
|
97
65
|
columns: Column[];
|
|
98
66
|
}
|
|
99
67
|
|
|
68
|
+
interface ContextualTranslationErrors {
|
|
69
|
+
hamelin: string;
|
|
70
|
+
errors: ContextualTranslationError[];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type TranslationErrors = TranslationError[];
|
|
74
|
+
|
|
75
|
+
interface Context {
|
|
76
|
+
interval: { start: number; end: number };
|
|
77
|
+
message: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface ContextualTranslationError {
|
|
81
|
+
error: TranslationError;
|
|
82
|
+
pretty: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface TranslationError {
|
|
86
|
+
area: LanguageArea | undefined;
|
|
87
|
+
stage: Stage;
|
|
88
|
+
level: Level;
|
|
89
|
+
primary: Context;
|
|
90
|
+
supporting: Context[] | undefined;
|
|
91
|
+
source_desc: string | undefined;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
type Stage = "Translation" | "Parsing" | "SemanticAnalysis";
|
|
95
|
+
|
|
96
|
+
type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Parsing";
|
|
97
|
+
|
|
98
|
+
type Level = "Error" | "Warning" | "Info";
|
|
99
|
+
|
|
100
100
|
type HamelinType = "binary" | "boolean" | "interval" | "calendar_interval" | "int" | "double" | "rows" | "string" | "timestamp" | "unknown" | { decimal: { precision: number; scale: number } } | { array: { element_type: HamelinType } } | { map: { key_type: HamelinType; value_type: HamelinType } } | { tuple: { elements: HamelinType[] } } | "variant" | { range: { of: HamelinType } } | { struct: Column[] };
|
|
101
101
|
|
|
102
102
|
interface Column {
|