likec4 1.20.1 → 1.20.3
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/__app__/src/chunks/{-index-overview-B8Ngh4J7.js → -index-overview-TebwYeV7.js} +4 -4
- package/__app__/src/chunks/{index-KI-kE60c.js → index-DrdkNxpF.js} +14 -14
- package/__app__/src/chunks/likec4-D8rQPdul.js +6104 -0
- package/__app__/src/chunks/{main-DwHOiMDD.js → main-DSlxn73B.js} +10801 -10507
- package/__app__/src/chunks/{mantine-B9NZkjVg.js → mantine-D3AsIG-5.js} +740 -740
- package/__app__/src/chunks/tanstack-router-BE0xJAYp.js +3032 -0
- package/__app__/src/main.js +1 -1
- package/__app__/src/style.css +1 -1
- package/__app__/webcomponent/webcomponent.js +5638 -5261
- package/dist/chunks/prompt.cjs +40 -40
- package/dist/chunks/prompt.mjs +42 -42
- package/dist/cli/index.cjs +70 -68
- package/dist/cli/index.mjs +109 -107
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +56 -645
- package/dist/index.d.mts +56 -645
- package/dist/index.d.ts +56 -645
- package/dist/index.mjs +1 -1
- package/dist/shared/likec4.32ndthTo.cjs +1855 -0
- package/dist/shared/likec4.BgEQuI_b.mjs +1855 -0
- package/package.json +25 -22
- package/react/index.d.ts +47 -5
- package/react/index.js +5404 -5019
- package/react/style.css +1 -1
- package/__app__/src/chunks/likec4-CK8zVxjc.js +0 -6069
- package/__app__/src/chunks/tanstack-router-B9I-d36d.js +0 -3032
- package/dist/shared/likec4.Buej2FfJ.mjs +0 -1857
- package/dist/shared/likec4.pZxbrzrY.cjs +0 -1857
package/dist/index.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ type LSPObject = object;
|
|
|
101
101
|
*
|
|
102
102
|
* @since 3.17.0 - support for negotiated position encoding.
|
|
103
103
|
*/
|
|
104
|
-
interface Position$
|
|
104
|
+
interface Position$1 {
|
|
105
105
|
/**
|
|
106
106
|
* Line position in a document (zero-based).
|
|
107
107
|
*
|
|
@@ -124,17 +124,17 @@ interface Position$2 {
|
|
|
124
124
|
* The Position namespace provides helper functions to work with
|
|
125
125
|
* {@link Position} literals.
|
|
126
126
|
*/
|
|
127
|
-
declare namespace Position$
|
|
127
|
+
declare namespace Position$1 {
|
|
128
128
|
/**
|
|
129
129
|
* Creates a new Position literal from the given line and character.
|
|
130
130
|
* @param line The position's line.
|
|
131
131
|
* @param character The position's character.
|
|
132
132
|
*/
|
|
133
|
-
function create(line: uinteger, character: uinteger): Position$
|
|
133
|
+
function create(line: uinteger, character: uinteger): Position$1;
|
|
134
134
|
/**
|
|
135
135
|
* Checks whether the given literal conforms to the {@link Position} interface.
|
|
136
136
|
*/
|
|
137
|
-
function is(value: any): value is Position$
|
|
137
|
+
function is(value: any): value is Position$1;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* A range in a text document expressed as (zero-based) start and end positions.
|
|
@@ -153,11 +153,11 @@ interface Range$1 {
|
|
|
153
153
|
/**
|
|
154
154
|
* The range's start position.
|
|
155
155
|
*/
|
|
156
|
-
start: Position$
|
|
156
|
+
start: Position$1;
|
|
157
157
|
/**
|
|
158
158
|
* The range's end position.
|
|
159
159
|
*/
|
|
160
|
-
end: Position$
|
|
160
|
+
end: Position$1;
|
|
161
161
|
}
|
|
162
162
|
/**
|
|
163
163
|
* The Range namespace provides helper functions to work with
|
|
@@ -169,7 +169,7 @@ declare namespace Range$1 {
|
|
|
169
169
|
* @param start The range's start position.
|
|
170
170
|
* @param end The range's end position.
|
|
171
171
|
*/
|
|
172
|
-
function create(start: Position$
|
|
172
|
+
function create(start: Position$1, end: Position$1): Range$1;
|
|
173
173
|
/**
|
|
174
174
|
* Create a new Range literal.
|
|
175
175
|
* @param startLine The start line number.
|
|
@@ -648,7 +648,7 @@ declare namespace TextEdit$1 {
|
|
|
648
648
|
* @param position The position to insert the text at.
|
|
649
649
|
* @param newText The text to be inserted.
|
|
650
650
|
*/
|
|
651
|
-
function insert(position: Position$
|
|
651
|
+
function insert(position: Position$1, newText: string): TextEdit$1;
|
|
652
652
|
/**
|
|
653
653
|
* Creates a delete text edit.
|
|
654
654
|
* @param range The range of text to be deleted.
|
|
@@ -716,7 +716,7 @@ declare namespace AnnotatedTextEdit {
|
|
|
716
716
|
* @param newText The text to be inserted.
|
|
717
717
|
* @param annotation The annotation.
|
|
718
718
|
*/
|
|
719
|
-
function insert(position: Position$
|
|
719
|
+
function insert(position: Position$1, newText: string, annotation: ChangeAnnotationIdentifier): AnnotatedTextEdit;
|
|
720
720
|
/**
|
|
721
721
|
* Creates an annotated delete text edit.
|
|
722
722
|
*
|
|
@@ -1679,7 +1679,7 @@ type DefinitionLink = LocationLink;
|
|
|
1679
1679
|
/**
|
|
1680
1680
|
* The declaration of a symbol representation as one or many {@link Location locations}.
|
|
1681
1681
|
*/
|
|
1682
|
-
type Declaration
|
|
1682
|
+
type Declaration = Location | Location[];
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Information about where a symbol is declared.
|
|
1685
1685
|
*
|
|
@@ -2728,7 +2728,7 @@ type InlayHint = {
|
|
|
2728
2728
|
/**
|
|
2729
2729
|
* The position of this hint.
|
|
2730
2730
|
*/
|
|
2731
|
-
position: Position$
|
|
2731
|
+
position: Position$1;
|
|
2732
2732
|
/**
|
|
2733
2733
|
* The label of this hint. A human readable string or an array of
|
|
2734
2734
|
* InlayHintLabelPart label parts.
|
|
@@ -2776,7 +2776,7 @@ type InlayHint = {
|
|
|
2776
2776
|
data?: LSPAny;
|
|
2777
2777
|
};
|
|
2778
2778
|
declare namespace InlayHint {
|
|
2779
|
-
function create(position: Position$
|
|
2779
|
+
function create(position: Position$1, label: string | InlayHintLabelPart[], kind?: InlayHintKind): InlayHint;
|
|
2780
2780
|
function is(value: any): value is InlayHint;
|
|
2781
2781
|
}
|
|
2782
2782
|
/**
|
|
@@ -4962,7 +4962,7 @@ type DocumentUri = string;
|
|
|
4962
4962
|
* Positions are line end character agnostic. So you can not specify a position that
|
|
4963
4963
|
* denotes `\r|\n` or `\n|` where `|` represents the character offset.
|
|
4964
4964
|
*/
|
|
4965
|
-
interface Position
|
|
4965
|
+
interface Position {
|
|
4966
4966
|
/**
|
|
4967
4967
|
* Line position in a document (zero-based).
|
|
4968
4968
|
*
|
|
@@ -5001,11 +5001,11 @@ interface Range {
|
|
|
5001
5001
|
/**
|
|
5002
5002
|
* The range's start position.
|
|
5003
5003
|
*/
|
|
5004
|
-
start: Position
|
|
5004
|
+
start: Position;
|
|
5005
5005
|
/**
|
|
5006
5006
|
* The range's end position.
|
|
5007
5007
|
*/
|
|
5008
|
-
end: Position
|
|
5008
|
+
end: Position;
|
|
5009
5009
|
}
|
|
5010
5010
|
/**
|
|
5011
5011
|
* A text edit applicable to a text document.
|
|
@@ -5100,7 +5100,7 @@ interface TextDocument {
|
|
|
5100
5100
|
* * position { line: 1, character: 0 } for `offset` 3.
|
|
5101
5101
|
* * position { line: 1, character: 1 } for `offset` 4.
|
|
5102
5102
|
*/
|
|
5103
|
-
positionAt(offset: number): Position
|
|
5103
|
+
positionAt(offset: number): Position;
|
|
5104
5104
|
/**
|
|
5105
5105
|
* Converts the position to a zero-based offset.
|
|
5106
5106
|
* Invalid positions are adjusted as described in {@link Position.line}
|
|
@@ -5109,7 +5109,7 @@ interface TextDocument {
|
|
|
5109
5109
|
* @param position A position.
|
|
5110
5110
|
* @return A valid zero-based offset.
|
|
5111
5111
|
*/
|
|
5112
|
-
offsetAt(position: Position
|
|
5112
|
+
offsetAt(position: Position): number;
|
|
5113
5113
|
/**
|
|
5114
5114
|
* The number of lines in this document.
|
|
5115
5115
|
*
|
|
@@ -5504,7 +5504,7 @@ interface BaseParser$1 {
|
|
|
5504
5504
|
* Requires a unique index within the rule for a specific sub rule.
|
|
5505
5505
|
* Arguments can be supplied to the rule invocation for semantic predicates
|
|
5506
5506
|
*/
|
|
5507
|
-
subrule(idx: number, rule: RuleResult, feature: AbstractElement, args: Args): void;
|
|
5507
|
+
subrule(idx: number, rule: RuleResult, fragment: boolean, feature: AbstractElement, args: Args): void;
|
|
5508
5508
|
/**
|
|
5509
5509
|
* Executes a grammar action that modifies the currently active AST node
|
|
5510
5510
|
*/
|
|
@@ -5542,7 +5542,7 @@ declare abstract class AbstractLangiumParser implements BaseParser$1 {
|
|
|
5542
5542
|
atLeastOne(idx: number, callback: DSLMethodOpts<unknown>): void;
|
|
5543
5543
|
abstract rule(rule: ParserRule, impl: RuleImpl): RuleResult;
|
|
5544
5544
|
abstract consume(idx: number, tokenType: TokenType, feature: AbstractElement): void;
|
|
5545
|
-
abstract subrule(idx: number, rule: RuleResult, feature: AbstractElement, args: Args): void;
|
|
5545
|
+
abstract subrule(idx: number, rule: RuleResult, fragment: boolean, feature: AbstractElement, args: Args): void;
|
|
5546
5546
|
abstract action($type: string, action: Action): void;
|
|
5547
5547
|
abstract construct(): unknown;
|
|
5548
5548
|
getRule(name: string): RuleResult | undefined;
|
|
@@ -5559,6 +5559,7 @@ declare class LangiumParser extends AbstractLangiumParser {
|
|
|
5559
5559
|
private readonly converter;
|
|
5560
5560
|
private readonly astReflection;
|
|
5561
5561
|
private readonly nodeBuilder;
|
|
5562
|
+
private lexerResult?;
|
|
5562
5563
|
private stack;
|
|
5563
5564
|
private assignmentMap;
|
|
5564
5565
|
private get current();
|
|
@@ -5567,6 +5568,7 @@ declare class LangiumParser extends AbstractLangiumParser {
|
|
|
5567
5568
|
private computeRuleType;
|
|
5568
5569
|
parse<T extends AstNode = AstNode>(input: string, options?: ParserOptions): ParseResult<T>;
|
|
5569
5570
|
private startImplementation;
|
|
5571
|
+
private extractHiddenTokens;
|
|
5570
5572
|
consume(idx: number, tokenType: TokenType, feature: AbstractElement): void;
|
|
5571
5573
|
/**
|
|
5572
5574
|
* Most consumed parser tokens are valid. However there are two cases in which they are not valid:
|
|
@@ -5575,7 +5577,7 @@ declare class LangiumParser extends AbstractLangiumParser {
|
|
|
5575
5577
|
* 2. They contain invalid token ranges. This might include the special EOF token, or other tokens produced by invalid token builders.
|
|
5576
5578
|
*/
|
|
5577
5579
|
private isValidToken;
|
|
5578
|
-
subrule(idx: number, rule: RuleResult, feature: AbstractElement, args: Args): void;
|
|
5580
|
+
subrule(idx: number, rule: RuleResult, fragment: boolean, feature: AbstractElement, args: Args): void;
|
|
5579
5581
|
private performSubruleAssignment;
|
|
5580
5582
|
action($type: string, action: Action): void;
|
|
5581
5583
|
construct(): unknown;
|
|
@@ -5610,7 +5612,7 @@ declare class LangiumCompletionParser extends AbstractLangiumParser {
|
|
|
5610
5612
|
keepStackSize(): number;
|
|
5611
5613
|
resetStackSize(size: number): void;
|
|
5612
5614
|
consume(idx: number, tokenType: TokenType, feature: AbstractElement): void;
|
|
5613
|
-
subrule(idx: number, rule: RuleResult, feature: AbstractElement, args: Args): void;
|
|
5615
|
+
subrule(idx: number, rule: RuleResult, fragment: boolean, feature: AbstractElement, args: Args): void;
|
|
5614
5616
|
before(element: AbstractElement): void;
|
|
5615
5617
|
after(element: AbstractElement): void;
|
|
5616
5618
|
get currIdx(): number;
|
|
@@ -6121,9 +6123,9 @@ interface CstNode extends DocumentSegment {
|
|
|
6121
6123
|
/** The root CST node */
|
|
6122
6124
|
readonly root: RootCstNode;
|
|
6123
6125
|
/** The grammar element from which this node was parsed */
|
|
6124
|
-
readonly grammarSource
|
|
6126
|
+
readonly grammarSource?: AbstractElement;
|
|
6125
6127
|
/** @deprecated use `grammarSource` instead. */
|
|
6126
|
-
readonly feature
|
|
6128
|
+
readonly feature?: AbstractElement;
|
|
6127
6129
|
/** The AST node created from this CST node */
|
|
6128
6130
|
readonly astNode: AstNode;
|
|
6129
6131
|
/** @deprecated use `astNode` instead. */
|
|
@@ -7515,7 +7517,7 @@ interface SelectionRangeParams extends WorkDoneProgressParams, PartialResultPara
|
|
|
7515
7517
|
/**
|
|
7516
7518
|
* The positions inside the text document.
|
|
7517
7519
|
*/
|
|
7518
|
-
positions: Position$
|
|
7520
|
+
positions: Position$1[];
|
|
7519
7521
|
}
|
|
7520
7522
|
|
|
7521
7523
|
/**
|
|
@@ -9175,7 +9177,7 @@ interface TextDocumentPositionParams {
|
|
|
9175
9177
|
/**
|
|
9176
9178
|
* The position inside the text document.
|
|
9177
9179
|
*/
|
|
9178
|
-
position: Position$
|
|
9180
|
+
position: Position$1;
|
|
9179
9181
|
}
|
|
9180
9182
|
/**
|
|
9181
9183
|
* The kind of resource operations supported by the client.
|
|
@@ -11266,7 +11268,7 @@ interface DocumentOnTypeFormattingParams {
|
|
|
11266
11268
|
* This is not necessarily the exact position where the character denoted
|
|
11267
11269
|
* by the property `ch` got typed.
|
|
11268
11270
|
*/
|
|
11269
|
-
position: Position$
|
|
11271
|
+
position: Position$1;
|
|
11270
11272
|
/**
|
|
11271
11273
|
* The character that has been typed that triggered the formatting
|
|
11272
11274
|
* on type request. That is not necessarily the last character that
|
|
@@ -11343,7 +11345,7 @@ interface RenameParams extends WorkDoneProgressParams {
|
|
|
11343
11345
|
/**
|
|
11344
11346
|
* The position at which this request was sent.
|
|
11345
11347
|
*/
|
|
11346
|
-
position: Position$
|
|
11348
|
+
position: Position$1;
|
|
11347
11349
|
/**
|
|
11348
11350
|
* The new name of the symbol. If the given name is not valid the
|
|
11349
11351
|
* request must return a {@link ResponseError} with an
|
|
@@ -12688,7 +12690,7 @@ interface _Connection<PConsole = _, PTracer = _, PTelemetry = _, PClient = _, PW
|
|
|
12688
12690
|
*
|
|
12689
12691
|
* @param handler The corresponding handler.
|
|
12690
12692
|
*/
|
|
12691
|
-
onDeclaration(handler: ServerRequestHandler<DeclarationParams, Declaration
|
|
12693
|
+
onDeclaration(handler: ServerRequestHandler<DeclarationParams, Declaration | DeclarationLink[] | undefined | null, Location[] | DeclarationLink[], void>): Disposable$1;
|
|
12692
12694
|
/**
|
|
12693
12695
|
* Installs a handler for the `Definition` request.
|
|
12694
12696
|
*
|
|
@@ -13760,7 +13762,7 @@ interface CompletionContext {
|
|
|
13760
13762
|
* Index of the requested completed position.
|
|
13761
13763
|
*/
|
|
13762
13764
|
offset: number;
|
|
13763
|
-
position: Position$
|
|
13765
|
+
position: Position$1;
|
|
13764
13766
|
}
|
|
13765
13767
|
interface CompletionProviderOptions$1 {
|
|
13766
13768
|
/**
|
|
@@ -13833,7 +13835,7 @@ declare class DefaultCompletionProvider implements CompletionProvider {
|
|
|
13833
13835
|
*/
|
|
13834
13836
|
protected deduplicateItems(items: CompletionItem[]): CompletionItem[];
|
|
13835
13837
|
protected findFeaturesAt(document: TextDocument, offset: number): NextFeature[];
|
|
13836
|
-
protected buildContexts(document: LangiumDocument, position: Position$
|
|
13838
|
+
protected buildContexts(document: LangiumDocument, position: Position$1): IterableIterator<CompletionContext>;
|
|
13837
13839
|
protected performNextTokenCompletion(document: LangiumDocument, text: string, _offset: number, _end: number): boolean;
|
|
13838
13840
|
protected findDataTypeRuleStart(cst: CstNode, offset: number): [number, number] | undefined;
|
|
13839
13841
|
/**
|
|
@@ -13921,6 +13923,7 @@ declare class LikeC4DocumentLinkProvider implements DocumentLinkProvider {
|
|
|
13921
13923
|
******************************************************************************/
|
|
13922
13924
|
|
|
13923
13925
|
type ArrowType = 'crow' | 'diamond' | 'dot' | 'none' | 'normal' | 'odiamond' | 'odot' | 'onormal' | 'open' | 'vee';
|
|
13926
|
+
type Boolean = boolean;
|
|
13924
13927
|
type BorderStyleValue = 'none' | LineOptions;
|
|
13925
13928
|
type CustomColorId = 'element' | 'model' | ArrowType | ElementShape | LineOptions | string;
|
|
13926
13929
|
type CustomColorValue = string;
|
|
@@ -13975,7 +13978,7 @@ type RelationshipStyleProperty = ArrowProperty | ColorProperty | LineProperty;
|
|
|
13975
13978
|
declare const RelationshipStyleProperty = "RelationshipStyleProperty";
|
|
13976
13979
|
type StringProperty = ElementStringProperty | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
|
|
13977
13980
|
declare const StringProperty = "StringProperty";
|
|
13978
|
-
type StyleProperty = BorderProperty | ColorProperty | IconProperty | OpacityProperty | ShapeProperty;
|
|
13981
|
+
type StyleProperty = BorderProperty | ColorProperty | IconProperty | MultipleProperty | OpacityProperty | ShapeProperty;
|
|
13979
13982
|
declare const StyleProperty = "StyleProperty";
|
|
13980
13983
|
type ThemeColor = 'amber' | 'blue' | 'gray' | 'green' | 'indigo' | 'muted' | 'primary' | 'red' | 'secondary' | 'sky' | 'slate';
|
|
13981
13984
|
type Uri = string;
|
|
@@ -14523,6 +14526,13 @@ interface ModelViews extends AstNode {
|
|
|
14523
14526
|
views: Array<LikeC4View>;
|
|
14524
14527
|
}
|
|
14525
14528
|
declare const ModelViews = "ModelViews";
|
|
14529
|
+
interface MultipleProperty extends AstNode {
|
|
14530
|
+
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
14531
|
+
readonly $type: 'MultipleProperty';
|
|
14532
|
+
key: 'multiple';
|
|
14533
|
+
value: Boolean;
|
|
14534
|
+
}
|
|
14535
|
+
declare const MultipleProperty = "MultipleProperty";
|
|
14526
14536
|
interface NavigateToProperty extends AstNode {
|
|
14527
14537
|
readonly $container: CustomElementProperties;
|
|
14528
14538
|
readonly $type: 'NavigateToProperty';
|
|
@@ -14931,6 +14941,7 @@ type LikeC4AstType = {
|
|
|
14931
14941
|
Model: Model;
|
|
14932
14942
|
ModelDeployments: ModelDeployments;
|
|
14933
14943
|
ModelViews: ModelViews;
|
|
14944
|
+
MultipleProperty: MultipleProperty;
|
|
14934
14945
|
NavigateToProperty: NavigateToProperty;
|
|
14935
14946
|
NotationProperty: NotationProperty;
|
|
14936
14947
|
NotesProperty: NotesProperty;
|
|
@@ -15001,7 +15012,7 @@ type LikeC4AstType = {
|
|
|
15001
15012
|
|
|
15002
15013
|
type Guard<N extends AstNode> = (n: AstNode) => n is N;
|
|
15003
15014
|
type Guarded<G> = G extends Guard<infer N> ? N : never;
|
|
15004
|
-
declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression | ElementPredicateWhere | ElementPredicateWith | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | FqnRefExpr | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationPredicateWhereV2 | Element | ExtendElement | DeploymentView | DynamicView | ElementView | DirectedRelationExpression | InOutRelationExpression | IncomingRelationExpression | OutgoingRelationExpression | RelationPredicateWhere | RelationPredicateWith | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ExcludePredicate | IncludePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | Tags | DeploymentRelation | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | DynamicViewPredicateIterator | Relation | SpecificationElementKind | GlobalPredicateGroup | Globals | GlobalStyleGroup | SpecificationRule | SpecificationTag;
|
|
15015
|
+
declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementDescedantsExpression | ElementKindExpression | ElementRef | ElementTagExpression | ExpandElementExpression | WildcardExpression | ElementPredicateWhere | ElementPredicateWith | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | FqnRefExpr | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationPredicateWhereV2 | Element | ExtendElement | DeploymentView | DynamicView | ElementView | DirectedRelationExpression | InOutRelationExpression | IncomingRelationExpression | OutgoingRelationExpression | RelationPredicateWhere | RelationPredicateWith | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ExcludePredicate | IncludePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | Tags | DeploymentRelation | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | DynamicViewPredicateIterator | Relation | SpecificationElementKind | GlobalPredicateGroup | Globals | GlobalStyleGroup | SpecificationRule | SpecificationTag;
|
|
15005
15016
|
type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
|
|
15006
15017
|
declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
|
|
15007
15018
|
isValid: (n: ValidatableAstNode) => boolean;
|
|
@@ -15037,6 +15048,7 @@ type ParsedElementStyle = {
|
|
|
15037
15048
|
color?: c4.Color;
|
|
15038
15049
|
border?: c4.BorderStyle;
|
|
15039
15050
|
opacity?: number;
|
|
15051
|
+
multiple?: boolean;
|
|
15040
15052
|
};
|
|
15041
15053
|
interface ParsedAstSpecification {
|
|
15042
15054
|
tags: Set<c4.Tag>;
|
|
@@ -15208,6 +15220,7 @@ declare class DeploymentsIndex {
|
|
|
15208
15220
|
private services;
|
|
15209
15221
|
protected Names: LikeC4NameProvider;
|
|
15210
15222
|
protected langiumDocuments: LangiumDocuments;
|
|
15223
|
+
protected documentCache: DocumentCache<string, DocumentDeploymentsIndex>;
|
|
15211
15224
|
constructor(services: LikeC4Services);
|
|
15212
15225
|
private documents;
|
|
15213
15226
|
get(document: LikeC4LangiumDocument): DocumentDeploymentsIndex;
|
|
@@ -15259,7 +15272,15 @@ declare class DocumentDeploymentsIndex {
|
|
|
15259
15272
|
unique(): readonly DeploymentAstNodeDescription[];
|
|
15260
15273
|
}
|
|
15261
15274
|
|
|
15262
|
-
declare class
|
|
15275
|
+
declare abstract class ADisposable implements Disposable {
|
|
15276
|
+
protected toDispose: Disposable[];
|
|
15277
|
+
protected isDisposed: boolean;
|
|
15278
|
+
onDispose(...disposable: Disposable[]): void;
|
|
15279
|
+
dispose(): void;
|
|
15280
|
+
protected throwIfDisposed(): void;
|
|
15281
|
+
}
|
|
15282
|
+
|
|
15283
|
+
declare class FqnIndex extends ADisposable {
|
|
15263
15284
|
private services;
|
|
15264
15285
|
protected langiumDocuments: LangiumDocuments;
|
|
15265
15286
|
constructor(services: LikeC4Services);
|
|
@@ -15275,7 +15296,7 @@ declare class FqnIndex {
|
|
|
15275
15296
|
}
|
|
15276
15297
|
|
|
15277
15298
|
type ModelParsedListener = (docs: URI[]) => void;
|
|
15278
|
-
declare class LikeC4ModelBuilder {
|
|
15299
|
+
declare class LikeC4ModelBuilder extends ADisposable {
|
|
15279
15300
|
private services;
|
|
15280
15301
|
private langiumDocuments;
|
|
15281
15302
|
private listeners;
|
|
@@ -15687,12 +15708,10 @@ declare class LikeC4ModelChanges {
|
|
|
15687
15708
|
};
|
|
15688
15709
|
}
|
|
15689
15710
|
|
|
15690
|
-
declare class Rpc
|
|
15711
|
+
declare class Rpc extends ADisposable {
|
|
15691
15712
|
private services;
|
|
15692
|
-
private disposables;
|
|
15693
15713
|
constructor(services: LikeC4Services);
|
|
15694
15714
|
init(): void;
|
|
15695
|
-
dispose(): void;
|
|
15696
15715
|
}
|
|
15697
15716
|
|
|
15698
15717
|
declare class NodeKindProvider implements NodeKindProvider$1 {
|
|
@@ -15796,614 +15815,6 @@ interface LikeC4AddedServices {
|
|
|
15796
15815
|
}
|
|
15797
15816
|
type LikeC4Services = LangiumServices & LikeC4AddedServices;
|
|
15798
15817
|
|
|
15799
|
-
// This definition file follows a somewhat unusual format. ESTree allows
|
|
15800
|
-
// runtime type checks based on the `type` parameter. In order to explain this
|
|
15801
|
-
// to typescript we want to use discriminated union types:
|
|
15802
|
-
// https://github.com/Microsoft/TypeScript/pull/9163
|
|
15803
|
-
//
|
|
15804
|
-
// For ESTree this is a bit tricky because the high level interfaces like
|
|
15805
|
-
// Node or Function are pulling double duty. We want to pass common fields down
|
|
15806
|
-
// to the interfaces that extend them (like Identifier or
|
|
15807
|
-
// ArrowFunctionExpression), but you can't extend a type union or enforce
|
|
15808
|
-
// common fields on them. So we've split the high level interfaces into two
|
|
15809
|
-
// types, a base type which passes down inherited fields, and a type union of
|
|
15810
|
-
// all types which extend the base type. Only the type union is exported, and
|
|
15811
|
-
// the union is how other types refer to the collection of inheriting types.
|
|
15812
|
-
//
|
|
15813
|
-
// This makes the definitions file here somewhat more difficult to maintain,
|
|
15814
|
-
// but it has the notable advantage of making ESTree much easier to use as
|
|
15815
|
-
// an end user.
|
|
15816
|
-
|
|
15817
|
-
interface BaseNodeWithoutComments {
|
|
15818
|
-
// Every leaf interface that extends BaseNode must specify a type property.
|
|
15819
|
-
// The type property should be a string literal. For example, Identifier
|
|
15820
|
-
// has: `type: "Identifier"`
|
|
15821
|
-
type: string;
|
|
15822
|
-
loc?: SourceLocation | null | undefined;
|
|
15823
|
-
range?: [number, number] | undefined;
|
|
15824
|
-
}
|
|
15825
|
-
|
|
15826
|
-
interface BaseNode extends BaseNodeWithoutComments {
|
|
15827
|
-
leadingComments?: Comment[] | undefined;
|
|
15828
|
-
trailingComments?: Comment[] | undefined;
|
|
15829
|
-
}
|
|
15830
|
-
|
|
15831
|
-
interface Comment extends BaseNodeWithoutComments {
|
|
15832
|
-
type: "Line" | "Block";
|
|
15833
|
-
value: string;
|
|
15834
|
-
}
|
|
15835
|
-
|
|
15836
|
-
interface SourceLocation {
|
|
15837
|
-
source?: string | null | undefined;
|
|
15838
|
-
start: Position;
|
|
15839
|
-
end: Position;
|
|
15840
|
-
}
|
|
15841
|
-
|
|
15842
|
-
interface Position {
|
|
15843
|
-
/** >= 1 */
|
|
15844
|
-
line: number;
|
|
15845
|
-
/** >= 0 */
|
|
15846
|
-
column: number;
|
|
15847
|
-
}
|
|
15848
|
-
|
|
15849
|
-
interface BaseFunction extends BaseNode {
|
|
15850
|
-
params: Pattern[];
|
|
15851
|
-
generator?: boolean | undefined;
|
|
15852
|
-
async?: boolean | undefined;
|
|
15853
|
-
// The body is either BlockStatement or Expression because arrow functions
|
|
15854
|
-
// can have a body that's either. FunctionDeclarations and
|
|
15855
|
-
// FunctionExpressions have only BlockStatement bodies.
|
|
15856
|
-
body: BlockStatement | Expression;
|
|
15857
|
-
}
|
|
15858
|
-
|
|
15859
|
-
type Statement =
|
|
15860
|
-
| ExpressionStatement
|
|
15861
|
-
| BlockStatement
|
|
15862
|
-
| StaticBlock
|
|
15863
|
-
| EmptyStatement
|
|
15864
|
-
| DebuggerStatement
|
|
15865
|
-
| WithStatement
|
|
15866
|
-
| ReturnStatement
|
|
15867
|
-
| LabeledStatement
|
|
15868
|
-
| BreakStatement
|
|
15869
|
-
| ContinueStatement
|
|
15870
|
-
| IfStatement
|
|
15871
|
-
| SwitchStatement
|
|
15872
|
-
| ThrowStatement
|
|
15873
|
-
| TryStatement
|
|
15874
|
-
| WhileStatement
|
|
15875
|
-
| DoWhileStatement
|
|
15876
|
-
| ForStatement
|
|
15877
|
-
| ForInStatement
|
|
15878
|
-
| ForOfStatement
|
|
15879
|
-
| Declaration;
|
|
15880
|
-
|
|
15881
|
-
interface BaseStatement extends BaseNode {}
|
|
15882
|
-
|
|
15883
|
-
interface EmptyStatement extends BaseStatement {
|
|
15884
|
-
type: "EmptyStatement";
|
|
15885
|
-
}
|
|
15886
|
-
|
|
15887
|
-
interface BlockStatement extends BaseStatement {
|
|
15888
|
-
type: "BlockStatement";
|
|
15889
|
-
body: Statement[];
|
|
15890
|
-
innerComments?: Comment[] | undefined;
|
|
15891
|
-
}
|
|
15892
|
-
|
|
15893
|
-
interface StaticBlock extends Omit<BlockStatement, "type"> {
|
|
15894
|
-
type: "StaticBlock";
|
|
15895
|
-
}
|
|
15896
|
-
|
|
15897
|
-
interface ExpressionStatement extends BaseStatement {
|
|
15898
|
-
type: "ExpressionStatement";
|
|
15899
|
-
expression: Expression;
|
|
15900
|
-
}
|
|
15901
|
-
|
|
15902
|
-
interface IfStatement extends BaseStatement {
|
|
15903
|
-
type: "IfStatement";
|
|
15904
|
-
test: Expression;
|
|
15905
|
-
consequent: Statement;
|
|
15906
|
-
alternate?: Statement | null | undefined;
|
|
15907
|
-
}
|
|
15908
|
-
|
|
15909
|
-
interface LabeledStatement extends BaseStatement {
|
|
15910
|
-
type: "LabeledStatement";
|
|
15911
|
-
label: Identifier;
|
|
15912
|
-
body: Statement;
|
|
15913
|
-
}
|
|
15914
|
-
|
|
15915
|
-
interface BreakStatement extends BaseStatement {
|
|
15916
|
-
type: "BreakStatement";
|
|
15917
|
-
label?: Identifier | null | undefined;
|
|
15918
|
-
}
|
|
15919
|
-
|
|
15920
|
-
interface ContinueStatement extends BaseStatement {
|
|
15921
|
-
type: "ContinueStatement";
|
|
15922
|
-
label?: Identifier | null | undefined;
|
|
15923
|
-
}
|
|
15924
|
-
|
|
15925
|
-
interface WithStatement extends BaseStatement {
|
|
15926
|
-
type: "WithStatement";
|
|
15927
|
-
object: Expression;
|
|
15928
|
-
body: Statement;
|
|
15929
|
-
}
|
|
15930
|
-
|
|
15931
|
-
interface SwitchStatement extends BaseStatement {
|
|
15932
|
-
type: "SwitchStatement";
|
|
15933
|
-
discriminant: Expression;
|
|
15934
|
-
cases: SwitchCase[];
|
|
15935
|
-
}
|
|
15936
|
-
|
|
15937
|
-
interface ReturnStatement extends BaseStatement {
|
|
15938
|
-
type: "ReturnStatement";
|
|
15939
|
-
argument?: Expression | null | undefined;
|
|
15940
|
-
}
|
|
15941
|
-
|
|
15942
|
-
interface ThrowStatement extends BaseStatement {
|
|
15943
|
-
type: "ThrowStatement";
|
|
15944
|
-
argument: Expression;
|
|
15945
|
-
}
|
|
15946
|
-
|
|
15947
|
-
interface TryStatement extends BaseStatement {
|
|
15948
|
-
type: "TryStatement";
|
|
15949
|
-
block: BlockStatement;
|
|
15950
|
-
handler?: CatchClause | null | undefined;
|
|
15951
|
-
finalizer?: BlockStatement | null | undefined;
|
|
15952
|
-
}
|
|
15953
|
-
|
|
15954
|
-
interface WhileStatement extends BaseStatement {
|
|
15955
|
-
type: "WhileStatement";
|
|
15956
|
-
test: Expression;
|
|
15957
|
-
body: Statement;
|
|
15958
|
-
}
|
|
15959
|
-
|
|
15960
|
-
interface DoWhileStatement extends BaseStatement {
|
|
15961
|
-
type: "DoWhileStatement";
|
|
15962
|
-
body: Statement;
|
|
15963
|
-
test: Expression;
|
|
15964
|
-
}
|
|
15965
|
-
|
|
15966
|
-
interface ForStatement extends BaseStatement {
|
|
15967
|
-
type: "ForStatement";
|
|
15968
|
-
init?: VariableDeclaration | Expression | null | undefined;
|
|
15969
|
-
test?: Expression | null | undefined;
|
|
15970
|
-
update?: Expression | null | undefined;
|
|
15971
|
-
body: Statement;
|
|
15972
|
-
}
|
|
15973
|
-
|
|
15974
|
-
interface BaseForXStatement extends BaseStatement {
|
|
15975
|
-
left: VariableDeclaration | Pattern;
|
|
15976
|
-
right: Expression;
|
|
15977
|
-
body: Statement;
|
|
15978
|
-
}
|
|
15979
|
-
|
|
15980
|
-
interface ForInStatement extends BaseForXStatement {
|
|
15981
|
-
type: "ForInStatement";
|
|
15982
|
-
}
|
|
15983
|
-
|
|
15984
|
-
interface DebuggerStatement extends BaseStatement {
|
|
15985
|
-
type: "DebuggerStatement";
|
|
15986
|
-
}
|
|
15987
|
-
|
|
15988
|
-
type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
|
|
15989
|
-
|
|
15990
|
-
interface BaseDeclaration extends BaseStatement {}
|
|
15991
|
-
|
|
15992
|
-
interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration {
|
|
15993
|
-
type: "FunctionDeclaration";
|
|
15994
|
-
/** It is null when a function declaration is a part of the `export default function` statement */
|
|
15995
|
-
id: Identifier | null;
|
|
15996
|
-
body: BlockStatement;
|
|
15997
|
-
}
|
|
15998
|
-
|
|
15999
|
-
interface FunctionDeclaration extends MaybeNamedFunctionDeclaration {
|
|
16000
|
-
id: Identifier;
|
|
16001
|
-
}
|
|
16002
|
-
|
|
16003
|
-
interface VariableDeclaration extends BaseDeclaration {
|
|
16004
|
-
type: "VariableDeclaration";
|
|
16005
|
-
declarations: VariableDeclarator[];
|
|
16006
|
-
kind: "var" | "let" | "const";
|
|
16007
|
-
}
|
|
16008
|
-
|
|
16009
|
-
interface VariableDeclarator extends BaseNode {
|
|
16010
|
-
type: "VariableDeclarator";
|
|
16011
|
-
id: Pattern;
|
|
16012
|
-
init?: Expression | null | undefined;
|
|
16013
|
-
}
|
|
16014
|
-
|
|
16015
|
-
interface ExpressionMap {
|
|
16016
|
-
ArrayExpression: ArrayExpression;
|
|
16017
|
-
ArrowFunctionExpression: ArrowFunctionExpression;
|
|
16018
|
-
AssignmentExpression: AssignmentExpression;
|
|
16019
|
-
AwaitExpression: AwaitExpression;
|
|
16020
|
-
BinaryExpression: BinaryExpression;
|
|
16021
|
-
CallExpression: CallExpression;
|
|
16022
|
-
ChainExpression: ChainExpression;
|
|
16023
|
-
ClassExpression: ClassExpression;
|
|
16024
|
-
ConditionalExpression: ConditionalExpression;
|
|
16025
|
-
FunctionExpression: FunctionExpression;
|
|
16026
|
-
Identifier: Identifier;
|
|
16027
|
-
ImportExpression: ImportExpression;
|
|
16028
|
-
Literal: Literal;
|
|
16029
|
-
LogicalExpression: LogicalExpression;
|
|
16030
|
-
MemberExpression: MemberExpression;
|
|
16031
|
-
MetaProperty: MetaProperty;
|
|
16032
|
-
NewExpression: NewExpression;
|
|
16033
|
-
ObjectExpression: ObjectExpression;
|
|
16034
|
-
SequenceExpression: SequenceExpression;
|
|
16035
|
-
TaggedTemplateExpression: TaggedTemplateExpression;
|
|
16036
|
-
TemplateLiteral: TemplateLiteral;
|
|
16037
|
-
ThisExpression: ThisExpression;
|
|
16038
|
-
UnaryExpression: UnaryExpression;
|
|
16039
|
-
UpdateExpression: UpdateExpression;
|
|
16040
|
-
YieldExpression: YieldExpression;
|
|
16041
|
-
}
|
|
16042
|
-
|
|
16043
|
-
type Expression = ExpressionMap[keyof ExpressionMap];
|
|
16044
|
-
|
|
16045
|
-
interface BaseExpression extends BaseNode {}
|
|
16046
|
-
|
|
16047
|
-
type ChainElement = SimpleCallExpression | MemberExpression;
|
|
16048
|
-
|
|
16049
|
-
interface ChainExpression extends BaseExpression {
|
|
16050
|
-
type: "ChainExpression";
|
|
16051
|
-
expression: ChainElement;
|
|
16052
|
-
}
|
|
16053
|
-
|
|
16054
|
-
interface ThisExpression extends BaseExpression {
|
|
16055
|
-
type: "ThisExpression";
|
|
16056
|
-
}
|
|
16057
|
-
|
|
16058
|
-
interface ArrayExpression extends BaseExpression {
|
|
16059
|
-
type: "ArrayExpression";
|
|
16060
|
-
elements: Array<Expression | SpreadElement | null>;
|
|
16061
|
-
}
|
|
16062
|
-
|
|
16063
|
-
interface ObjectExpression extends BaseExpression {
|
|
16064
|
-
type: "ObjectExpression";
|
|
16065
|
-
properties: Array<Property | SpreadElement>;
|
|
16066
|
-
}
|
|
16067
|
-
|
|
16068
|
-
interface PrivateIdentifier extends BaseNode {
|
|
16069
|
-
type: "PrivateIdentifier";
|
|
16070
|
-
name: string;
|
|
16071
|
-
}
|
|
16072
|
-
|
|
16073
|
-
interface Property extends BaseNode {
|
|
16074
|
-
type: "Property";
|
|
16075
|
-
key: Expression | PrivateIdentifier;
|
|
16076
|
-
value: Expression | Pattern; // Could be an AssignmentProperty
|
|
16077
|
-
kind: "init" | "get" | "set";
|
|
16078
|
-
method: boolean;
|
|
16079
|
-
shorthand: boolean;
|
|
16080
|
-
computed: boolean;
|
|
16081
|
-
}
|
|
16082
|
-
|
|
16083
|
-
interface PropertyDefinition extends BaseNode {
|
|
16084
|
-
type: "PropertyDefinition";
|
|
16085
|
-
key: Expression | PrivateIdentifier;
|
|
16086
|
-
value?: Expression | null | undefined;
|
|
16087
|
-
computed: boolean;
|
|
16088
|
-
static: boolean;
|
|
16089
|
-
}
|
|
16090
|
-
|
|
16091
|
-
interface FunctionExpression extends BaseFunction, BaseExpression {
|
|
16092
|
-
id?: Identifier | null | undefined;
|
|
16093
|
-
type: "FunctionExpression";
|
|
16094
|
-
body: BlockStatement;
|
|
16095
|
-
}
|
|
16096
|
-
|
|
16097
|
-
interface SequenceExpression extends BaseExpression {
|
|
16098
|
-
type: "SequenceExpression";
|
|
16099
|
-
expressions: Expression[];
|
|
16100
|
-
}
|
|
16101
|
-
|
|
16102
|
-
interface UnaryExpression extends BaseExpression {
|
|
16103
|
-
type: "UnaryExpression";
|
|
16104
|
-
operator: UnaryOperator;
|
|
16105
|
-
prefix: true;
|
|
16106
|
-
argument: Expression;
|
|
16107
|
-
}
|
|
16108
|
-
|
|
16109
|
-
interface BinaryExpression extends BaseExpression {
|
|
16110
|
-
type: "BinaryExpression";
|
|
16111
|
-
operator: BinaryOperator;
|
|
16112
|
-
left: Expression | PrivateIdentifier;
|
|
16113
|
-
right: Expression;
|
|
16114
|
-
}
|
|
16115
|
-
|
|
16116
|
-
interface AssignmentExpression extends BaseExpression {
|
|
16117
|
-
type: "AssignmentExpression";
|
|
16118
|
-
operator: AssignmentOperator;
|
|
16119
|
-
left: Pattern | MemberExpression;
|
|
16120
|
-
right: Expression;
|
|
16121
|
-
}
|
|
16122
|
-
|
|
16123
|
-
interface UpdateExpression extends BaseExpression {
|
|
16124
|
-
type: "UpdateExpression";
|
|
16125
|
-
operator: UpdateOperator;
|
|
16126
|
-
argument: Expression;
|
|
16127
|
-
prefix: boolean;
|
|
16128
|
-
}
|
|
16129
|
-
|
|
16130
|
-
interface LogicalExpression extends BaseExpression {
|
|
16131
|
-
type: "LogicalExpression";
|
|
16132
|
-
operator: LogicalOperator;
|
|
16133
|
-
left: Expression;
|
|
16134
|
-
right: Expression;
|
|
16135
|
-
}
|
|
16136
|
-
|
|
16137
|
-
interface ConditionalExpression extends BaseExpression {
|
|
16138
|
-
type: "ConditionalExpression";
|
|
16139
|
-
test: Expression;
|
|
16140
|
-
alternate: Expression;
|
|
16141
|
-
consequent: Expression;
|
|
16142
|
-
}
|
|
16143
|
-
|
|
16144
|
-
interface BaseCallExpression extends BaseExpression {
|
|
16145
|
-
callee: Expression | Super;
|
|
16146
|
-
arguments: Array<Expression | SpreadElement>;
|
|
16147
|
-
}
|
|
16148
|
-
type CallExpression = SimpleCallExpression | NewExpression;
|
|
16149
|
-
|
|
16150
|
-
interface SimpleCallExpression extends BaseCallExpression {
|
|
16151
|
-
type: "CallExpression";
|
|
16152
|
-
optional: boolean;
|
|
16153
|
-
}
|
|
16154
|
-
|
|
16155
|
-
interface NewExpression extends BaseCallExpression {
|
|
16156
|
-
type: "NewExpression";
|
|
16157
|
-
}
|
|
16158
|
-
|
|
16159
|
-
interface MemberExpression extends BaseExpression, BasePattern {
|
|
16160
|
-
type: "MemberExpression";
|
|
16161
|
-
object: Expression | Super;
|
|
16162
|
-
property: Expression | PrivateIdentifier;
|
|
16163
|
-
computed: boolean;
|
|
16164
|
-
optional: boolean;
|
|
16165
|
-
}
|
|
16166
|
-
|
|
16167
|
-
type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
|
|
16168
|
-
|
|
16169
|
-
interface BasePattern extends BaseNode {}
|
|
16170
|
-
|
|
16171
|
-
interface SwitchCase extends BaseNode {
|
|
16172
|
-
type: "SwitchCase";
|
|
16173
|
-
test?: Expression | null | undefined;
|
|
16174
|
-
consequent: Statement[];
|
|
16175
|
-
}
|
|
16176
|
-
|
|
16177
|
-
interface CatchClause extends BaseNode {
|
|
16178
|
-
type: "CatchClause";
|
|
16179
|
-
param: Pattern | null;
|
|
16180
|
-
body: BlockStatement;
|
|
16181
|
-
}
|
|
16182
|
-
|
|
16183
|
-
interface Identifier extends BaseNode, BaseExpression, BasePattern {
|
|
16184
|
-
type: "Identifier";
|
|
16185
|
-
name: string;
|
|
16186
|
-
}
|
|
16187
|
-
|
|
16188
|
-
type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral;
|
|
16189
|
-
|
|
16190
|
-
interface SimpleLiteral extends BaseNode, BaseExpression {
|
|
16191
|
-
type: "Literal";
|
|
16192
|
-
value: string | boolean | number | null;
|
|
16193
|
-
raw?: string | undefined;
|
|
16194
|
-
}
|
|
16195
|
-
|
|
16196
|
-
interface RegExpLiteral extends BaseNode, BaseExpression {
|
|
16197
|
-
type: "Literal";
|
|
16198
|
-
value?: RegExp | null | undefined;
|
|
16199
|
-
regex: {
|
|
16200
|
-
pattern: string;
|
|
16201
|
-
flags: string;
|
|
16202
|
-
};
|
|
16203
|
-
raw?: string | undefined;
|
|
16204
|
-
}
|
|
16205
|
-
|
|
16206
|
-
interface BigIntLiteral extends BaseNode, BaseExpression {
|
|
16207
|
-
type: "Literal";
|
|
16208
|
-
value?: bigint | null | undefined;
|
|
16209
|
-
bigint: string;
|
|
16210
|
-
raw?: string | undefined;
|
|
16211
|
-
}
|
|
16212
|
-
|
|
16213
|
-
type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
|
|
16214
|
-
|
|
16215
|
-
type BinaryOperator =
|
|
16216
|
-
| "=="
|
|
16217
|
-
| "!="
|
|
16218
|
-
| "==="
|
|
16219
|
-
| "!=="
|
|
16220
|
-
| "<"
|
|
16221
|
-
| "<="
|
|
16222
|
-
| ">"
|
|
16223
|
-
| ">="
|
|
16224
|
-
| "<<"
|
|
16225
|
-
| ">>"
|
|
16226
|
-
| ">>>"
|
|
16227
|
-
| "+"
|
|
16228
|
-
| "-"
|
|
16229
|
-
| "*"
|
|
16230
|
-
| "/"
|
|
16231
|
-
| "%"
|
|
16232
|
-
| "**"
|
|
16233
|
-
| "|"
|
|
16234
|
-
| "^"
|
|
16235
|
-
| "&"
|
|
16236
|
-
| "in"
|
|
16237
|
-
| "instanceof";
|
|
16238
|
-
|
|
16239
|
-
type LogicalOperator = "||" | "&&" | "??";
|
|
16240
|
-
|
|
16241
|
-
type AssignmentOperator =
|
|
16242
|
-
| "="
|
|
16243
|
-
| "+="
|
|
16244
|
-
| "-="
|
|
16245
|
-
| "*="
|
|
16246
|
-
| "/="
|
|
16247
|
-
| "%="
|
|
16248
|
-
| "**="
|
|
16249
|
-
| "<<="
|
|
16250
|
-
| ">>="
|
|
16251
|
-
| ">>>="
|
|
16252
|
-
| "|="
|
|
16253
|
-
| "^="
|
|
16254
|
-
| "&="
|
|
16255
|
-
| "||="
|
|
16256
|
-
| "&&="
|
|
16257
|
-
| "??=";
|
|
16258
|
-
|
|
16259
|
-
type UpdateOperator = "++" | "--";
|
|
16260
|
-
|
|
16261
|
-
interface ForOfStatement extends BaseForXStatement {
|
|
16262
|
-
type: "ForOfStatement";
|
|
16263
|
-
await: boolean;
|
|
16264
|
-
}
|
|
16265
|
-
|
|
16266
|
-
interface Super extends BaseNode {
|
|
16267
|
-
type: "Super";
|
|
16268
|
-
}
|
|
16269
|
-
|
|
16270
|
-
interface SpreadElement extends BaseNode {
|
|
16271
|
-
type: "SpreadElement";
|
|
16272
|
-
argument: Expression;
|
|
16273
|
-
}
|
|
16274
|
-
|
|
16275
|
-
interface ArrowFunctionExpression extends BaseExpression, BaseFunction {
|
|
16276
|
-
type: "ArrowFunctionExpression";
|
|
16277
|
-
expression: boolean;
|
|
16278
|
-
body: BlockStatement | Expression;
|
|
16279
|
-
}
|
|
16280
|
-
|
|
16281
|
-
interface YieldExpression extends BaseExpression {
|
|
16282
|
-
type: "YieldExpression";
|
|
16283
|
-
argument?: Expression | null | undefined;
|
|
16284
|
-
delegate: boolean;
|
|
16285
|
-
}
|
|
16286
|
-
|
|
16287
|
-
interface TemplateLiteral extends BaseExpression {
|
|
16288
|
-
type: "TemplateLiteral";
|
|
16289
|
-
quasis: TemplateElement[];
|
|
16290
|
-
expressions: Expression[];
|
|
16291
|
-
}
|
|
16292
|
-
|
|
16293
|
-
interface TaggedTemplateExpression extends BaseExpression {
|
|
16294
|
-
type: "TaggedTemplateExpression";
|
|
16295
|
-
tag: Expression;
|
|
16296
|
-
quasi: TemplateLiteral;
|
|
16297
|
-
}
|
|
16298
|
-
|
|
16299
|
-
interface TemplateElement extends BaseNode {
|
|
16300
|
-
type: "TemplateElement";
|
|
16301
|
-
tail: boolean;
|
|
16302
|
-
value: {
|
|
16303
|
-
/** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */
|
|
16304
|
-
cooked?: string | null | undefined;
|
|
16305
|
-
raw: string;
|
|
16306
|
-
};
|
|
16307
|
-
}
|
|
16308
|
-
|
|
16309
|
-
interface AssignmentProperty extends Property {
|
|
16310
|
-
value: Pattern;
|
|
16311
|
-
kind: "init";
|
|
16312
|
-
method: boolean; // false
|
|
16313
|
-
}
|
|
16314
|
-
|
|
16315
|
-
interface ObjectPattern extends BasePattern {
|
|
16316
|
-
type: "ObjectPattern";
|
|
16317
|
-
properties: Array<AssignmentProperty | RestElement>;
|
|
16318
|
-
}
|
|
16319
|
-
|
|
16320
|
-
interface ArrayPattern extends BasePattern {
|
|
16321
|
-
type: "ArrayPattern";
|
|
16322
|
-
elements: Array<Pattern | null>;
|
|
16323
|
-
}
|
|
16324
|
-
|
|
16325
|
-
interface RestElement extends BasePattern {
|
|
16326
|
-
type: "RestElement";
|
|
16327
|
-
argument: Pattern;
|
|
16328
|
-
}
|
|
16329
|
-
|
|
16330
|
-
interface AssignmentPattern extends BasePattern {
|
|
16331
|
-
type: "AssignmentPattern";
|
|
16332
|
-
left: Pattern;
|
|
16333
|
-
right: Expression;
|
|
16334
|
-
}
|
|
16335
|
-
interface BaseClass extends BaseNode {
|
|
16336
|
-
superClass?: Expression | null | undefined;
|
|
16337
|
-
body: ClassBody;
|
|
16338
|
-
}
|
|
16339
|
-
|
|
16340
|
-
interface ClassBody extends BaseNode {
|
|
16341
|
-
type: "ClassBody";
|
|
16342
|
-
body: Array<MethodDefinition | PropertyDefinition | StaticBlock>;
|
|
16343
|
-
}
|
|
16344
|
-
|
|
16345
|
-
interface MethodDefinition extends BaseNode {
|
|
16346
|
-
type: "MethodDefinition";
|
|
16347
|
-
key: Expression | PrivateIdentifier;
|
|
16348
|
-
value: FunctionExpression;
|
|
16349
|
-
kind: "constructor" | "method" | "get" | "set";
|
|
16350
|
-
computed: boolean;
|
|
16351
|
-
static: boolean;
|
|
16352
|
-
}
|
|
16353
|
-
|
|
16354
|
-
interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration {
|
|
16355
|
-
type: "ClassDeclaration";
|
|
16356
|
-
/** It is null when a class declaration is a part of the `export default class` statement */
|
|
16357
|
-
id: Identifier | null;
|
|
16358
|
-
}
|
|
16359
|
-
|
|
16360
|
-
interface ClassDeclaration extends MaybeNamedClassDeclaration {
|
|
16361
|
-
id: Identifier;
|
|
16362
|
-
}
|
|
16363
|
-
|
|
16364
|
-
interface ClassExpression extends BaseClass, BaseExpression {
|
|
16365
|
-
type: "ClassExpression";
|
|
16366
|
-
id?: Identifier | null | undefined;
|
|
16367
|
-
}
|
|
16368
|
-
|
|
16369
|
-
interface MetaProperty extends BaseExpression {
|
|
16370
|
-
type: "MetaProperty";
|
|
16371
|
-
meta: Identifier;
|
|
16372
|
-
property: Identifier;
|
|
16373
|
-
}
|
|
16374
|
-
|
|
16375
|
-
interface ImportExpression extends BaseExpression {
|
|
16376
|
-
type: "ImportExpression";
|
|
16377
|
-
source: Expression;
|
|
16378
|
-
}
|
|
16379
|
-
|
|
16380
|
-
interface AwaitExpression extends BaseExpression {
|
|
16381
|
-
type: "AwaitExpression";
|
|
16382
|
-
argument: Expression;
|
|
16383
|
-
}
|
|
16384
|
-
|
|
16385
|
-
declare module 'estree' {
|
|
16386
|
-
export interface Decorator extends BaseNode {
|
|
16387
|
-
type: 'Decorator';
|
|
16388
|
-
expression: Expression;
|
|
16389
|
-
}
|
|
16390
|
-
interface PropertyDefinition {
|
|
16391
|
-
decorators: undefined[];
|
|
16392
|
-
}
|
|
16393
|
-
interface MethodDefinition {
|
|
16394
|
-
decorators: undefined[];
|
|
16395
|
-
}
|
|
16396
|
-
interface BaseClass {
|
|
16397
|
-
decorators: undefined[];
|
|
16398
|
-
}
|
|
16399
|
-
}
|
|
16400
|
-
|
|
16401
|
-
// declare AbortSignal here for environments without DOM lib or @types/node
|
|
16402
|
-
declare global {
|
|
16403
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
16404
|
-
interface AbortSignal {}
|
|
16405
|
-
}
|
|
16406
|
-
|
|
16407
15818
|
type Logger = {
|
|
16408
15819
|
info(msg: string): void;
|
|
16409
15820
|
warn(msg: unknown): void;
|