likec4 1.24.0 → 1.24.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/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as c4 from '@likec4/core';
2
- import { Fqn, EdgeId, ComputedView, DiagramView, OverviewGraph, LikeC4Model, ViewId, invariant, ViewChange } from '@likec4/core';
2
+ import { Fqn, EdgeId, ComputedView, DiagramView, OverviewGraph, LikeC4Model, ViewId, ViewChange } from '@likec4/core';
3
3
  export { AbstractRelation, AutoLayoutDirection, BBox, Color, ComputedDeploymentView, ComputedDynamicView, ComputedEdge, ComputedElementView, ComputedLikeC4Model, ComputedNode, ComputedView, DeployedInstance, DeploymentElement, DeploymentNode, DeploymentNodeKind, DeploymentRelation, DeploymentView, DiagramEdge, DiagramNode, DiagramView, DynamicView, EdgeId, Element, ElementKind, ElementView, Fqn, HexColorLiteral, LayoutedLikeC4Model, LikeC4View, NodeId, ParsedLikeC4Model, Point, RelationExpr, RelationId, StepEdgeId, Tag, ThemeColor, ViewId, XYPoint } from '@likec4/core';
4
4
  import { LikeC4Model as LikeC4Model$1 } from '@likec4/core/model';
5
5
  export { AnyAux, Aux, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel } from '@likec4/core/model';
6
6
  import { Tagged, ValueOf, ConditionalPick, Writable } from 'type-fest';
7
+ import { DefaultWeakMap, MultiMap as MultiMap$1 } from '@likec4/core/utils';
7
8
  import { Fqn as Fqn$1 } from '@likec4/core/types';
8
- import { DefaultWeakMap } from '@likec4/core/utils';
9
9
 
10
10
  /**
11
11
  * A tagging type for string properties that are actually document URIs.
@@ -5184,7 +5184,7 @@ interface FileSystemProvider {
5184
5184
  * evaluation means that all processing is repeated when you access the sequence multiple
5185
5185
  * times; in such a case, it may be better to store the resulting sequence into an array.
5186
5186
  */
