@rsconcept/domain 1.8.0 → 2.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/dist/{analyzer-DpE0qknt.d.ts → analyzer-iqAXyROE.d.ts} +2 -2
- package/dist/{arguments-extractor-Dd1lFom9.d.ts → arguments-extractor-ngatANBI.d.ts} +2 -2
- package/dist/{ast-annotations-CZCzs9Uk.d.ts → ast-annotations-D6KZDu12.d.ts} +2 -2
- package/dist/{calculator-Dt03dsnd.d.ts → calculator-k8BGIKmj.d.ts} +2 -2
- package/dist/diagnostics-Clo3mkba.d.ts +279 -0
- package/dist/diagnostics-DYMvTSev.js +532 -0
- package/dist/diagnostics-DYMvTSev.js.map +1 -0
- package/dist/index.d.ts +14 -15
- package/dist/index.js +7 -6
- package/dist/library/diagnostics.d.ts +2 -0
- package/dist/library/diagnostics.js +2 -0
- package/dist/library/index.d.ts +15 -6
- package/dist/library/index.js +41 -13
- package/dist/library/index.js.map +1 -1
- package/dist/library/oss-api.d.ts +1 -1
- package/dist/library/oss-api.js +1 -1
- package/dist/library/rsengine.d.ts +2 -3
- package/dist/library/rsengine.js +1 -1
- package/dist/library/rsform-api.d.ts +4 -4
- package/dist/library/rsform-api.js +1 -404
- package/dist/library/rsform.d.ts +2 -198
- package/dist/library/rsform.js.map +1 -1
- package/dist/library/rsmodel-api.d.ts +2 -3
- package/dist/library/rsmodel-api.js +2 -4
- package/dist/library/rsmodel-api.js.map +1 -1
- package/dist/library/rsmodel.d.ts +2 -46
- package/dist/library/structure-planner.d.ts +2 -2
- package/dist/library/structure-planner.js +1 -1
- package/dist/rslang/api.d.ts +1 -1
- package/dist/rslang/api.js +2 -1
- package/dist/rslang/api.js.map +1 -1
- package/dist/rslang/ast-annotations.d.ts +1 -1
- package/dist/rslang/eval/calculator.d.ts +1 -1
- package/dist/rslang/eval/evaluator.js +2 -2
- package/dist/rslang/eval/value-api.d.ts +1 -1
- package/dist/rslang/index.d.ts +8 -8
- package/dist/rslang/index.js +2 -2
- package/dist/rslang/labels.d.ts +4 -2
- package/dist/rslang/labels.js +8 -2
- package/dist/rslang/labels.js.map +1 -1
- package/dist/rslang/parser/syntax-errors/index.d.ts +1 -1
- package/dist/rslang/parser/syntax-errors/index.js +1 -1
- package/dist/rslang/semantic/analyzer.d.ts +1 -1
- package/dist/rslang/semantic/analyzer.js +3 -3
- package/dist/rslang/semantic/arguments-extractor.d.ts +1 -1
- package/dist/rslang/semantic/arguments-extractor.js +1 -1
- package/dist/rslang/semantic/type-auditor.d.ts +1 -1
- package/dist/rslang/semantic/type-auditor.js +4 -4
- package/dist/rslang/semantic/type-auditor.js.map +1 -1
- package/dist/rslang/semantic/typification-api.d.ts +1 -1
- package/dist/rslang/semantic/typification-parser.d.ts +1 -1
- package/dist/rslang/semantic/typification.d.ts +2 -2
- package/dist/rslang/semantic/typification.js +14 -6
- package/dist/rslang/semantic/typification.js.map +1 -1
- package/dist/rslang/semantic/value-auditor.js +2 -2
- package/dist/rslang/typification-graph.d.ts +1 -1
- package/dist/{syntax-errors-B6c2vsan.js → syntax-errors-D_VV5hAM.js} +3 -3
- package/dist/{syntax-errors-B6c2vsan.js.map → syntax-errors-D_VV5hAM.js.map} +1 -1
- package/dist/{typification-DDuv88ir.d.ts → typification-9lNu9R4k.d.ts} +8 -4
- package/dist/{typification-graph-8VdK6_Fh.d.ts → typification-graph-BY_oGT82.d.ts} +2 -2
- package/dist/{typification-parser-DHO42ZRc.d.ts → typification-parser-Dytsv9CI.d.ts} +2 -2
- package/dist/{value-api-C2X4Pom5.d.ts → value-api-CXLl_zg0.d.ts} +2 -2
- package/package.json +5 -1
- package/src/index.ts +8 -0
- package/src/library/diagnostics.ts +188 -0
- package/src/library/index.ts +9 -0
- package/src/library/oss-api.test.ts +1 -2
- package/src/library/rsform-api.ts +12 -17
- package/src/library/rsform.ts +4 -2
- package/src/library/rsmodel-api.ts +2 -8
- package/src/library/template-instantiation.test.ts +123 -5
- package/src/library/template-instantiation.ts +42 -12
- package/src/rslang/api.ts +2 -1
- package/src/rslang/labels.ts +10 -1
- package/src/rslang/semantic/type-auditor.test.ts +25 -6
- package/src/rslang/semantic/type-auditor.ts +2 -1
- package/src/rslang/semantic/typification-api.test.ts +21 -5
- package/src/rslang/semantic/typification-parser.test.ts +6 -1
- package/src/rslang/semantic/typification.ts +16 -6
- package/dist/library/rsform-api.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AstNode } from "./ast-C8sIpKdL.js";
|
|
2
|
-
import { f as ExpressionType, g as TypeClass } from "./typification-
|
|
2
|
+
import { f as ExpressionType, g as TypeClass } from "./typification-9lNu9R4k.js";
|
|
3
3
|
import { i as RSErrorDescription } from "./error-CzIbnP-N.js";
|
|
4
4
|
import { t as ValueClass } from "./value-class-CNI-lqXJ.js";
|
|
5
5
|
|
|
@@ -35,4 +35,4 @@ declare class RSLangAnalyzer {
|
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
37
|
export { RSLangAnalyzer as a, AnalysisOptions as i, AnalysisFast as n, AnalysisFull as r, AnalysisBase as t };
|
|
38
|
-
//# sourceMappingURL=analyzer-
|
|
38
|
+
//# sourceMappingURL=analyzer-iqAXyROE.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AstNode } from "./ast-C8sIpKdL.js";
|
|
2
|
-
import { f as ExpressionType } from "./typification-
|
|
2
|
+
import { f as ExpressionType } from "./typification-9lNu9R4k.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rslang/semantic/arguments-extractor.d.ts
|
|
5
5
|
/** Represents function argument definition. */
|
|
@@ -35,4 +35,4 @@ declare class ArgumentsExtractor {
|
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
37
|
export { ArgumentsType as n, ArgumentsExtractor as t };
|
|
38
|
-
//# sourceMappingURL=arguments-extractor-
|
|
38
|
+
//# sourceMappingURL=arguments-extractor-ngatANBI.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AstNode } from "./ast-C8sIpKdL.js";
|
|
2
|
-
import { f as ExpressionType } from "./typification-
|
|
2
|
+
import { f as ExpressionType } from "./typification-9lNu9R4k.js";
|
|
3
3
|
import { a as RSErrorInfo, r as RSErrorCode } from "./error-CzIbnP-N.js";
|
|
4
4
|
|
|
5
5
|
//#region src/rslang/ast-annotations.d.ts
|
|
@@ -13,4 +13,4 @@ declare function annotateError(node: AstNode, code: RSErrorCode, params?: readon
|
|
|
13
13
|
declare function readErrorAnnotation(node: AstNode): RSErrorInfo | null;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { readTypeAnnotation as i, annotateType as n, readErrorAnnotation as r, annotateError as t };
|
|
16
|
-
//# sourceMappingURL=ast-annotations-
|
|
16
|
+
//# sourceMappingURL=ast-annotations-D6KZDu12.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AstNode } from "./ast-C8sIpKdL.js";
|
|
2
|
-
import { f as ExpressionType } from "./typification-
|
|
2
|
+
import { f as ExpressionType } from "./typification-9lNu9R4k.js";
|
|
3
3
|
import { i as RSErrorDescription } from "./error-CzIbnP-N.js";
|
|
4
4
|
import { l as Value } from "./value-BduA_ZGp.js";
|
|
5
5
|
|
|
@@ -36,4 +36,4 @@ declare class RSCalculator {
|
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
38
|
export { CalculatorResult as n, RSCalculator as r, CalculatorEvaluateOptions as t };
|
|
39
|
-
//# sourceMappingURL=calculator-
|
|
39
|
+
//# sourceMappingURL=calculator-k8BGIKmj.d.ts.map
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { t as Graph } from "./graph-DR8rL2o3.js";
|
|
2
|
+
import { f as ExpressionType, y as TypePath } from "./typification-9lNu9R4k.js";
|
|
3
|
+
import { l as Value } from "./value-BduA_ZGp.js";
|
|
4
|
+
import { a as RSLangAnalyzer, t as AnalysisBase } from "./analyzer-iqAXyROE.js";
|
|
5
|
+
import { i as LibraryItemReference, n as CurrentVersion, r as LibraryItem, s as VersionInfo } from "./library-CYun28Xz.js";
|
|
6
|
+
|
|
7
|
+
//#region src/library/rsform.d.ts
|
|
8
|
+
/** Represents {@link Constituenta} type. */
|
|
9
|
+
declare const CstType: {
|
|
10
|
+
readonly NOMINAL: "nominal";
|
|
11
|
+
readonly BASE: "basic";
|
|
12
|
+
readonly STRUCTURED: "structure";
|
|
13
|
+
readonly TERM: "term";
|
|
14
|
+
readonly AXIOM: "axiom";
|
|
15
|
+
readonly FUNCTION: "function";
|
|
16
|
+
readonly PREDICATE: "predicate";
|
|
17
|
+
readonly CONSTANT: "constant";
|
|
18
|
+
readonly STATEMENT: "statement";
|
|
19
|
+
};
|
|
20
|
+
type CstType = (typeof CstType)[keyof typeof CstType];
|
|
21
|
+
/** Represents attribution of a {@link Constituenta} to another {@link Constituenta}. */
|
|
22
|
+
interface Attribution {
|
|
23
|
+
container: number;
|
|
24
|
+
attribute: number;
|
|
25
|
+
}
|
|
26
|
+
/** Represents global identifier type info. */
|
|
27
|
+
interface TypeInfo {
|
|
28
|
+
alias: string;
|
|
29
|
+
type: ExpressionType;
|
|
30
|
+
}
|
|
31
|
+
/** Represents function argument value. */
|
|
32
|
+
interface ArgumentValue {
|
|
33
|
+
alias: string;
|
|
34
|
+
typification: string;
|
|
35
|
+
value?: string;
|
|
36
|
+
}
|
|
37
|
+
/** Represents Constituenta classification in terms of system of concepts. */
|
|
38
|
+
declare const CstClass: {
|
|
39
|
+
readonly NOMINAL: "nominal";
|
|
40
|
+
readonly BASIC: "basic";
|
|
41
|
+
readonly DERIVED: "derived";
|
|
42
|
+
readonly STATEMENT: "statement";
|
|
43
|
+
readonly TEMPLATE: "template";
|
|
44
|
+
};
|
|
45
|
+
type CstClass = (typeof CstClass)[keyof typeof CstClass];
|
|
46
|
+
/** Represents formal expression Status. */
|
|
47
|
+
declare const CstStatus: {
|
|
48
|
+
readonly VERIFIED: "verified";
|
|
49
|
+
readonly INCORRECT: "incorrect";
|
|
50
|
+
readonly INCALCULABLE: "incalculable";
|
|
51
|
+
readonly PROPERTY: "property";
|
|
52
|
+
readonly UNKNOWN: "unknown";
|
|
53
|
+
};
|
|
54
|
+
type CstStatus = (typeof CstStatus)[keyof typeof CstStatus];
|
|
55
|
+
/** Represents substitution of {@link Constituenta}. */
|
|
56
|
+
interface Substitution {
|
|
57
|
+
original: number;
|
|
58
|
+
substitution: number;
|
|
59
|
+
}
|
|
60
|
+
/** Represents word form for natural language. */
|
|
61
|
+
interface TermForm {
|
|
62
|
+
text: string;
|
|
63
|
+
tags: string;
|
|
64
|
+
}
|
|
65
|
+
/** Represents Constituenta. */
|
|
66
|
+
interface Constituenta {
|
|
67
|
+
id: number;
|
|
68
|
+
crucial: boolean;
|
|
69
|
+
alias: string;
|
|
70
|
+
convention: string;
|
|
71
|
+
cst_type: CstType;
|
|
72
|
+
definition_formal: string;
|
|
73
|
+
definition_raw: string;
|
|
74
|
+
definition_resolved: string;
|
|
75
|
+
term_raw: string;
|
|
76
|
+
term_resolved: string;
|
|
77
|
+
term_forms: TermForm[];
|
|
78
|
+
attributes: number[];
|
|
79
|
+
/** Manual typification of the constituent */
|
|
80
|
+
typification_manual: string;
|
|
81
|
+
/** Controls whether base concepts expose property values or full values */
|
|
82
|
+
value_is_property: boolean;
|
|
83
|
+
analysis: AnalysisBase;
|
|
84
|
+
/** Schema-kind {@link CstDiagnostic} list, populated during schema loading. */
|
|
85
|
+
diagnostics: CstDiagnostic[];
|
|
86
|
+
/** Typification used for dependents, model values, and display (manual when it overrides computed). */
|
|
87
|
+
effectiveType: ExpressionType | null;
|
|
88
|
+
/**
|
|
89
|
+
* True when manual typification is non-empty, parses to a type, and its label differs from the
|
|
90
|
+
* typification inferred from the formal definition ({@link Constituenta.analysis}.type).
|
|
91
|
+
*/
|
|
92
|
+
is_type_mismatch: boolean;
|
|
93
|
+
/** Identifier of {@link LibraryItem} containing this {@link Constituenta}. */
|
|
94
|
+
schema: number;
|
|
95
|
+
/** {@link CstClass} of this {@link Constituenta}. */
|
|
96
|
+
cst_class: CstClass;
|
|
97
|
+
/** {@link CstStatus} of this {@link Constituenta}. */
|
|
98
|
+
status: CstStatus;
|
|
99
|
+
/** Indicates if this {@link Constituenta} is a template. */
|
|
100
|
+
is_template: boolean;
|
|
101
|
+
/** Indicates if this {@link Constituenta} has a simple expression. */
|
|
102
|
+
is_simple_expression: boolean;
|
|
103
|
+
/** Index of {@link LibraryItem} that contains this cst (or inheritance parent).
|
|
104
|
+
* 0 - not inherited, 1 - inherited by 1st schema, 2 - inherited by 2nd schema, etc.
|
|
105
|
+
*/
|
|
106
|
+
parent_schema_index: number;
|
|
107
|
+
/** {@link LibraryItem} that contains parent of this inherited {@link Constituenta}. */
|
|
108
|
+
parent_schema: number | null;
|
|
109
|
+
/** Indicates if this {@link Constituenta} is inherited. */
|
|
110
|
+
is_inherited: boolean;
|
|
111
|
+
/** Indicates if this {@link Constituenta} has children that are inherited. */
|
|
112
|
+
has_inherited_children: boolean;
|
|
113
|
+
/** {@link Constituenta} that spawned this one. */
|
|
114
|
+
spawner?: number;
|
|
115
|
+
/** Alias of {@link Constituenta} that spawned this one. */
|
|
116
|
+
spawner_alias?: string;
|
|
117
|
+
/** Structure path that spawned this one. */
|
|
118
|
+
spawner_path?: TypePath;
|
|
119
|
+
/** List of {@link Constituenta} that are spawned by this one. */
|
|
120
|
+
spawn: number[];
|
|
121
|
+
/** List of aliases of {@link Constituenta} that are spawned by this one. */
|
|
122
|
+
spawn_alias: string[];
|
|
123
|
+
}
|
|
124
|
+
/** Represents {@link RSForm} statistics. */
|
|
125
|
+
interface RSFormStats {
|
|
126
|
+
step_complexity: number;
|
|
127
|
+
/** Total number of constituents in the RSForm. */
|
|
128
|
+
count_all: number;
|
|
129
|
+
/** Number of crucial constituents in the RSForm. */
|
|
130
|
+
count_crucial: number;
|
|
131
|
+
count_problematic: number;
|
|
132
|
+
/** Constituents that have same term. */
|
|
133
|
+
count_homonyms: number;
|
|
134
|
+
/** Constituents that have same formal definition and term. */
|
|
135
|
+
count_formal_duplicates: number;
|
|
136
|
+
/** Base constituents with no convention and alias. */
|
|
137
|
+
count_missing_convention: number;
|
|
138
|
+
/** Constituents with non-empty manual typification that disagrees with inferred typification. */
|
|
139
|
+
count_type_mismatch: number;
|
|
140
|
+
count_incorrect: number;
|
|
141
|
+
count_property: number;
|
|
142
|
+
count_incalculable: number;
|
|
143
|
+
count_inherited: number;
|
|
144
|
+
count_text_term: number;
|
|
145
|
+
count_definition: number;
|
|
146
|
+
count_convention: number;
|
|
147
|
+
count_comment: number;
|
|
148
|
+
count_base: number;
|
|
149
|
+
count_constant: number;
|
|
150
|
+
count_structured: number;
|
|
151
|
+
count_axiom: number;
|
|
152
|
+
count_term: number;
|
|
153
|
+
count_function: number;
|
|
154
|
+
count_predicate: number;
|
|
155
|
+
count_statement: number;
|
|
156
|
+
count_nominal: number;
|
|
157
|
+
}
|
|
158
|
+
/** Represents inheritance data for {@link RSForm}. */
|
|
159
|
+
interface InheritanceInfo {
|
|
160
|
+
child: number;
|
|
161
|
+
child_source: number;
|
|
162
|
+
parent: number;
|
|
163
|
+
parent_source: number;
|
|
164
|
+
}
|
|
165
|
+
/** Represents formal explication for set of concepts. */
|
|
166
|
+
interface RSForm extends LibraryItem {
|
|
167
|
+
/** Whether this RSForm was produced (vs imported or inherited) */
|
|
168
|
+
is_produced: boolean;
|
|
169
|
+
/** Whether this RSForm has attribution feature */
|
|
170
|
+
is_attributive: boolean;
|
|
171
|
+
/** List of user IDs who can edit this RSForm */
|
|
172
|
+
editors: number[];
|
|
173
|
+
/** Information about the current version of this RSForm */
|
|
174
|
+
version: CurrentVersion;
|
|
175
|
+
/** Full version history of this RSForm */
|
|
176
|
+
versions: VersionInfo[];
|
|
177
|
+
/** Full list of constituents in the RSForm */
|
|
178
|
+
items: Constituenta[];
|
|
179
|
+
/** List of inheritance relationships between constituents */
|
|
180
|
+
inheritance: InheritanceInfo[];
|
|
181
|
+
/** List of constituent attribution relationships */
|
|
182
|
+
attribution: Attribution[];
|
|
183
|
+
/** References to Operational Schemes/Systems associated with the RSForm */
|
|
184
|
+
oss: LibraryItemReference[];
|
|
185
|
+
/** References to conceptual models associated with the RSForm */
|
|
186
|
+
models: LibraryItemReference[];
|
|
187
|
+
/** Analyzer instance for RS language features and validation */
|
|
188
|
+
analyzer: RSLangAnalyzer;
|
|
189
|
+
/** Graph structure representing formal dependencies between constituents */
|
|
190
|
+
graph: Graph;
|
|
191
|
+
/** Graph structure representing attribution relationships */
|
|
192
|
+
attribution_graph: Graph;
|
|
193
|
+
/** Map for quick lookup of constituents by alias */
|
|
194
|
+
cstByAlias: Map<string, Constituenta>;
|
|
195
|
+
/** Map for quick lookup of constituents by ID */
|
|
196
|
+
cstByID: Map<number, Constituenta>;
|
|
197
|
+
}
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/library/rsmodel.d.ts
|
|
200
|
+
declare const TYPE_BASIC = "basic";
|
|
201
|
+
/** Evaluation status enumeration. */
|
|
202
|
+
declare const EvalStatus: {
|
|
203
|
+
readonly NO_EVAL: 1;
|
|
204
|
+
readonly NOT_PROCESSED: 2;
|
|
205
|
+
readonly INVALID_DATA: 3;
|
|
206
|
+
readonly EVAL_FAIL: 4;
|
|
207
|
+
readonly AXIOM_FALSE: 5;
|
|
208
|
+
readonly EMPTY: 6;
|
|
209
|
+
readonly HAS_DATA: 7;
|
|
210
|
+
};
|
|
211
|
+
type EvalStatus = (typeof EvalStatus)[keyof typeof EvalStatus];
|
|
212
|
+
/** Represents basic element binding. */
|
|
213
|
+
type BasicBinding = Record<number, string>;
|
|
214
|
+
/** Represents {@link RSModel} basic sets binding. */
|
|
215
|
+
type BasicsContext = Map<number, BasicBinding>;
|
|
216
|
+
/** Default value for structured data. */
|
|
217
|
+
declare const DEFAULT_VALUE_TEXT = "N/A";
|
|
218
|
+
interface RSModelData extends LibraryItem {
|
|
219
|
+
editors: number[];
|
|
220
|
+
schema: number;
|
|
221
|
+
items: {
|
|
222
|
+
id: number;
|
|
223
|
+
type: string;
|
|
224
|
+
value: Value | BasicBinding;
|
|
225
|
+
}[];
|
|
226
|
+
}
|
|
227
|
+
/** Represents {@link RSModel} structured data. */
|
|
228
|
+
type RSModel = RSModelData;
|
|
229
|
+
/** Represents {@link RSModel} statistics. */
|
|
230
|
+
interface RSModelStats extends RSFormStats {
|
|
231
|
+
count_missing_base: number;
|
|
232
|
+
count_false_axioms: number;
|
|
233
|
+
count_invalid_data: number;
|
|
234
|
+
count_invalid_calculations: number;
|
|
235
|
+
count_empty_terms: number;
|
|
236
|
+
base_elements: number;
|
|
237
|
+
}
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/library/diagnostics.d.ts
|
|
240
|
+
/** Origin of a diagnostic. */
|
|
241
|
+
declare const DiagnosticKind: {
|
|
242
|
+
readonly EXPRESSION: "expression";
|
|
243
|
+
readonly SCHEMA: "schema";
|
|
244
|
+
readonly MODEL: "model";
|
|
245
|
+
};
|
|
246
|
+
type DiagnosticKind = (typeof DiagnosticKind)[keyof typeof DiagnosticKind];
|
|
247
|
+
/** Schema and model diagnostic codes (same numeric format as {@link RSErrorCode}). */
|
|
248
|
+
declare const RSDiagnosticCode: {
|
|
249
|
+
readonly schemaHomonym: 35073;
|
|
250
|
+
readonly schemaFormalDuplicate: 35074;
|
|
251
|
+
readonly schemaMissingConvention: 35075;
|
|
252
|
+
readonly schemaMissingTerm: 35076;
|
|
253
|
+
readonly schemaTypeMismatch: 35077;
|
|
254
|
+
readonly modelEmpty: 35088;
|
|
255
|
+
readonly modelAxiomFalse: 35089;
|
|
256
|
+
readonly modelInvalidData: 35090;
|
|
257
|
+
readonly modelEvalFail: 35091;
|
|
258
|
+
};
|
|
259
|
+
type RSDiagnosticCode = (typeof RSDiagnosticCode)[keyof typeof RSDiagnosticCode];
|
|
260
|
+
/** Compact diagnostic stored on {@link Constituenta} after schema loading. */
|
|
261
|
+
interface CstDiagnostic {
|
|
262
|
+
kind: DiagnosticKind;
|
|
263
|
+
code: number;
|
|
264
|
+
/** Positional message arguments (per-code; homonyms/duplicates use `[aliases]`). */
|
|
265
|
+
params?: readonly string[];
|
|
266
|
+
}
|
|
267
|
+
/** Whether a constituent has a schema/model diagnostic with the given code. */
|
|
268
|
+
declare function hasCstDiagnostic(cst: Constituenta, code: RSDiagnosticCode): boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Populate `diagnostics` on each constituent (homonyms, duplicates, metadata, type mismatch).
|
|
271
|
+
*
|
|
272
|
+
* Requires normalized formal definitions for duplicate detection (same as Portal loader).
|
|
273
|
+
*/
|
|
274
|
+
declare function assignSchemaDiagnostics(items: Constituenta[], resolveAlias: (id: number) => string, normalizedDefinitions: ReadonlyMap<number, string>): void;
|
|
275
|
+
/** Map a model evaluation status to a compact diagnostic, or `null` when not an issue. */
|
|
276
|
+
declare function modelStatusCstDiagnostic(status: EvalStatus, cstType: CstType): CstDiagnostic | null;
|
|
277
|
+
//#endregion
|
|
278
|
+
export { TypeInfo as C, Substitution as S, CstClass as _, hasCstDiagnostic as a, RSForm as b, BasicsContext as c, RSModel as d, RSModelStats as f, Constituenta as g, Attribution as h, assignSchemaDiagnostics as i, DEFAULT_VALUE_TEXT as l, ArgumentValue as m, DiagnosticKind as n, modelStatusCstDiagnostic as o, TYPE_BASIC as p, RSDiagnosticCode as r, BasicBinding as s, CstDiagnostic as t, EvalStatus as u, CstStatus as v, RSFormStats as x, CstType as y };
|
|
279
|
+
//# sourceMappingURL=diagnostics-Clo3mkba.d.ts.map
|