@nielspeter/eess-mermaid 0.1.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.
Files changed (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +29 -0
  3. package/dist/bridge/from-diagram.d.ts +58 -0
  4. package/dist/bridge/from-diagram.d.ts.map +1 -0
  5. package/dist/bridge/from-diagram.js +112 -0
  6. package/dist/bridge/from-diagram.js.map +1 -0
  7. package/dist/builders/class-rule-builder.d.ts +45 -0
  8. package/dist/builders/class-rule-builder.d.ts.map +1 -0
  9. package/dist/builders/class-rule-builder.js +89 -0
  10. package/dist/builders/class-rule-builder.js.map +1 -0
  11. package/dist/cli/bin.d.ts +3 -0
  12. package/dist/cli/bin.d.ts.map +1 -0
  13. package/dist/cli/bin.js +4 -0
  14. package/dist/cli/bin.js.map +1 -0
  15. package/dist/cli/commands/check.d.ts +8 -0
  16. package/dist/cli/commands/check.d.ts.map +1 -0
  17. package/dist/cli/commands/check.js +44 -0
  18. package/dist/cli/commands/check.js.map +1 -0
  19. package/dist/cli/commands/explain.d.ts +6 -0
  20. package/dist/cli/commands/explain.d.ts.map +1 -0
  21. package/dist/cli/commands/explain.js +29 -0
  22. package/dist/cli/commands/explain.js.map +1 -0
  23. package/dist/cli/config.d.ts +8 -0
  24. package/dist/cli/config.d.ts.map +1 -0
  25. package/dist/cli/config.js +4 -0
  26. package/dist/cli/config.js.map +1 -0
  27. package/dist/cli/index.d.ts +2 -0
  28. package/dist/cli/index.d.ts.map +1 -0
  29. package/dist/cli/index.js +130 -0
  30. package/dist/cli/index.js.map +1 -0
  31. package/dist/cli/load-rules.d.ts +10 -0
  32. package/dist/cli/load-rules.d.ts.map +1 -0
  33. package/dist/cli/load-rules.js +62 -0
  34. package/dist/cli/load-rules.js.map +1 -0
  35. package/dist/cli/resolve-config.d.ts +3 -0
  36. package/dist/cli/resolve-config.d.ts.map +1 -0
  37. package/dist/cli/resolve-config.js +50 -0
  38. package/dist/cli/resolve-config.js.map +1 -0
  39. package/dist/cli/watch.d.ts +8 -0
  40. package/dist/cli/watch.d.ts.map +1 -0
  41. package/dist/cli/watch.js +114 -0
  42. package/dist/cli/watch.js.map +1 -0
  43. package/dist/conditions/class.d.ts +11 -0
  44. package/dist/conditions/class.d.ts.map +1 -0
  45. package/dist/conditions/class.js +163 -0
  46. package/dist/conditions/class.js.map +1 -0
  47. package/dist/core/diagram.d.ts +3 -0
  48. package/dist/core/diagram.d.ts.map +1 -0
  49. package/dist/core/diagram.js +18 -0
  50. package/dist/core/diagram.js.map +1 -0
  51. package/dist/core/index.d.ts +5 -0
  52. package/dist/core/index.d.ts.map +1 -0
  53. package/dist/core/index.js +3 -0
  54. package/dist/core/index.js.map +1 -0
  55. package/dist/core/project.d.ts +7 -0
  56. package/dist/core/project.d.ts.map +1 -0
  57. package/dist/core/project.js +2 -0
  58. package/dist/core/project.js.map +1 -0
  59. package/dist/core/violation.d.ts +15 -0
  60. package/dist/core/violation.d.ts.map +1 -0
  61. package/dist/core/violation.js +16 -0
  62. package/dist/core/violation.js.map +1 -0
  63. package/dist/index.d.ts +33 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/index.js +31 -0
  66. package/dist/index.js.map +1 -0
  67. package/dist/models/arch-class.d.ts +20 -0
  68. package/dist/models/arch-class.d.ts.map +1 -0
  69. package/dist/models/arch-class.js +33 -0
  70. package/dist/models/arch-class.js.map +1 -0
  71. package/dist/models/er-entity.d.ts +32 -0
  72. package/dist/models/er-entity.d.ts.map +1 -0
  73. package/dist/models/er-entity.js +37 -0
  74. package/dist/models/er-entity.js.map +1 -0
  75. package/dist/parser/generated/ast.d.ts +539 -0
  76. package/dist/parser/generated/ast.d.ts.map +1 -0
  77. package/dist/parser/generated/ast.js +443 -0
  78. package/dist/parser/generated/ast.js.map +1 -0
  79. package/dist/parser/generated/grammar.d.ts +8 -0
  80. package/dist/parser/generated/grammar.d.ts.map +1 -0
  81. package/dist/parser/generated/grammar.js +10 -0
  82. package/dist/parser/generated/grammar.js.map +1 -0
  83. package/dist/parser/generated/module.d.ts +21 -0
  84. package/dist/parser/generated/module.d.ts.map +1 -0
  85. package/dist/parser/generated/module.js +32 -0
  86. package/dist/parser/generated/module.js.map +1 -0
  87. package/dist/parser/parse-class-diagram.d.ts +7 -0
  88. package/dist/parser/parse-class-diagram.d.ts.map +1 -0
  89. package/dist/parser/parse-class-diagram.js +33 -0
  90. package/dist/parser/parse-class-diagram.js.map +1 -0
  91. package/dist/parser/parse-directives.d.ts +38 -0
  92. package/dist/parser/parse-directives.d.ts.map +1 -0
  93. package/dist/parser/parse-directives.js +96 -0
  94. package/dist/parser/parse-directives.js.map +1 -0
  95. package/dist/parser/parse-er-diagram.d.ts +4 -0
  96. package/dist/parser/parse-er-diagram.d.ts.map +1 -0
  97. package/dist/parser/parse-er-diagram.js +27 -0
  98. package/dist/parser/parse-er-diagram.js.map +1 -0
  99. package/dist/parser/validate-diagram.d.ts +11 -0
  100. package/dist/parser/validate-diagram.d.ts.map +1 -0
  101. package/dist/parser/validate-diagram.js +67 -0
  102. package/dist/parser/validate-diagram.js.map +1 -0
  103. package/dist/predicates/class.d.ts +13 -0
  104. package/dist/predicates/class.d.ts.map +1 -0
  105. package/dist/predicates/class.js +73 -0
  106. package/dist/predicates/class.js.map +1 -0
  107. package/package.json +50 -0
@@ -0,0 +1,539 @@
1
+ /******************************************************************************
2
+ * This file was generated by langium-cli 4.3.0.
3
+ * DO NOT EDIT MANUALLY!
4
+ ******************************************************************************/
5
+ import * as langium from 'langium';
6
+ /** Contains the reachable terminals & keywords and all available types of the 'ClassDiagramGrammar' language. */
7
+ export declare namespace ClassDiagramGrammar {
8
+ const Terminals: {
9
+ ID: RegExp;
10
+ STRING: RegExp;
11
+ DIRECTIVE: RegExp;
12
+ WS: RegExp;
13
+ SL_COMMENT: RegExp;
14
+ };
15
+ type TerminalNames = keyof typeof Terminals;
16
+ type KeywordNames = "#" | "$" | "(" | ")" | "*" | "*--" | "+" | "," | "-" | "--" | "-->" | "--|>" | "..>" | "..|>" | ":" | "<<" | "<|--" | "<|.." | ">>" | "class" | "classDiagram" | "for" | "note" | "o--" | "{" | "}" | "~";
17
+ type TokenNames = TerminalNames | KeywordNames;
18
+ type AstType = {
19
+ ClassDef: ClassDef;
20
+ ClassMember: ClassMember;
21
+ Diagram: Diagram;
22
+ Directive: Directive;
23
+ Note: Note;
24
+ Param: Param;
25
+ Relationship: Relationship;
26
+ StereotypeAssignment: StereotypeAssignment;
27
+ StereotypeMarker: StereotypeMarker;
28
+ };
29
+ }
30
+ /** Contains the reachable terminals & keywords and all available types of the 'ErDiagramGrammar' language. */
31
+ export declare namespace ErDiagramGrammar {
32
+ const Terminals: {
33
+ CARDINALITY: RegExp;
34
+ ID: RegExp;
35
+ STRING: RegExp;
36
+ WS: RegExp;
37
+ SL_COMMENT: RegExp;
38
+ };
39
+ type TerminalNames = keyof typeof Terminals;
40
+ type KeywordNames = "," | ":" | "FK" | "PK" | "UK" | "erDiagram" | "for" | "note" | "{" | "}";
41
+ type TokenNames = TerminalNames | KeywordNames;
42
+ type AstType = {
43
+ ErAttribute: ErAttribute;
44
+ ErDiagram: ErDiagram;
45
+ ErEntityDef: ErEntityDef;
46
+ ErNote: ErNote;
47
+ ErRelationship: ErRelationship;
48
+ };
49
+ }
50
+ export declare const MermaidUnitTerminals: {
51
+ CARDINALITY: RegExp;
52
+ ID: RegExp;
53
+ STRING: RegExp;
54
+ WS: RegExp;
55
+ SL_COMMENT: RegExp;
56
+ DIRECTIVE: RegExp;
57
+ };
58
+ export type MermaidUnitTerminalNames = keyof typeof MermaidUnitTerminals;
59
+ export type MermaidUnitKeywordNames = ClassDiagramGrammar.KeywordNames | ErDiagramGrammar.KeywordNames;
60
+ export type MermaidUnitTokenNames = MermaidUnitTerminalNames | MermaidUnitKeywordNames;
61
+ export type MermaidUnitAstType = ClassDiagramGrammar.AstType & ErDiagramGrammar.AstType;
62
+ export type Arrow = '*--' | '--' | '-->' | '--|>' | '..>' | '..|>' | '<|--' | '<|..' | 'o--';
63
+ export declare function isArrow(item: unknown): item is Arrow;
64
+ export interface ClassDef extends langium.AstNode {
65
+ readonly $container: Diagram;
66
+ readonly $type: 'ClassDef';
67
+ members: Array<ClassMember>;
68
+ name: string;
69
+ stereotypes: Array<StereotypeMarker>;
70
+ }
71
+ export declare const ClassDef: {
72
+ readonly $type: "ClassDef";
73
+ readonly members: "members";
74
+ readonly name: "name";
75
+ readonly stereotypes: "stereotypes";
76
+ };
77
+ export declare function isClassDef(item: unknown): item is ClassDef;
78
+ export interface ClassMember extends langium.AstNode {
79
+ readonly $container: ClassDef;
80
+ readonly $type: 'ClassMember';
81
+ abstract: boolean;
82
+ method: boolean;
83
+ name: string;
84
+ params: Array<Param>;
85
+ returnType?: string;
86
+ static: boolean;
87
+ type?: string;
88
+ visibility?: Visibility;
89
+ }
90
+ export declare const ClassMember: {
91
+ readonly $type: "ClassMember";
92
+ readonly abstract: "abstract";
93
+ readonly method: "method";
94
+ readonly name: "name";
95
+ readonly params: "params";
96
+ readonly returnType: "returnType";
97
+ readonly static: "static";
98
+ readonly type: "type";
99
+ readonly visibility: "visibility";
100
+ };
101
+ export declare function isClassMember(item: unknown): item is ClassMember;
102
+ export interface Diagram extends langium.AstNode {
103
+ readonly $type: 'Diagram';
104
+ classes: Array<ClassDef>;
105
+ directives: Array<Directive>;
106
+ notes: Array<Note>;
107
+ relationships: Array<Relationship>;
108
+ stereotypeAssignments: Array<StereotypeAssignment>;
109
+ }
110
+ export declare const Diagram: {
111
+ readonly $type: "Diagram";
112
+ readonly classes: "classes";
113
+ readonly directives: "directives";
114
+ readonly notes: "notes";
115
+ readonly relationships: "relationships";
116
+ readonly stereotypeAssignments: "stereotypeAssignments";
117
+ };
118
+ export declare function isDiagram(item: unknown): item is Diagram;
119
+ export interface Directive extends langium.AstNode {
120
+ readonly $container: Diagram;
121
+ readonly $type: 'Directive';
122
+ text: string;
123
+ }
124
+ export declare const Directive: {
125
+ readonly $type: "Directive";
126
+ readonly text: "text";
127
+ };
128
+ export declare function isDirective(item: unknown): item is Directive;
129
+ export interface ErAttribute extends langium.AstNode {
130
+ readonly $container: ErEntityDef;
131
+ readonly $type: 'ErAttribute';
132
+ comment?: string;
133
+ keys: Array<ErKey>;
134
+ name: string;
135
+ type: string;
136
+ }
137
+ export declare const ErAttribute: {
138
+ readonly $type: "ErAttribute";
139
+ readonly comment: "comment";
140
+ readonly keys: "keys";
141
+ readonly name: "name";
142
+ readonly type: "type";
143
+ };
144
+ export declare function isErAttribute(item: unknown): item is ErAttribute;
145
+ export interface ErDiagram extends langium.AstNode {
146
+ readonly $type: 'ErDiagram';
147
+ entities: Array<ErEntityDef>;
148
+ notes: Array<ErNote>;
149
+ relationships: Array<ErRelationship>;
150
+ }
151
+ export declare const ErDiagram: {
152
+ readonly $type: "ErDiagram";
153
+ readonly entities: "entities";
154
+ readonly notes: "notes";
155
+ readonly relationships: "relationships";
156
+ };
157
+ export declare function isErDiagram(item: unknown): item is ErDiagram;
158
+ export interface ErEntityDef extends langium.AstNode {
159
+ readonly $container: ErDiagram;
160
+ readonly $type: 'ErEntityDef';
161
+ attributes: Array<ErAttribute>;
162
+ name: string;
163
+ }
164
+ export declare const ErEntityDef: {
165
+ readonly $type: "ErEntityDef";
166
+ readonly attributes: "attributes";
167
+ readonly name: "name";
168
+ };
169
+ export declare function isErEntityDef(item: unknown): item is ErEntityDef;
170
+ export type ErKey = 'FK' | 'PK' | 'UK';
171
+ export declare function isErKey(item: unknown): item is ErKey;
172
+ export interface ErNote extends langium.AstNode {
173
+ readonly $container: ErDiagram;
174
+ readonly $type: 'ErNote';
175
+ target?: string;
176
+ text: string;
177
+ }
178
+ export declare const ErNote: {
179
+ readonly $type: "ErNote";
180
+ readonly target: "target";
181
+ readonly text: "text";
182
+ };
183
+ export declare function isErNote(item: unknown): item is ErNote;
184
+ export interface ErRelationship extends langium.AstNode {
185
+ readonly $container: ErDiagram;
186
+ readonly $type: 'ErRelationship';
187
+ cardinality: string;
188
+ label?: string;
189
+ lhs: string;
190
+ rhs: string;
191
+ }
192
+ export declare const ErRelationship: {
193
+ readonly $type: "ErRelationship";
194
+ readonly cardinality: "cardinality";
195
+ readonly label: "label";
196
+ readonly lhs: "lhs";
197
+ readonly rhs: "rhs";
198
+ };
199
+ export declare function isErRelationship(item: unknown): item is ErRelationship;
200
+ export interface Note extends langium.AstNode {
201
+ readonly $container: Diagram;
202
+ readonly $type: 'Note';
203
+ target?: langium.Reference<ClassDef>;
204
+ text: string;
205
+ }
206
+ export declare const Note: {
207
+ readonly $type: "Note";
208
+ readonly target: "target";
209
+ readonly text: "text";
210
+ };
211
+ export declare function isNote(item: unknown): item is Note;
212
+ export interface Param extends langium.AstNode {
213
+ readonly $container: ClassMember;
214
+ readonly $type: 'Param';
215
+ name: string;
216
+ type?: string;
217
+ }
218
+ export declare const Param: {
219
+ readonly $type: "Param";
220
+ readonly name: "name";
221
+ readonly type: "type";
222
+ };
223
+ export declare function isParam(item: unknown): item is Param;
224
+ export interface Relationship extends langium.AstNode {
225
+ readonly $container: Diagram;
226
+ readonly $type: 'Relationship';
227
+ arrow: Arrow;
228
+ label?: string;
229
+ lhs: langium.Reference<ClassDef>;
230
+ lhsCard?: string;
231
+ rhs: langium.Reference<ClassDef>;
232
+ rhsCard?: string;
233
+ }
234
+ export declare const Relationship: {
235
+ readonly $type: "Relationship";
236
+ readonly arrow: "arrow";
237
+ readonly label: "label";
238
+ readonly lhs: "lhs";
239
+ readonly lhsCard: "lhsCard";
240
+ readonly rhs: "rhs";
241
+ readonly rhsCard: "rhsCard";
242
+ };
243
+ export declare function isRelationship(item: unknown): item is Relationship;
244
+ export interface StereotypeAssignment extends langium.AstNode {
245
+ readonly $container: Diagram;
246
+ readonly $type: 'StereotypeAssignment';
247
+ classRef: langium.Reference<ClassDef>;
248
+ stereotype: StereotypeMarker;
249
+ }
250
+ export declare const StereotypeAssignment: {
251
+ readonly $type: "StereotypeAssignment";
252
+ readonly classRef: "classRef";
253
+ readonly stereotype: "stereotype";
254
+ };
255
+ export declare function isStereotypeAssignment(item: unknown): item is StereotypeAssignment;
256
+ export interface StereotypeMarker extends langium.AstNode {
257
+ readonly $container: ClassDef | StereotypeAssignment;
258
+ readonly $type: 'StereotypeMarker';
259
+ name: string;
260
+ }
261
+ export declare const StereotypeMarker: {
262
+ readonly $type: "StereotypeMarker";
263
+ readonly name: "name";
264
+ };
265
+ export declare function isStereotypeMarker(item: unknown): item is StereotypeMarker;
266
+ export type Visibility = '#' | '+' | '-' | '~';
267
+ export declare function isVisibility(item: unknown): item is Visibility;
268
+ export declare class MermaidUnitAstReflection extends langium.AbstractAstReflection {
269
+ readonly types: {
270
+ readonly ClassDef: {
271
+ readonly name: "ClassDef";
272
+ readonly properties: {
273
+ readonly members: {
274
+ readonly name: "members";
275
+ readonly defaultValue: [];
276
+ readonly optional: true;
277
+ };
278
+ readonly name: {
279
+ readonly name: "name";
280
+ };
281
+ readonly stereotypes: {
282
+ readonly name: "stereotypes";
283
+ readonly defaultValue: [];
284
+ readonly optional: true;
285
+ };
286
+ };
287
+ readonly superTypes: [];
288
+ };
289
+ readonly ClassMember: {
290
+ readonly name: "ClassMember";
291
+ readonly properties: {
292
+ readonly abstract: {
293
+ readonly name: "abstract";
294
+ readonly defaultValue: false;
295
+ readonly optional: true;
296
+ };
297
+ readonly method: {
298
+ readonly name: "method";
299
+ readonly defaultValue: false;
300
+ readonly optional: true;
301
+ };
302
+ readonly name: {
303
+ readonly name: "name";
304
+ };
305
+ readonly params: {
306
+ readonly name: "params";
307
+ readonly defaultValue: [];
308
+ readonly optional: true;
309
+ };
310
+ readonly returnType: {
311
+ readonly name: "returnType";
312
+ readonly optional: true;
313
+ };
314
+ readonly static: {
315
+ readonly name: "static";
316
+ readonly defaultValue: false;
317
+ readonly optional: true;
318
+ };
319
+ readonly type: {
320
+ readonly name: "type";
321
+ readonly optional: true;
322
+ };
323
+ readonly visibility: {
324
+ readonly name: "visibility";
325
+ readonly optional: true;
326
+ };
327
+ };
328
+ readonly superTypes: [];
329
+ };
330
+ readonly Diagram: {
331
+ readonly name: "Diagram";
332
+ readonly properties: {
333
+ readonly classes: {
334
+ readonly name: "classes";
335
+ readonly defaultValue: [];
336
+ readonly optional: true;
337
+ };
338
+ readonly directives: {
339
+ readonly name: "directives";
340
+ readonly defaultValue: [];
341
+ readonly optional: true;
342
+ };
343
+ readonly notes: {
344
+ readonly name: "notes";
345
+ readonly defaultValue: [];
346
+ readonly optional: true;
347
+ };
348
+ readonly relationships: {
349
+ readonly name: "relationships";
350
+ readonly defaultValue: [];
351
+ readonly optional: true;
352
+ };
353
+ readonly stereotypeAssignments: {
354
+ readonly name: "stereotypeAssignments";
355
+ readonly defaultValue: [];
356
+ readonly optional: true;
357
+ };
358
+ };
359
+ readonly superTypes: [];
360
+ };
361
+ readonly Directive: {
362
+ readonly name: "Directive";
363
+ readonly properties: {
364
+ readonly text: {
365
+ readonly name: "text";
366
+ };
367
+ };
368
+ readonly superTypes: [];
369
+ };
370
+ readonly ErAttribute: {
371
+ readonly name: "ErAttribute";
372
+ readonly properties: {
373
+ readonly comment: {
374
+ readonly name: "comment";
375
+ readonly optional: true;
376
+ };
377
+ readonly keys: {
378
+ readonly name: "keys";
379
+ readonly defaultValue: [];
380
+ readonly optional: true;
381
+ };
382
+ readonly name: {
383
+ readonly name: "name";
384
+ };
385
+ readonly type: {
386
+ readonly name: "type";
387
+ };
388
+ };
389
+ readonly superTypes: [];
390
+ };
391
+ readonly ErDiagram: {
392
+ readonly name: "ErDiagram";
393
+ readonly properties: {
394
+ readonly entities: {
395
+ readonly name: "entities";
396
+ readonly defaultValue: [];
397
+ readonly optional: true;
398
+ };
399
+ readonly notes: {
400
+ readonly name: "notes";
401
+ readonly defaultValue: [];
402
+ readonly optional: true;
403
+ };
404
+ readonly relationships: {
405
+ readonly name: "relationships";
406
+ readonly defaultValue: [];
407
+ readonly optional: true;
408
+ };
409
+ };
410
+ readonly superTypes: [];
411
+ };
412
+ readonly ErEntityDef: {
413
+ readonly name: "ErEntityDef";
414
+ readonly properties: {
415
+ readonly attributes: {
416
+ readonly name: "attributes";
417
+ readonly defaultValue: [];
418
+ readonly optional: true;
419
+ };
420
+ readonly name: {
421
+ readonly name: "name";
422
+ };
423
+ };
424
+ readonly superTypes: [];
425
+ };
426
+ readonly ErNote: {
427
+ readonly name: "ErNote";
428
+ readonly properties: {
429
+ readonly target: {
430
+ readonly name: "target";
431
+ readonly optional: true;
432
+ };
433
+ readonly text: {
434
+ readonly name: "text";
435
+ };
436
+ };
437
+ readonly superTypes: [];
438
+ };
439
+ readonly ErRelationship: {
440
+ readonly name: "ErRelationship";
441
+ readonly properties: {
442
+ readonly cardinality: {
443
+ readonly name: "cardinality";
444
+ };
445
+ readonly label: {
446
+ readonly name: "label";
447
+ readonly optional: true;
448
+ };
449
+ readonly lhs: {
450
+ readonly name: "lhs";
451
+ };
452
+ readonly rhs: {
453
+ readonly name: "rhs";
454
+ };
455
+ };
456
+ readonly superTypes: [];
457
+ };
458
+ readonly Note: {
459
+ readonly name: "Note";
460
+ readonly properties: {
461
+ readonly target: {
462
+ readonly name: "target";
463
+ readonly referenceType: "ClassDef";
464
+ readonly optional: true;
465
+ };
466
+ readonly text: {
467
+ readonly name: "text";
468
+ };
469
+ };
470
+ readonly superTypes: [];
471
+ };
472
+ readonly Param: {
473
+ readonly name: "Param";
474
+ readonly properties: {
475
+ readonly name: {
476
+ readonly name: "name";
477
+ };
478
+ readonly type: {
479
+ readonly name: "type";
480
+ readonly optional: true;
481
+ };
482
+ };
483
+ readonly superTypes: [];
484
+ };
485
+ readonly Relationship: {
486
+ readonly name: "Relationship";
487
+ readonly properties: {
488
+ readonly arrow: {
489
+ readonly name: "arrow";
490
+ };
491
+ readonly label: {
492
+ readonly name: "label";
493
+ readonly optional: true;
494
+ };
495
+ readonly lhs: {
496
+ readonly name: "lhs";
497
+ readonly referenceType: "ClassDef";
498
+ };
499
+ readonly lhsCard: {
500
+ readonly name: "lhsCard";
501
+ readonly optional: true;
502
+ };
503
+ readonly rhs: {
504
+ readonly name: "rhs";
505
+ readonly referenceType: "ClassDef";
506
+ };
507
+ readonly rhsCard: {
508
+ readonly name: "rhsCard";
509
+ readonly optional: true;
510
+ };
511
+ };
512
+ readonly superTypes: [];
513
+ };
514
+ readonly StereotypeAssignment: {
515
+ readonly name: "StereotypeAssignment";
516
+ readonly properties: {
517
+ readonly classRef: {
518
+ readonly name: "classRef";
519
+ readonly referenceType: "ClassDef";
520
+ };
521
+ readonly stereotype: {
522
+ readonly name: "stereotype";
523
+ };
524
+ };
525
+ readonly superTypes: [];
526
+ };
527
+ readonly StereotypeMarker: {
528
+ readonly name: "StereotypeMarker";
529
+ readonly properties: {
530
+ readonly name: {
531
+ readonly name: "name";
532
+ };
533
+ };
534
+ readonly superTypes: [];
535
+ };
536
+ };
537
+ }
538
+ export declare const reflection: MermaidUnitAstReflection;
539
+ //# sourceMappingURL=ast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../src/parser/generated/ast.ts"],"names":[],"mappings":"AAAA;;;gFAGgF;AAGhF,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,iHAAiH;AACjH,yBAAiB,mBAAmB,CAAC;IAE1B,MAAM,SAAS;;;;;;KAMrB,CAAC;IAEF,KAAY,aAAa,GAAG,MAAM,OAAO,SAAS,CAAC;IAEnD,KAAY,YAAY,GAClB,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,KAAK,GACL,GAAG,GACH,GAAG,GACH,GAAG,GACH,IAAI,GACJ,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,GAAG,GACH,IAAI,GACJ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,OAAO,GACP,cAAc,GACd,KAAK,GACL,MAAM,GACN,KAAK,GACL,GAAG,GACH,GAAG,GACH,GAAG,CAAC;IAEV,KAAY,UAAU,GAAG,aAAa,GAA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