5187
- interface Stream<T> extends Iterable<T> {
5187
+ interface Stream$1<T> extends Iterable<T> {
5188
5188
  /**
5189
5189
  * Returns an iterator for this stream. This is the same as calling the `Symbol.iterator` function property.
5190
5190
  */
@@ -5221,7 +5221,7 @@ interface Stream<T> extends Iterable<T> {
5221
5221
  *
5222
5222
  * @param other Stream to be concatenated with this one.
5223
5223
  */
5224
- concat<T2>(other: Iterable<T2>): Stream<T | T2>;
5224
+ concat<T2>(other: Iterable<T2>): Stream$1<T | T2>;
5225
5225
  /**
5226
5226
  * Adds all elements of the stream into a string, separated by the specified separator string.
5227
5227
  *
@@ -5244,7 +5244,7 @@ interface Stream<T> extends Iterable<T> {
5244
5244
  * predicate returns a value which is coercible to the Boolean value `false`, or until the end
5245
5245
  * of the stream.
5246
5246
  */
5247
- every<S extends T>(predicate: (value: T) => value is S): this is Stream<S>;
5247
+ every<S extends T>(predicate: (value: T) => value is S): this is Stream$1<S>;
5248
5248
  every(predicate: (value: T) => unknown): boolean;
5249
5249
  /**
5250
5250
  * Determines whether any member of the stream satisfies the specified test.
@@ -5268,7 +5268,7 @@ interface Stream<T> extends Iterable<T> {
5268
5268
  *
5269
5269
  * @param callbackfn Lazily evaluated function mapping stream elements.
5270
5270
  */
5271
- map<U>(callbackfn: (value: T) => U): Stream<U>;
5271
+ map<U>(callbackfn: (value: T) => U): Stream$1<U>;
5272
5272
  /**
5273
5273
  * Returns the elements of the stream that meet the condition specified in a callback function.
5274
5274
  * The function is called when the resulting stream elements are actually accessed, so accessing the
@@ -5277,13 +5277,13 @@ interface Stream<T> extends Iterable<T> {
5277
5277
  *
5278
5278
  * @param predicate Lazily evaluated function checking a condition on stream elements.
5279
5279
  */
5280
- filter<S extends T>(predicate: (value: T) => value is S): Stream<S>;
5281
- filter(predicate: (value: T) => unknown): Stream<T>;
5280
+ filter<S extends T>(predicate: (value: T) => value is S): Stream$1<S>;
5281
+ filter(predicate: (value: T) => unknown): Stream$1<T>;
5282
5282
  /**
5283
5283
  * Returns the elements of the stream that are _non-nullable_, which means they are neither `undefined`
5284
5284
  * nor `null`.
5285
5285
  */
5286
- nonNullable(): Stream<NonNullable<T>>;
5286
+ nonNullable(): Stream$1<NonNullable<T>>;
5287
5287
  /**
5288
5288
  * Calls the specified callback function for all elements in the stream. The return value of the
5289
5289
  * callback function is the accumulated result, and is provided as an argument in the next call to
@@ -5341,7 +5341,7 @@ interface Stream<T> extends Iterable<T> {
5341
5341
  *
5342
5342
  * @param callbackfn Lazily evaluated function mapping stream elements.
5343
5343
  */
5344
- flatMap<U>(callbackfn: (value: T) => U | Iterable<U>): Stream<U>;
5344
+ flatMap<U>(callbackfn: (value: T) => U | Iterable<U>): Stream$1<U>;
5345
5345
  /**
5346
5346
  * Returns a new stream with all sub-stream or sub-array elements concatenated into it recursively up
5347
5347
  * to the specified depth.
@@ -5359,14 +5359,14 @@ interface Stream<T> extends Iterable<T> {
5359
5359
  * @param skipCount The number of elements to skip. If this is larger than the number of elements in
5360
5360
  * the stream, an empty stream is returned. Defaults to 1.
5361
5361
  */
5362
- tail(skipCount?: number): Stream<T>;
5362
+ tail(skipCount?: number): Stream$1<T>;
5363
5363
  /**
5364
5364
  * Returns a stream consisting of the elements of this stream, truncated to be no longer than `maxSize`
5365
5365
  * in length.
5366
5366
  *
5367
5367
  * @param maxSize The number of elements the stream should be limited to
5368
5368
  */
5369
- limit(maxSize: number): Stream<T>;
5369
+ limit(maxSize: number): Stream$1<T>;
5370
5370
  /**
5371
5371
  * Returns a stream containing only the distinct elements from this stream.
5372
5372
  * Equality is determined with the same rules as a standard `Set`.
@@ -5374,7 +5374,7 @@ interface Stream<T> extends Iterable<T> {
5374
5374
  * @param by A function returning the key used to check equality with a previous stream element.
5375
5375
  * If omitted, the stream elements themselves are used for comparison.
5376
5376
  */
5377
- distinct<Key = T>(by?: (element: T) => Key): Stream<T>;
5377
+ distinct<Key = T>(by?: (element: T) => Key): Stream$1<T>;
5378
5378
  /**
5379
5379
  * Returns a stream that contains all elements that don't exist in the {@link other} iterable.
5380
5380
  * Equality is determined with the same rules as a standard `Set`.
@@ -5382,11 +5382,11 @@ interface Stream<T> extends Iterable<T> {
5382
5382
  * @param key A function returning the key used to check quality.
5383
5383
  * If omitted, the stream elements themselves are used for comparison.
5384
5384
  */
5385
- exclude<Key = T>(other: Iterable<T>, key?: (element: T) => Key): Stream<T>;
5385
+ exclude<Key = T>(other: Iterable<T>, key?: (element: T) => Key): Stream$1<T>;
5386
5386
  }
5387
5387
  type FlatStream<T, Depth extends number> = {
5388
- 'done': Stream<T>;
5389
- 'recur': T extends Iterable<infer Content> ? FlatStream<Content, MinusOne<Depth>> : Stream<T>;
5388
+ 'done': Stream$1<T>;
5389
+ 'recur': T extends Iterable<infer Content> ? FlatStream<Content, MinusOne<Depth>> : Stream$1<T>;
5390
5390
  }[Depth extends 0 ? 'done' : 'recur'];
5391
5391
  type MinusOne<N extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][N];
5392
5392
 
@@ -5730,19 +5730,19 @@ declare class MultiMap<K, V> {
5730
5730
  /**
5731
5731
  * Returns a stream of key, value pairs for every entry in the map.
5732
5732
  */
5733
- entries(): Stream<[K, V]>;
5733
+ entries(): Stream$1<[K, V]>;
5734
5734
  /**
5735
5735
  * Returns a stream of keys in the map.
5736
5736
  */
5737
- keys(): Stream<K>;
5737
+ keys(): Stream$1<K>;
5738
5738
  /**
5739
5739
  * Returns a stream of values in the map.
5740
5740
  */
5741
- values(): Stream<V>;
5741
+ values(): Stream$1<V>;
5742
5742
  /**
5743
5743
  * Returns a stream of key, value set pairs for every key in the map.
5744
5744
  */
5745
- entriesGroupedByKey(): Stream<[K, V[]]>;
5745
+ entriesGroupedByKey(): Stream$1<[K, V[]]>;
5746
5746
  }
5747
5747
 
5748
5748
  interface Disposable$1 {
@@ -5938,7 +5938,7 @@ interface LangiumDocuments {
5938
5938
  /**
5939
5939
  * A stream of all documents managed under this service.
5940
5940
  */
5941
- readonly all: Stream<LangiumDocument>;
5941
+ readonly all: Stream$1<LangiumDocument>;
5942
5942
  /**
5943
5943
  * Manage a new document under this service.
5944
5944
  * @throws an error if a document with the same URI is already present.
@@ -6389,7 +6389,7 @@ interface IndexManager {
6389
6389
  * @param uris If specified, only returns elements from the given URIs.
6390
6390
  * @returns a `Stream` containing all globally visible nodes (of a given type).
6391
6391
  */
6392
- allElements(nodeType?: string, uris?: Set<string>): Stream<AstNodeDescription>;
6392
+ allElements(nodeType?: string, uris?: Set<string>): Stream$1<AstNodeDescription>;
6393
6393
  /**
6394
6394
  * Returns all known references that are pointing to the given `targetNode`.
6395
6395
  *
@@ -6398,7 +6398,7 @@ interface IndexManager {
6398
6398
  *
6399
6399
  * @returns a `Stream` of references that are targeting the `targetNode`
6400
6400
  */
6401
- findAllReferences(targetNode: AstNode, astNodePath: string): Stream<ReferenceDescription>;
6401
+ findAllReferences(targetNode: AstNode, astNodePath: string): Stream$1<ReferenceDescription>;
6402
6402
  }
6403
6403
 
6404
6404
  /******************************************************************************
@@ -6461,7 +6461,7 @@ interface Scope {
6461
6461
  * Create a stream of all elements in the scope. This is used to compute completion proposals to be
6462
6462
  * shown in the editor.
6463
6463
  */
6464
- getAllElements(): Stream<AstNodeDescription>;
6464
+ getAllElements(): Stream$1<AstNodeDescription>;
6465
6465
  }
6466
6466
  interface ScopeOptions {
6467
6467
  caseInsensitive?: boolean;
@@ -6680,7 +6680,7 @@ interface References {
6680
6680
  *
6681
6681
  * @param targetNode Specified target node whose references should be returned
6682
6682
  */
6683
- findReferences(targetNode: AstNode, options: FindReferencesOptions): Stream<ReferenceDescription>;
6683
+ findReferences(targetNode: AstNode, options: FindReferencesOptions): Stream$1<ReferenceDescription>;
6684
6684
  }
6685
6685
  interface FindReferencesOptions {
6686
6686
  /**
@@ -6923,7 +6923,7 @@ declare class ValidationRegistry {
6923
6923
  protected wrapValidationException(check: ValidationCheck, thisObj: unknown): ValidationCheck;
6924
6924
  protected handleException(functionality: () => MaybePromise<void>, messageContext: string, accept: ValidationAcceptor, node: AstNode): Promise<void>;
6925
6925
  protected addEntry(type: string, entry: ValidationCheckEntry): void;
6926
- getChecks(type: string, categories?: ValidationCategory[]): Stream<ValidationCheck>;
6926
+ getChecks(type: string, categories?: ValidationCategory[]): Stream$1<ValidationCheck>;
6927
6927
  /**
6928
6928
  * Register logic which will be executed once before validating all the nodes of an AST/Langium document.
6929
6929
  * This helps to prepare or initialize some information which are required or reusable for the following checks on the AstNodes.
@@ -13973,7 +13973,7 @@ declare class DefaultCompletionProvider implements CompletionProvider {
13973
13973
  * @param _context Information about the completion request including document, cursor position, token under cursor, etc.
13974
13974
  * @returns A stream of all elements being valid for the given reference.
13975
13975
  */
13976
- protected getReferenceCandidates(refInfo: ReferenceInfo, _context: CompletionContext): Stream<AstNodeDescription>;
13976
+ protected getReferenceCandidates(refInfo: ReferenceInfo, _context: CompletionContext): Stream$1<AstNodeDescription>;
13977
13977
  /**
13978
13978
  * Override this method to change how reference completion items are created.
13979
13979
  *
@@ -15419,21 +15419,22 @@ declare abstract class ADisposable implements Disposable {
15419
15419
  protected throwIfDisposed(): void;
15420
15420
  }
15421
15421
 
15422
- declare class FqnIndex extends ADisposable {
15422
+ declare class FqnIndex<AstNd extends AstNode = Element> extends ADisposable {
15423
15423
  protected services: LikeC4Services;
15424
+ private cachePrefix;
15424
15425
  protected langiumDocuments: LangiumDocuments;
15425
15426
  protected documentCache: DefaultWeakMap<LikeC4LangiumDocument, DocumentFqnIndex>;
15426
- protected cachePrefix: string;
15427
- constructor(services: LikeC4Services);
15427
+ protected workspaceCache: WorkspaceCache<string, AstNodeDescriptionWithFqn[]>;
15428
+ constructor(services: LikeC4Services, cachePrefix?: string);
15428
15429
  private documents;
15429
15430
  get(document: LikeC4LangiumDocument): DocumentFqnIndex;
15430
- getFqn(el: Element | DeploymentElement): Fqn$1;
15431
- byFqn(fqn: Fqn$1): Stream<AstNodeDescriptionWithFqn>;
15432
- directChildrenOf(parent: Fqn$1): Stream<AstNodeDescriptionWithFqn>;
15431
+ getFqn(el: AstNd): Fqn$1;
15432
+ byFqn(fqn: Fqn$1): Stream$1<AstNodeDescriptionWithFqn>;
15433
+ directChildrenOf(parent: Fqn$1): Stream$1<AstNodeDescriptionWithFqn>;
15433
15434
  /**
15434
15435
  * Returns descedant elements with unique names in the scope
15435
15436
  */
15436
- uniqueDescedants(parent: Fqn$1): Stream<AstNodeDescriptionWithFqn>;
15437
+ uniqueDescedants(parent: Fqn$1): Stream$1<AstNodeDescriptionWithFqn>;
15437
15438
  protected createDocumentIndex(document: LikeC4LangiumDocument): DocumentFqnIndex;
15438
15439
  }
15439
15440
  declare class DocumentFqnIndex {
@@ -15455,39 +15456,35 @@ declare class DocumentFqnIndex {
15455
15456
  /**
15456
15457
  * direct children of elements
15457
15458
  */
15458
- _children: MultiMap<Fqn$1, AstNodeDescriptionWithFqn>,
15459
+ _children: MultiMap$1<Fqn$1, AstNodeDescriptionWithFqn>,
15459
15460
  /**
15460
15461
  * All descendants of an element (unique by name)
15461
15462
  */
15462
- _descendants: MultiMap<Fqn$1, AstNodeDescriptionWithFqn>,
15463
+ _descendants: MultiMap$1<Fqn$1, AstNodeDescriptionWithFqn>,
15463
15464
  /**
15464
15465
  * All elements by FQN
15465
15466
  */
15466
- _byfqn: MultiMap<Fqn$1, AstNodeDescriptionWithFqn>);
15467
+ _byfqn: MultiMap$1<Fqn$1, AstNodeDescriptionWithFqn>);
15467
15468
  rootElements(): readonly AstNodeDescriptionWithFqn[];
15468
15469
  byFqn(fqn: Fqn$1): readonly AstNodeDescriptionWithFqn[];
15469
15470
  children(parent: Fqn$1): readonly AstNodeDescriptionWithFqn[];
15470
15471
  descendants(nodeName: Fqn$1): readonly AstNodeDescriptionWithFqn[];
15471
15472
  }
15472
15473
 
15473
- declare class DeploymentsIndex extends FqnIndex {
15474
+ declare class DeploymentsIndex extends FqnIndex<DeploymentElement> {
15474
15475
  protected services: LikeC4Services;
15475
15476
  protected Names: LikeC4NameProvider;
15476
- protected cachePrefix: string;
15477
15477
  constructor(services: LikeC4Services);
15478
15478
  protected createDocumentIndex(document: LikeC4LangiumDocument): DocumentFqnIndex;
15479
15479
  }
15480
15480
 
15481
15481
  type ModelParsedListener = (docs: URI[]) => void;
15482
- type ParseModelResult = {
15483
- model: c4.ParsedLikeC4Model;
15484
- computeView: (view: c4.LikeC4View) => c4.ComputeViewResult;
15485
- };
15486
15482
  declare class LikeC4ModelBuilder extends ADisposable {
15487
15483
  private parser;
15488
15484
  private listeners;
15489
15485
  private cache;
15490
15486
  private DocumentBuilder;
15487
+ private LangiumDocuments;
15491
15488
  constructor(services: LikeC4Services);
15492
15489
  /**
15493
15490
  * WARNING:
@@ -15495,7 +15492,7 @@ declare class LikeC4ModelBuilder extends ADisposable {
15495
15492
  * Otherwise, the model may be incomplete.
15496
15493
  */
15497
15494
  private unsafeSyncParseModel;
15498
- parseModel(cancelToken?: CancellationToken): Promise<ParseModelResult | null>;
15495
+ parseModel(cancelToken?: CancellationToken): Promise<c4.ParsedLikeC4Model | null>;
15499
15496
  private previousViews;
15500
15497
  /**
15501
15498
  * WARNING:
@@ -15523,7 +15520,7 @@ declare class LikeC4ModelLocator {
15523
15520
  locateDeploymentElement(fqn: c4.Fqn, _prop?: string): Location | null;
15524
15521
  locateRelation(relationId: c4.RelationId): Location | null;
15525
15522
  locateViewAst(viewId: c4.ViewId): {
15526
- doc: any;
15523
+ doc: Stream<ParsedLikeC4LangiumDocument>;
15527
15524
  view: any;
15528
15525
  viewAst: LikeC4View;
15529
15526
  } | null;
@@ -15553,40 +15550,40 @@ declare class BaseParser {
15553
15550
  declare const DocumentParserFromMixins: {
15554
15551
  new (...args: any[]): {
15555
15552
  parseGlobals(): void;
15556
- parseAndStoreGlobalPredicateGroupOrDynamic(astRule: GlobalPredicateGroup | GlobalDynamicPredicateGroup, id: invariant, c4Globals: ParsedAstGlobals): void;
15557
- parseGlobalPredicateGroup(astRule: GlobalPredicateGroup): invariant[];
15558
- parseGlobalDynamicPredicateGroup(astRule: GlobalDynamicPredicateGroup): invariant[];
15559
- parseGlobalStyleOrGroup(astRule: GlobalStyle | GlobalStyleGroup): invariant[];
15553
+ parseAndStoreGlobalPredicateGroupOrDynamic(astRule: GlobalPredicateGroup | GlobalDynamicPredicateGroup, id: DefaultWeakMap, c4Globals: ParsedAstGlobals): void;
15554
+ parseGlobalPredicateGroup(astRule: GlobalPredicateGroup): DefaultWeakMap[];
15555
+ parseGlobalDynamicPredicateGroup(astRule: GlobalDynamicPredicateGroup): DefaultWeakMap[];
15556
+ parseGlobalStyleOrGroup(astRule: GlobalStyle | GlobalStyleGroup): DefaultWeakMap[];
15560
15557
  parseViews(): void;
15561
- parseElementView(astNode: ElementView, additionalStyles: invariant[]): ParsedAstElementView;
15562
- parseViewRule(astRule: ViewRule): invariant;
15563
- parseViewRulePredicate(astNode: ViewRulePredicate): invariant;
15564
- parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): invariant;
15565
- parseViewRuleStyleOrGlobalRef(astRule: ViewRuleStyleOrGlobalRef): invariant;
15566
- parseViewRuleGroup(astNode: ViewRuleGroup): invariant;
15567
- parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): invariant;
15568
- parseRuleStyle(styleProperties: StyleProperty[], elementExpressionsIterator: ElementExpressionsIterator, notationProperty?: NotationProperty): invariant;
15569
- parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): invariant;
15570
- parseDynamicElementView(astNode: DynamicView, additionalStyles: invariant[]): ParsedAstDynamicView;
15571
- parseDynamicViewRule(astRule: DynamicViewRule): invariant;
15572
- parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): invariant;
15573
- parseDynamicParallelSteps(node: DynamicViewParallelSteps): invariant;
15574
- parseDynamicStep(node: DynamicViewStep): invariant;
15575
- parsePredicate(astNode: Predicate): invariant;
15576
- parseElementPredicate(astNode: ElementPredicate): invariant;
15577
- parseElementExpressionsIterator(astNode: ElementExpressionsIterator): invariant[];
15578
- parseElementExpression(astNode: ElementExpression): invariant;
15579
- parseElementPredicateWhere(astNode: ElementPredicateWhere): invariant;
15580
- parseElementPredicateWith(astNode: ElementPredicateWith): invariant;
15581
- parseRelationPredicate(astNode: RelationPredicate): invariant;
15582
- parseRelationPredicateWhere(astNode: RelationPredicateWhere): invariant;
15583
- parseRelationPredicateWith(astNode: RelationPredicateWith, relation: invariant | invariant): invariant;
15584
- parseRelationExpression(astNode: RelationExpression): invariant;
15558
+ parseElementView(astNode: ElementView, additionalStyles: DefaultWeakMap[]): ParsedAstElementView;
15559
+ parseViewRule(astRule: ViewRule): DefaultWeakMap;
15560
+ parseViewRulePredicate(astNode: ViewRulePredicate): DefaultWeakMap;
15561
+ parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): DefaultWeakMap;
15562
+ parseViewRuleStyleOrGlobalRef(astRule: ViewRuleStyleOrGlobalRef): DefaultWeakMap;
15563
+ parseViewRuleGroup(astNode: ViewRuleGroup): DefaultWeakMap;
15564
+ parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): DefaultWeakMap;
15565
+ parseRuleStyle(styleProperties: StyleProperty[], elementExpressionsIterator: ElementExpressionsIterator, notationProperty?: NotationProperty): DefaultWeakMap;
15566
+ parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): DefaultWeakMap;
15567
+ parseDynamicElementView(astNode: DynamicView, additionalStyles: DefaultWeakMap[]): ParsedAstDynamicView;
15568
+ parseDynamicViewRule(astRule: DynamicViewRule): DefaultWeakMap;
15569
+ parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): DefaultWeakMap;
15570
+ parseDynamicParallelSteps(node: DynamicViewParallelSteps): DefaultWeakMap;
15571
+ parseDynamicStep(node: DynamicViewStep): DefaultWeakMap;
15572
+ parsePredicate(astNode: Predicate): DefaultWeakMap;
15573
+ parseElementPredicate(astNode: ElementPredicate): DefaultWeakMap;
15574
+ parseElementExpressionsIterator(astNode: ElementExpressionsIterator): DefaultWeakMap[];
15575
+ parseElementExpression(astNode: ElementExpression): DefaultWeakMap;
15576
+ parseElementPredicateWhere(astNode: ElementPredicateWhere): DefaultWeakMap;
15577
+ parseElementPredicateWith(astNode: ElementPredicateWith): DefaultWeakMap;
15578
+ parseRelationPredicate(astNode: RelationPredicate): DefaultWeakMap;
15579
+ parseRelationPredicateWhere(astNode: RelationPredicateWhere): DefaultWeakMap;
15580
+ parseRelationPredicateWith(astNode: RelationPredicateWith, relation: DefaultWeakMap | DefaultWeakMap): DefaultWeakMap;
15581
+ parseRelationExpression(astNode: RelationExpression): DefaultWeakMap;
15585
15582
  isValid: IsValidFn;
15586
15583
  readonly services: LikeC4Services;
15587
15584
  readonly doc: ParsedLikeC4LangiumDocument;
15588
- resolveFqn(node: FqnReferenceable): invariant;
15589
- getAstNodePath(node: invariant): any;
15585
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15586
+ getAstNodePath(node: DefaultWeakMap): any;
15590
15587
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15591
15588
  [key: string]: string;
15592
15589
  } | undefined;
@@ -15595,20 +15592,20 @@ declare const DocumentParserFromMixins: {
15595
15592
  }>(withTags?: E | undefined): any;
15596
15593
  parseTags<E extends {
15597
15594
  tags?: Tags;
15598
- }>(withTags?: E): invariant<invariant> | null;
15599
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15600
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15595
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15596
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15597
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15601
15598
  parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
15602
- parseDeploymentViewRule(astRule: DeploymentViewRule): invariant;
15603
- parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): invariant;
15604
- parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): invariant;
15605
- parseFqnRef(astNode: FqnRef): invariant;
15606
- parseFqnExpr(astNode: FqnExpr): invariant;
15607
- parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15608
- parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
15609
- parseFqnExpressions(astNode: FqnExpressions): invariant[];
15610
- parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15611
- parseRelationExpr(astNode: RelationExpr): invariant;
15599
+ parseDeploymentViewRule(astRule: DeploymentViewRule): DefaultWeakMap;
15600
+ parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): DefaultWeakMap;
15601
+ parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): DefaultWeakMap;
15602
+ parseFqnRef(astNode: FqnRef): DefaultWeakMap;
15603
+ parseFqnExpr(astNode: FqnExpr): DefaultWeakMap;
15604
+ parseFqnRefExpr(astNode: FqnRefExpr): DefaultWeakMap;
15605
+ parseElementWhereExpr(astNode: ElementPredicateWhereV2): DefaultWeakMap;
15606
+ parseFqnExpressions(astNode: FqnExpressions): DefaultWeakMap[];
15607
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): DefaultWeakMap;
15608
+ parseRelationExpr(astNode: RelationExpr): DefaultWeakMap;
15612
15609
  parseDeployment(): void;
15613
15610
  parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
15614
15611
  parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
@@ -15618,35 +15615,35 @@ declare const DocumentParserFromMixins: {
15618
15615
  } & {
15619
15616
  new (...args: any[]): {
15620
15617
  parseViews(): void;
15621
- parseElementView(astNode: ElementView, additionalStyles: invariant[]): ParsedAstElementView;
15622
- parseViewRule(astRule: ViewRule): invariant;
15623
- parseViewRulePredicate(astNode: ViewRulePredicate): invariant;
15624
- parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): invariant;
15625
- parseViewRuleStyleOrGlobalRef(astRule: ViewRuleStyleOrGlobalRef): invariant;
15626
- parseViewRuleGroup(astNode: ViewRuleGroup): invariant;
15627
- parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): invariant;
15628
- parseRuleStyle(styleProperties: StyleProperty[], elementExpressionsIterator: ElementExpressionsIterator, notationProperty?: NotationProperty): invariant;
15629
- parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): invariant;
15630
- parseDynamicElementView(astNode: DynamicView, additionalStyles: invariant[]): ParsedAstDynamicView;
15631
- parseDynamicViewRule(astRule: DynamicViewRule): invariant;
15632
- parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): invariant;
15633
- parseDynamicParallelSteps(node: DynamicViewParallelSteps): invariant;
15634
- parseDynamicStep(node: DynamicViewStep): invariant;
15635
- parsePredicate(astNode: Predicate): invariant;
15636
- parseElementPredicate(astNode: ElementPredicate): invariant;
15637
- parseElementExpressionsIterator(astNode: ElementExpressionsIterator): invariant[];
15638
- parseElementExpression(astNode: ElementExpression): invariant;
15639
- parseElementPredicateWhere(astNode: ElementPredicateWhere): invariant;
15640
- parseElementPredicateWith(astNode: ElementPredicateWith): invariant;
15641
- parseRelationPredicate(astNode: RelationPredicate): invariant;
15642
- parseRelationPredicateWhere(astNode: RelationPredicateWhere): invariant;
15643
- parseRelationPredicateWith(astNode: RelationPredicateWith, relation: invariant | invariant): invariant;
15644
- parseRelationExpression(astNode: RelationExpression): invariant;
15618
+ parseElementView(astNode: ElementView, additionalStyles: DefaultWeakMap[]): ParsedAstElementView;
15619
+ parseViewRule(astRule: ViewRule): DefaultWeakMap;
15620
+ parseViewRulePredicate(astNode: ViewRulePredicate): DefaultWeakMap;
15621
+ parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): DefaultWeakMap;
15622
+ parseViewRuleStyleOrGlobalRef(astRule: ViewRuleStyleOrGlobalRef): DefaultWeakMap;
15623
+ parseViewRuleGroup(astNode: ViewRuleGroup): DefaultWeakMap;
15624
+ parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): DefaultWeakMap;
15625
+ parseRuleStyle(styleProperties: StyleProperty[], elementExpressionsIterator: ElementExpressionsIterator, notationProperty?: NotationProperty): DefaultWeakMap;
15626
+ parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): DefaultWeakMap;
15627
+ parseDynamicElementView(astNode: DynamicView, additionalStyles: DefaultWeakMap[]): ParsedAstDynamicView;
15628
+ parseDynamicViewRule(astRule: DynamicViewRule): DefaultWeakMap;
15629
+ parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): DefaultWeakMap;
15630
+ parseDynamicParallelSteps(node: DynamicViewParallelSteps): DefaultWeakMap;
15631
+ parseDynamicStep(node: DynamicViewStep): DefaultWeakMap;
15632
+ parsePredicate(astNode: Predicate): DefaultWeakMap;
15633
+ parseElementPredicate(astNode: ElementPredicate): DefaultWeakMap;
15634
+ parseElementExpressionsIterator(astNode: ElementExpressionsIterator): DefaultWeakMap[];
15635
+ parseElementExpression(astNode: ElementExpression): DefaultWeakMap;
15636
+ parseElementPredicateWhere(astNode: ElementPredicateWhere): DefaultWeakMap;
15637
+ parseElementPredicateWith(astNode: ElementPredicateWith): DefaultWeakMap;
15638
+ parseRelationPredicate(astNode: RelationPredicate): DefaultWeakMap;
15639
+ parseRelationPredicateWhere(astNode: RelationPredicateWhere): DefaultWeakMap;
15640
+ parseRelationPredicateWith(astNode: RelationPredicateWith, relation: DefaultWeakMap | DefaultWeakMap): DefaultWeakMap;
15641
+ parseRelationExpression(astNode: RelationExpression): DefaultWeakMap;
15645
15642
  isValid: IsValidFn;
15646
15643
  readonly services: LikeC4Services;
15647
15644
  readonly doc: ParsedLikeC4LangiumDocument;
15648
- resolveFqn(node: FqnReferenceable): invariant;
15649
- getAstNodePath(node: invariant): any;
15645
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15646
+ getAstNodePath(node: DefaultWeakMap): any;
15650
15647
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15651
15648
  [key: string]: string;
15652
15649
  } | undefined;
@@ -15655,20 +15652,20 @@ declare const DocumentParserFromMixins: {
15655
15652
  }>(withTags?: E | undefined): any;
15656
15653
  parseTags<E extends {
15657
15654
  tags?: Tags;
15658
- }>(withTags?: E): invariant<invariant> | null;
15659
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15660
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15655
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15656
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15657
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15661
15658
  parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
15662
- parseDeploymentViewRule(astRule: DeploymentViewRule): invariant;
15663
- parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): invariant;
15664
- parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): invariant;
15665
- parseFqnRef(astNode: FqnRef): invariant;
15666
- parseFqnExpr(astNode: FqnExpr): invariant;
15667
- parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15668
- parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
15669
- parseFqnExpressions(astNode: FqnExpressions): invariant[];
15670
- parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15671
- parseRelationExpr(astNode: RelationExpr): invariant;
15659
+ parseDeploymentViewRule(astRule: DeploymentViewRule): DefaultWeakMap;
15660
+ parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): DefaultWeakMap;
15661
+ parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): DefaultWeakMap;
15662
+ parseFqnRef(astNode: FqnRef): DefaultWeakMap;
15663
+ parseFqnExpr(astNode: FqnExpr): DefaultWeakMap;
15664
+ parseFqnRefExpr(astNode: FqnRefExpr): DefaultWeakMap;
15665
+ parseElementWhereExpr(astNode: ElementPredicateWhereV2): DefaultWeakMap;
15666
+ parseFqnExpressions(astNode: FqnExpressions): DefaultWeakMap[];
15667
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): DefaultWeakMap;
15668
+ parseRelationExpr(astNode: RelationExpr): DefaultWeakMap;
15672
15669
  parseDeployment(): void;
15673
15670
  parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
15674
15671
  parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
@@ -15682,8 +15679,8 @@ declare const DocumentParserFromMixins: {
15682
15679
  isValid: IsValidFn;
15683
15680
  readonly services: LikeC4Services;
15684
15681
  readonly doc: ParsedLikeC4LangiumDocument;
15685
- resolveFqn(node: FqnReferenceable): invariant;
15686
- getAstNodePath(node: invariant): any;
15682
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15683
+ getAstNodePath(node: DefaultWeakMap): any;
15687
15684
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15688
15685
  [key: string]: string;
15689
15686
  } | undefined;
@@ -15692,27 +15689,27 @@ declare const DocumentParserFromMixins: {
15692
15689
  }>(withTags?: E | undefined): any;
15693
15690
  parseTags<E extends {
15694
15691
  tags?: Tags;
15695
- }>(withTags?: E): invariant<invariant> | null;
15696
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15697
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15692
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15693
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15694
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15698
15695
  };
15699
15696
  } & {
15700
15697
  new (...args: any[]): {
15701
- parsePredicate(astNode: Predicate): invariant;
15702
- parseElementPredicate(astNode: ElementPredicate): invariant;
15703
- parseElementExpressionsIterator(astNode: ElementExpressionsIterator): invariant[];
15704
- parseElementExpression(astNode: ElementExpression): invariant;
15705
- parseElementPredicateWhere(astNode: ElementPredicateWhere): invariant;
15706
- parseElementPredicateWith(astNode: ElementPredicateWith): invariant;
15707
- parseRelationPredicate(astNode: RelationPredicate): invariant;
15708
- parseRelationPredicateWhere(astNode: RelationPredicateWhere): invariant;
15709
- parseRelationPredicateWith(astNode: RelationPredicateWith, relation: invariant | invariant): invariant;
15710
- parseRelationExpression(astNode: RelationExpression): invariant;
15698
+ parsePredicate(astNode: Predicate): DefaultWeakMap;
15699
+ parseElementPredicate(astNode: ElementPredicate): DefaultWeakMap;
15700
+ parseElementExpressionsIterator(astNode: ElementExpressionsIterator): DefaultWeakMap[];
15701
+ parseElementExpression(astNode: ElementExpression): DefaultWeakMap;
15702
+ parseElementPredicateWhere(astNode: ElementPredicateWhere): DefaultWeakMap;
15703
+ parseElementPredicateWith(astNode: ElementPredicateWith): DefaultWeakMap;
15704
+ parseRelationPredicate(astNode: RelationPredicate): DefaultWeakMap;
15705
+ parseRelationPredicateWhere(astNode: RelationPredicateWhere): DefaultWeakMap;
15706
+ parseRelationPredicateWith(astNode: RelationPredicateWith, relation: DefaultWeakMap | DefaultWeakMap): DefaultWeakMap;
15707
+ parseRelationExpression(astNode: RelationExpression): DefaultWeakMap;
15711
15708
  isValid: IsValidFn;
15712
15709
  readonly services: LikeC4Services;
15713
15710
  readonly doc: ParsedLikeC4LangiumDocument;
15714
- resolveFqn(node: FqnReferenceable): invariant;
15715
- getAstNodePath(node: invariant): any;
15711
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15712
+ getAstNodePath(node: DefaultWeakMap): any;
15716
15713
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15717
15714
  [key: string]: string;
15718
15715
  } | undefined;
@@ -15721,28 +15718,28 @@ declare const DocumentParserFromMixins: {
15721
15718
  }>(withTags?: E | undefined): any;
15722
15719
  parseTags<E extends {
15723
15720
  tags?: Tags;
15724
- }>(withTags?: E): invariant<invariant> | null;
15725
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15726
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15721
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15722
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15723
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15727
15724
  };
15728
15725
  } & {
15729
15726
  new (...args: any[]): {
15730
15727
  parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
15731
- parseDeploymentViewRule(astRule: DeploymentViewRule): invariant;
15732
- parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): invariant;
15733
- parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): invariant;
15734
- parseFqnRef(astNode: FqnRef): invariant;
15735
- parseFqnExpr(astNode: FqnExpr): invariant;
15736
- parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15737
- parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
15738
- parseFqnExpressions(astNode: FqnExpressions): invariant[];
15739
- parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15740
- parseRelationExpr(astNode: RelationExpr): invariant;
15728
+ parseDeploymentViewRule(astRule: DeploymentViewRule): DefaultWeakMap;
15729
+ parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): DefaultWeakMap;
15730
+ parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): DefaultWeakMap;
15731
+ parseFqnRef(astNode: FqnRef): DefaultWeakMap;
15732
+ parseFqnExpr(astNode: FqnExpr): DefaultWeakMap;
15733
+ parseFqnRefExpr(astNode: FqnRefExpr): DefaultWeakMap;
15734
+ parseElementWhereExpr(astNode: ElementPredicateWhereV2): DefaultWeakMap;
15735
+ parseFqnExpressions(astNode: FqnExpressions): DefaultWeakMap[];
15736
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): DefaultWeakMap;
15737
+ parseRelationExpr(astNode: RelationExpr): DefaultWeakMap;
15741
15738
  isValid: IsValidFn;
15742
15739
  readonly services: LikeC4Services;
15743
15740
  readonly doc: ParsedLikeC4LangiumDocument;
15744
- resolveFqn(node: FqnReferenceable): invariant;
15745
- getAstNodePath(node: invariant): any;
15741
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15742
+ getAstNodePath(node: DefaultWeakMap): any;
15746
15743
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15747
15744
  [key: string]: string;
15748
15745
  } | undefined;
@@ -15751,9 +15748,9 @@ declare const DocumentParserFromMixins: {
15751
15748
  }>(withTags?: E | undefined): any;
15752
15749
  parseTags<E extends {
15753
15750
  tags?: Tags;
15754
- }>(withTags?: E): invariant<invariant> | null;
15755
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15756
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15751
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15752
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15753
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15757
15754
  parseDeployment(): void;
15758
15755
  parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
15759
15756
  parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
@@ -15767,18 +15764,18 @@ declare const DocumentParserFromMixins: {
15767
15764
  parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
15768
15765
  parseExtendDeployment(astNode: ExtendDeployment): ParsedAstExtend | null;
15769
15766
  parseDeploymentRelation(astNode: DeploymentRelation): ParsedAstDeploymentRelation;
15770
- parseFqnRef(astNode: FqnRef): invariant;
15771
- parseFqnExpr(astNode: FqnExpr): invariant;
15772
- parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15773
- parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
15774
- parseFqnExpressions(astNode: FqnExpressions): invariant[];
15775
- parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15776
- parseRelationExpr(astNode: RelationExpr): invariant;
15767
+ parseFqnRef(astNode: FqnRef): DefaultWeakMap;
15768
+ parseFqnExpr(astNode: FqnExpr): DefaultWeakMap;
15769
+ parseFqnRefExpr(astNode: FqnRefExpr): DefaultWeakMap;
15770
+ parseElementWhereExpr(astNode: ElementPredicateWhereV2): DefaultWeakMap;
15771
+ parseFqnExpressions(astNode: FqnExpressions): DefaultWeakMap[];
15772
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): DefaultWeakMap;
15773
+ parseRelationExpr(astNode: RelationExpr): DefaultWeakMap;
15777
15774
  isValid: IsValidFn;
15778
15775
  readonly services: LikeC4Services;
15779
15776
  readonly doc: ParsedLikeC4LangiumDocument;
15780
- resolveFqn(node: FqnReferenceable): invariant;
15781
- getAstNodePath(node: invariant): any;
15777
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15778
+ getAstNodePath(node: DefaultWeakMap): any;
15782
15779
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15783
15780
  [key: string]: string;
15784
15781
  } | undefined;
@@ -15787,9 +15784,9 @@ declare const DocumentParserFromMixins: {
15787
15784
  }>(withTags?: E | undefined): any;
15788
15785
  parseTags<E extends {
15789
15786
  tags?: Tags;
15790
- }>(withTags?: E): invariant<invariant> | null;
15791
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15792
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15787
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15788
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15789
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15793
15790
  };
15794
15791
  } & {
15795
15792
  new (...args: any[]): {
@@ -15800,8 +15797,8 @@ declare const DocumentParserFromMixins: {
15800
15797
  isValid: IsValidFn;
15801
15798
  readonly services: LikeC4Services;
15802
15799
  readonly doc: ParsedLikeC4LangiumDocument;
15803
- resolveFqn(node: FqnReferenceable): invariant;
15804
- getAstNodePath(node: invariant): any;
15800
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15801
+ getAstNodePath(node: DefaultWeakMap): any;
15805
15802
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15806
15803
  [key: string]: string;
15807
15804
  } | undefined;
@@ -15810,24 +15807,24 @@ declare const DocumentParserFromMixins: {
15810
15807
  }>(withTags?: E | undefined): any;
15811
15808
  parseTags<E extends {
15812
15809
  tags?: Tags;
15813
- }>(withTags?: E): invariant<invariant> | null;
15814
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15815
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15810
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15811
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15812
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15816
15813
  };
15817
15814
  } & {
15818
15815
  new (...args: any[]): {
15819
- parseFqnRef(astNode: FqnRef): invariant;
15820
- parseFqnExpr(astNode: FqnExpr): invariant;
15821
- parseFqnRefExpr(astNode: FqnRefExpr): invariant;
15822
- parseElementWhereExpr(astNode: ElementPredicateWhereV2): invariant;
15823
- parseFqnExpressions(astNode: FqnExpressions): invariant[];
15824
- parseRelationWhereExpr(astNode: RelationPredicateWhereV2): invariant;
15825
- parseRelationExpr(astNode: RelationExpr): invariant;
15816
+ parseFqnRef(astNode: FqnRef): DefaultWeakMap;
15817
+ parseFqnExpr(astNode: FqnExpr): DefaultWeakMap;
15818
+ parseFqnRefExpr(astNode: FqnRefExpr): DefaultWeakMap;
15819
+ parseElementWhereExpr(astNode: ElementPredicateWhereV2): DefaultWeakMap;
15820
+ parseFqnExpressions(astNode: FqnExpressions): DefaultWeakMap[];
15821
+ parseRelationWhereExpr(astNode: RelationPredicateWhereV2): DefaultWeakMap;
15822
+ parseRelationExpr(astNode: RelationExpr): DefaultWeakMap;
15826
15823
  isValid: IsValidFn;
15827
15824
  readonly services: LikeC4Services;
15828
15825
  readonly doc: ParsedLikeC4LangiumDocument;
15829
- resolveFqn(node: FqnReferenceable): invariant;
15830
- getAstNodePath(node: invariant): any;
15826
+ resolveFqn(node: FqnReferenceable): DefaultWeakMap;
15827
+ getAstNodePath(node: DefaultWeakMap): any;
15831
15828
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15832
15829
  [key: string]: string;
15833
15830
  } | undefined;
@@ -15836,18 +15833,18 @@ declare const DocumentParserFromMixins: {
15836
15833
  }>(withTags?: E | undefined): any;
15837
15834
  parseTags<E extends {
15838
15835
  tags?: Tags;
15839
- }>(withTags?: E): invariant<invariant> | null;
15840
- convertLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15841
- parseLinks(source?: LinkProperty["$container"]): invariant[] | undefined;
15836
+ }>(withTags?: E): DefaultWeakMap<DefaultWeakMap> | null;
15837
+ convertLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15838
+ parseLinks(source?: LinkProperty["$container"]): DefaultWeakMap[] | undefined;
15842
15839
  };
15843
15840
  } & typeof BaseParser;
15844
15841
  declare class DocumentParser extends DocumentParserFromMixins {
15845
15842
  }
15846
15843
  declare class LikeC4ModelParser {
15847
15844
  private services;
15848
- private cachedParsers;
15845
+ protected cachedParsers: any;
15849
15846
  constructor(services: LikeC4Services);
15850
- documents(): Stream<ParsedLikeC4LangiumDocument>;
15847
+ documents(): Stream$1<ParsedLikeC4LangiumDocument>;
15851
15848
  parse(doc: LangiumDocument): ParsedLikeC4LangiumDocument;
15852
15849
  forDocument(doc: LangiumDocument): DocumentParser;
15853
15850
  private createParser;