likec4 1.20.2 → 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-XuOb1YP0.js → -index-overview-TebwYeV7.js} +1 -1
- package/__app__/src/chunks/{main-BTT9mi5e.js → main-DSlxn73B.js} +3846 -3801
- package/__app__/src/main.js +1 -1
- package/__app__/webcomponent/webcomponent.js +367 -324
- package/dist/cli/index.cjs +45 -43
- package/dist/cli/index.mjs +109 -107
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +24 -632
- package/dist/index.d.mts +24 -632
- package/dist/index.d.ts +24 -632
- 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 +14 -12
- package/react/index.js +367 -324
- package/dist/shared/likec4.DpEZnw1B.cjs +0 -1856
- package/dist/shared/likec4.EF3jY6Mw.mjs +0 -1856
package/dist/index.d.mts
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
|
*
|
|
@@ -7517,7 +7517,7 @@ interface SelectionRangeParams extends WorkDoneProgressParams, PartialResultPara
|
|
|
7517
7517
|
/**
|
|
7518
7518
|
* The positions inside the text document.
|
|
7519
7519
|
*/
|
|
7520
|
-
positions: Position$
|
|
7520
|
+
positions: Position$1[];
|
|
7521
7521
|
}
|
|
7522
7522
|
|
|
7523
7523
|
/**
|
|
@@ -9177,7 +9177,7 @@ interface TextDocumentPositionParams {
|
|
|
9177
9177
|
/**
|
|
9178
9178
|
* The position inside the text document.
|
|
9179
9179
|
*/
|
|
9180
|
-
position: Position$
|
|
9180
|
+
position: Position$1;
|
|
9181
9181
|
}
|
|
9182
9182
|
/**
|
|
9183
9183
|
* The kind of resource operations supported by the client.
|
|
@@ -11268,7 +11268,7 @@ interface DocumentOnTypeFormattingParams {
|
|
|
11268
11268
|
* This is not necessarily the exact position where the character denoted
|
|
11269
11269
|
* by the property `ch` got typed.
|
|
11270
11270
|
*/
|
|
11271
|
-
position: Position$
|
|
11271
|
+
position: Position$1;
|
|
11272
11272
|
/**
|
|
11273
11273
|
* The character that has been typed that triggered the formatting
|
|
11274
11274
|
* on type request. That is not necessarily the last character that
|
|
@@ -11345,7 +11345,7 @@ interface RenameParams extends WorkDoneProgressParams {
|
|
|
11345
11345
|
/**
|
|
11346
11346
|
* The position at which this request was sent.
|
|
11347
11347
|
*/
|
|
11348
|
-
position: Position$
|
|
11348
|
+
position: Position$1;
|
|
11349
11349
|
/**
|
|
11350
11350
|
* The new name of the symbol. If the given name is not valid the
|
|
11351
11351
|
* request must return a {@link ResponseError} with an
|
|
@@ -12690,7 +12690,7 @@ interface _Connection<PConsole = _, PTracer = _, PTelemetry = _, PClient = _, PW
|
|
|
12690
12690
|
*
|
|
12691
12691
|
* @param handler The corresponding handler.
|
|
12692
12692
|
*/
|
|
12693
|
-
onDeclaration(handler: ServerRequestHandler<DeclarationParams, Declaration
|
|
12693
|
+
onDeclaration(handler: ServerRequestHandler<DeclarationParams, Declaration | DeclarationLink[] | undefined | null, Location[] | DeclarationLink[], void>): Disposable$1;
|
|
12694
12694
|
/**
|
|
12695
12695
|
* Installs a handler for the `Definition` request.
|
|
12696
12696
|
*
|
|
@@ -13762,7 +13762,7 @@ interface CompletionContext {
|
|
|
13762
13762
|
* Index of the requested completed position.
|
|
13763
13763
|
*/
|
|
13764
13764
|
offset: number;
|
|
13765
|
-
position: Position$
|
|
13765
|
+
position: Position$1;
|
|
13766
13766
|
}
|
|
13767
13767
|
interface CompletionProviderOptions$1 {
|
|
13768
13768
|
/**
|
|
@@ -13835,7 +13835,7 @@ declare class DefaultCompletionProvider implements CompletionProvider {
|
|
|
13835
13835
|
*/
|
|
13836
13836
|
protected deduplicateItems(items: CompletionItem[]): CompletionItem[];
|
|
13837
13837
|
protected findFeaturesAt(document: TextDocument, offset: number): NextFeature[];
|
|
13838
|
-
protected buildContexts(document: LangiumDocument, position: Position$
|
|
13838
|
+
protected buildContexts(document: LangiumDocument, position: Position$1): IterableIterator<CompletionContext>;
|
|
13839
13839
|
protected performNextTokenCompletion(document: LangiumDocument, text: string, _offset: number, _end: number): boolean;
|
|
13840
13840
|
protected findDataTypeRuleStart(cst: CstNode, offset: number): [number, number] | undefined;
|
|
13841
13841
|
/**
|
|
@@ -15815,614 +15815,6 @@ interface LikeC4AddedServices {
|
|
|
15815
15815
|
}
|
|
15816
15816
|
type LikeC4Services = LangiumServices & LikeC4AddedServices;
|
|
15817
15817
|
|
|
15818
|
-
// This definition file follows a somewhat unusual format. ESTree allows
|
|
15819
|
-
// runtime type checks based on the `type` parameter. In order to explain this
|
|
15820
|
-
// to typescript we want to use discriminated union types:
|
|
15821
|
-
// https://github.com/Microsoft/TypeScript/pull/9163
|
|
15822
|
-
//
|
|
15823
|
-
// For ESTree this is a bit tricky because the high level interfaces like
|
|
15824
|
-
// Node or Function are pulling double duty. We want to pass common fields down
|
|
15825
|
-
// to the interfaces that extend them (like Identifier or
|
|
15826
|
-
// ArrowFunctionExpression), but you can't extend a type union or enforce
|
|
15827
|
-
// common fields on them. So we've split the high level interfaces into two
|
|
15828
|
-
// types, a base type which passes down inherited fields, and a type union of
|
|
15829
|
-
// all types which extend the base type. Only the type union is exported, and
|
|
15830
|
-
// the union is how other types refer to the collection of inheriting types.
|
|
15831
|
-
//
|
|
15832
|
-
// This makes the definitions file here somewhat more difficult to maintain,
|
|
15833
|
-
// but it has the notable advantage of making ESTree much easier to use as
|
|
15834
|
-
// an end user.
|
|
15835
|
-
|
|
15836
|
-
interface BaseNodeWithoutComments {
|
|
15837
|
-
// Every leaf interface that extends BaseNode must specify a type property.
|
|
15838
|
-
// The type property should be a string literal. For example, Identifier
|
|
15839
|
-
// has: `type: "Identifier"`
|
|
15840
|
-
type: string;
|
|
15841
|
-
loc?: SourceLocation | null | undefined;
|
|
15842
|
-
range?: [number, number] | undefined;
|
|
15843
|
-
}
|
|
15844
|
-
|
|
15845
|
-
interface BaseNode extends BaseNodeWithoutComments {
|
|
15846
|
-
leadingComments?: Comment[] | undefined;
|
|
15847
|
-
trailingComments?: Comment[] | undefined;
|
|
15848
|
-
}
|
|
15849
|
-
|
|
15850
|
-
interface Comment extends BaseNodeWithoutComments {
|
|
15851
|
-
type: "Line" | "Block";
|
|
15852
|
-
value: string;
|
|
15853
|
-
}
|
|
15854
|
-
|
|
15855
|
-
interface SourceLocation {
|
|
15856
|
-
source?: string | null | undefined;
|
|
15857
|
-
start: Position;
|
|
15858
|
-
end: Position;
|
|
15859
|
-
}
|
|
15860
|
-
|
|
15861
|
-
interface Position {
|
|
15862
|
-
/** >= 1 */
|
|
15863
|
-
line: number;
|
|
15864
|
-
/** >= 0 */
|
|
15865
|
-
column: number;
|
|
15866
|
-
}
|
|
15867
|
-
|
|
15868
|
-
interface BaseFunction extends BaseNode {
|
|
15869
|
-
params: Pattern[];
|
|
15870
|
-
generator?: boolean | undefined;
|
|
15871
|
-
async?: boolean | undefined;
|
|
15872
|
-
// The body is either BlockStatement or Expression because arrow functions
|
|
15873
|
-
// can have a body that's either. FunctionDeclarations and
|
|
15874
|
-
// FunctionExpressions have only BlockStatement bodies.
|
|
15875
|
-
body: BlockStatement | Expression;
|
|
15876
|
-
}
|
|
15877
|
-
|
|
15878
|
-
type Statement =
|
|
15879
|
-
| ExpressionStatement
|
|
15880
|
-
| BlockStatement
|
|
15881
|
-
| StaticBlock
|
|
15882
|
-
| EmptyStatement
|
|
15883
|
-
| DebuggerStatement
|
|
15884
|
-
| WithStatement
|
|
15885
|
-
| ReturnStatement
|
|
15886
|
-
| LabeledStatement
|
|
15887
|
-
| BreakStatement
|
|
15888
|
-
| ContinueStatement
|
|
15889
|
-
| IfStatement
|
|
15890
|
-
| SwitchStatement
|
|
15891
|
-
| ThrowStatement
|
|
15892
|
-
| TryStatement
|
|
15893
|
-
| WhileStatement
|
|
15894
|
-
| DoWhileStatement
|
|
15895
|
-
| ForStatement
|
|
15896
|
-
| ForInStatement
|
|
15897
|
-
| ForOfStatement
|
|
15898
|
-
| Declaration;
|
|
15899
|
-
|
|
15900
|
-
interface BaseStatement extends BaseNode {}
|
|
15901
|
-
|
|
15902
|
-
interface EmptyStatement extends BaseStatement {
|
|
15903
|
-
type: "EmptyStatement";
|
|
15904
|
-
}
|
|
15905
|
-
|
|
15906
|
-
interface BlockStatement extends BaseStatement {
|
|
15907
|
-
type: "BlockStatement";
|
|
15908
|
-
body: Statement[];
|
|
15909
|
-
innerComments?: Comment[] | undefined;
|
|
15910
|
-
}
|
|
15911
|
-
|
|
15912
|
-
interface StaticBlock extends Omit<BlockStatement, "type"> {
|
|
15913
|
-
type: "StaticBlock";
|
|
15914
|
-
}
|
|
15915
|
-
|
|
15916
|
-
interface ExpressionStatement extends BaseStatement {
|
|
15917
|
-
type: "ExpressionStatement";
|
|
15918
|
-
expression: Expression;
|
|
15919
|
-
}
|
|
15920
|
-
|
|
15921
|
-
interface IfStatement extends BaseStatement {
|
|
15922
|
-
type: "IfStatement";
|
|
15923
|
-
test: Expression;
|
|
15924
|
-
consequent: Statement;
|
|
15925
|
-
alternate?: Statement | null | undefined;
|
|
15926
|
-
}
|
|
15927
|
-
|
|
15928
|
-
interface LabeledStatement extends BaseStatement {
|
|
15929
|
-
type: "LabeledStatement";
|
|
15930
|
-
label: Identifier;
|
|
15931
|
-
body: Statement;
|
|
15932
|
-
}
|
|
15933
|
-
|
|
15934
|
-
interface BreakStatement extends BaseStatement {
|
|
15935
|
-
type: "BreakStatement";
|
|
15936
|
-
label?: Identifier | null | undefined;
|
|
15937
|
-
}
|
|
15938
|
-
|
|
15939
|
-
interface ContinueStatement extends BaseStatement {
|
|
15940
|
-
type: "ContinueStatement";
|
|
15941
|
-
label?: Identifier | null | undefined;
|
|
15942
|
-
}
|
|
15943
|
-
|
|
15944
|
-
interface WithStatement extends BaseStatement {
|
|
15945
|
-
type: "WithStatement";
|
|
15946
|
-
object: Expression;
|
|
15947
|
-
body: Statement;
|
|
15948
|
-
}
|
|
15949
|
-
|
|
15950
|
-
interface SwitchStatement extends BaseStatement {
|
|
15951
|
-
type: "SwitchStatement";
|
|
15952
|
-
discriminant: Expression;
|
|
15953
|
-
cases: SwitchCase[];
|
|
15954
|
-
}
|
|
15955
|
-
|
|
15956
|
-
interface ReturnStatement extends BaseStatement {
|
|
15957
|
-
type: "ReturnStatement";
|
|
15958
|
-
argument?: Expression | null | undefined;
|
|
15959
|
-
}
|
|
15960
|
-
|
|
15961
|
-
interface ThrowStatement extends BaseStatement {
|
|
15962
|
-
type: "ThrowStatement";
|
|
15963
|
-
argument: Expression;
|
|
15964
|
-
}
|
|
15965
|
-
|
|
15966
|
-
interface TryStatement extends BaseStatement {
|
|
15967
|
-
type: "TryStatement";
|
|
15968
|
-
block: BlockStatement;
|
|
15969
|
-
handler?: CatchClause | null | undefined;
|
|
15970
|
-
finalizer?: BlockStatement | null | undefined;
|
|
15971
|
-
}
|
|
15972
|
-
|
|
15973
|
-
interface WhileStatement extends BaseStatement {
|
|
15974
|
-
type: "WhileStatement";
|
|
15975
|
-
test: Expression;
|
|
15976
|
-
body: Statement;
|
|
15977
|
-
}
|
|
15978
|
-
|
|
15979
|
-
interface DoWhileStatement extends BaseStatement {
|
|
15980
|
-
type: "DoWhileStatement";
|
|
15981
|
-
body: Statement;
|
|
15982
|
-
test: Expression;
|
|
15983
|
-
}
|
|
15984
|
-
|
|
15985
|
-
interface ForStatement extends BaseStatement {
|
|
15986
|
-
type: "ForStatement";
|
|
15987
|
-
init?: VariableDeclaration | Expression | null | undefined;
|
|
15988
|
-
test?: Expression | null | undefined;
|
|
15989
|
-
update?: Expression | null | undefined;
|
|
15990
|
-
body: Statement;
|
|
15991
|
-
}
|
|
15992
|
-
|
|
15993
|
-
interface BaseForXStatement extends BaseStatement {
|
|
15994
|
-
left: VariableDeclaration | Pattern;
|
|
15995
|
-
right: Expression;
|
|
15996
|
-
body: Statement;
|
|
15997
|
-
}
|
|
15998
|
-
|
|
15999
|
-
interface ForInStatement extends BaseForXStatement {
|
|
16000
|
-
type: "ForInStatement";
|
|
16001
|
-
}
|
|
16002
|
-
|
|
16003
|
-
interface DebuggerStatement extends BaseStatement {
|
|
16004
|
-
type: "DebuggerStatement";
|
|
16005
|
-
}
|
|
16006
|
-
|
|
16007
|
-
type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
|
|
16008
|
-
|
|
16009
|
-
interface BaseDeclaration extends BaseStatement {}
|
|
16010
|
-
|
|
16011
|
-
interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration {
|
|
16012
|
-
type: "FunctionDeclaration";
|
|
16013
|
-
/** It is null when a function declaration is a part of the `export default function` statement */
|
|
16014
|
-
id: Identifier | null;
|
|
16015
|
-
body: BlockStatement;
|
|
16016
|
-
}
|
|
16017
|
-
|
|
16018
|
-
interface FunctionDeclaration extends MaybeNamedFunctionDeclaration {
|
|
16019
|
-
id: Identifier;
|
|
16020
|
-
}
|
|
16021
|
-
|
|
16022
|
-
interface VariableDeclaration extends BaseDeclaration {
|
|
16023
|
-
type: "VariableDeclaration";
|
|
16024
|
-
declarations: VariableDeclarator[];
|
|
16025
|
-
kind: "var" | "let" | "const";
|
|
16026
|
-
}
|
|
16027
|
-
|
|
16028
|
-
interface VariableDeclarator extends BaseNode {
|
|
16029
|
-
type: "VariableDeclarator";
|
|
16030
|
-
id: Pattern;
|
|
16031
|
-
init?: Expression | null | undefined;
|
|
16032
|
-
}
|
|
16033
|
-
|
|
16034
|
-
interface ExpressionMap {
|
|
16035
|
-
ArrayExpression: ArrayExpression;
|
|
16036
|
-
ArrowFunctionExpression: ArrowFunctionExpression;
|
|
16037
|
-
AssignmentExpression: AssignmentExpression;
|
|
16038
|
-
AwaitExpression: AwaitExpression;
|
|
16039
|
-
BinaryExpression: BinaryExpression;
|
|
16040
|
-
CallExpression: CallExpression;
|
|
16041
|
-
ChainExpression: ChainExpression;
|
|
16042
|
-
ClassExpression: ClassExpression;
|
|
16043
|
-
ConditionalExpression: ConditionalExpression;
|
|
16044
|
-
FunctionExpression: FunctionExpression;
|
|
16045
|
-
Identifier: Identifier;
|
|
16046
|
-
ImportExpression: ImportExpression;
|
|
16047
|
-
Literal: Literal;
|
|
16048
|
-
LogicalExpression: LogicalExpression;
|
|
16049
|
-
MemberExpression: MemberExpression;
|
|
16050
|
-
MetaProperty: MetaProperty;
|
|
16051
|
-
NewExpression: NewExpression;
|
|
16052
|
-
ObjectExpression: ObjectExpression;
|
|
16053
|
-
SequenceExpression: SequenceExpression;
|
|
16054
|
-
TaggedTemplateExpression: TaggedTemplateExpression;
|
|
16055
|
-
TemplateLiteral: TemplateLiteral;
|
|
16056
|
-
ThisExpression: ThisExpression;
|
|
16057
|
-
UnaryExpression: UnaryExpression;
|
|
16058
|
-
UpdateExpression: UpdateExpression;
|
|
16059
|
-
YieldExpression: YieldExpression;
|
|
16060
|
-
}
|
|
16061
|
-
|
|
16062
|
-
type Expression = ExpressionMap[keyof ExpressionMap];
|
|
16063
|
-
|
|
16064
|
-
interface BaseExpression extends BaseNode {}
|
|
16065
|
-
|
|
16066
|
-
type ChainElement = SimpleCallExpression | MemberExpression;
|
|
16067
|
-
|
|
16068
|
-
interface ChainExpression extends BaseExpression {
|
|
16069
|
-
type: "ChainExpression";
|
|
16070
|
-
expression: ChainElement;
|
|
16071
|
-
}
|
|
16072
|
-
|
|
16073
|
-
interface ThisExpression extends BaseExpression {
|
|
16074
|
-
type: "ThisExpression";
|
|
16075
|
-
}
|
|
16076
|
-
|
|
16077
|
-
interface ArrayExpression extends BaseExpression {
|
|
16078
|
-
type: "ArrayExpression";
|
|
16079
|
-
elements: Array<Expression | SpreadElement | null>;
|
|
16080
|
-
}
|
|
16081
|
-
|
|
16082
|
-
interface ObjectExpression extends BaseExpression {
|
|
16083
|
-
type: "ObjectExpression";
|
|
16084
|
-
properties: Array<Property | SpreadElement>;
|
|
16085
|
-
}
|
|
16086
|
-
|
|
16087
|
-
interface PrivateIdentifier extends BaseNode {
|
|
16088
|
-
type: "PrivateIdentifier";
|
|
16089
|
-
name: string;
|
|
16090
|
-
}
|
|
16091
|
-
|
|
16092
|
-
interface Property extends BaseNode {
|
|
16093
|
-
type: "Property";
|
|
16094
|
-
key: Expression | PrivateIdentifier;
|
|
16095
|
-
value: Expression | Pattern; // Could be an AssignmentProperty
|
|
16096
|
-
kind: "init" | "get" | "set";
|
|
16097
|
-
method: boolean;
|
|
16098
|
-
shorthand: boolean;
|
|
16099
|
-
computed: boolean;
|
|
16100
|
-
}
|
|
16101
|
-
|
|
16102
|
-
interface PropertyDefinition extends BaseNode {
|
|
16103
|
-
type: "PropertyDefinition";
|
|
16104
|
-
key: Expression | PrivateIdentifier;
|
|
16105
|
-
value?: Expression | null | undefined;
|
|
16106
|
-
computed: boolean;
|
|
16107
|
-
static: boolean;
|
|
16108
|
-
}
|
|
16109
|
-
|
|
16110
|
-
interface FunctionExpression extends BaseFunction, BaseExpression {
|
|
16111
|
-
id?: Identifier | null | undefined;
|
|
16112
|
-
type: "FunctionExpression";
|
|
16113
|
-
body: BlockStatement;
|
|
16114
|
-
}
|
|
16115
|
-
|
|
16116
|
-
interface SequenceExpression extends BaseExpression {
|
|
16117
|
-
type: "SequenceExpression";
|
|
16118
|
-
expressions: Expression[];
|
|
16119
|
-
}
|
|
16120
|
-
|
|
16121
|
-
interface UnaryExpression extends BaseExpression {
|
|
16122
|
-
type: "UnaryExpression";
|
|
16123
|
-
operator: UnaryOperator;
|
|
16124
|
-
prefix: true;
|
|
16125
|
-
argument: Expression;
|
|
16126
|
-
}
|
|
16127
|
-
|
|
16128
|
-
interface BinaryExpression extends BaseExpression {
|
|
16129
|
-
type: "BinaryExpression";
|
|
16130
|
-
operator: BinaryOperator;
|
|
16131
|
-
left: Expression | PrivateIdentifier;
|
|
16132
|
-
right: Expression;
|
|
16133
|
-
}
|
|
16134
|
-
|
|
16135
|
-
interface AssignmentExpression extends BaseExpression {
|
|
16136
|
-
type: "AssignmentExpression";
|
|
16137
|
-
operator: AssignmentOperator;
|
|
16138
|
-
left: Pattern | MemberExpression;
|
|
16139
|
-
right: Expression;
|
|
16140
|
-
}
|
|
16141
|
-
|
|
16142
|
-
interface UpdateExpression extends BaseExpression {
|
|
16143
|
-
type: "UpdateExpression";
|
|
16144
|
-
operator: UpdateOperator;
|
|
16145
|
-
argument: Expression;
|
|
16146
|
-
prefix: boolean;
|
|
16147
|
-
}
|
|
16148
|
-
|
|
16149
|
-
interface LogicalExpression extends BaseExpression {
|
|
16150
|
-
type: "LogicalExpression";
|
|
16151
|
-
operator: LogicalOperator;
|
|
16152
|
-
left: Expression;
|
|
16153
|
-
right: Expression;
|
|
16154
|
-
}
|
|
16155
|
-
|
|
16156
|
-
interface ConditionalExpression extends BaseExpression {
|
|
16157
|
-
type: "ConditionalExpression";
|
|
16158
|
-
test: Expression;
|
|
16159
|
-
alternate: Expression;
|
|
16160
|
-
consequent: Expression;
|
|
16161
|
-
}
|
|
16162
|
-
|
|
16163
|
-
interface BaseCallExpression extends BaseExpression {
|
|
16164
|
-
callee: Expression | Super;
|
|
16165
|
-
arguments: Array<Expression | SpreadElement>;
|
|
16166
|
-
}
|
|
16167
|
-
type CallExpression = SimpleCallExpression | NewExpression;
|
|
16168
|
-
|
|
16169
|
-
interface SimpleCallExpression extends BaseCallExpression {
|
|
16170
|
-
type: "CallExpression";
|
|
16171
|
-
optional: boolean;
|
|
16172
|
-
}
|
|
16173
|
-
|
|
16174
|
-
interface NewExpression extends BaseCallExpression {
|
|
16175
|
-
type: "NewExpression";
|
|
16176
|
-
}
|
|
16177
|
-
|
|
16178
|
-
interface MemberExpression extends BaseExpression, BasePattern {
|
|
16179
|
-
type: "MemberExpression";
|
|
16180
|
-
object: Expression | Super;
|
|
16181
|
-
property: Expression | PrivateIdentifier;
|
|
16182
|
-
computed: boolean;
|
|
16183
|
-
optional: boolean;
|
|
16184
|
-
}
|
|
16185
|
-
|
|
16186
|
-
type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
|
|
16187
|
-
|
|
16188
|
-
interface BasePattern extends BaseNode {}
|
|
16189
|
-
|
|
16190
|
-
interface SwitchCase extends BaseNode {
|
|
16191
|
-
type: "SwitchCase";
|
|
16192
|
-
test?: Expression | null | undefined;
|
|
16193
|
-
consequent: Statement[];
|
|
16194
|
-
}
|
|
16195
|
-
|
|
16196
|
-
interface CatchClause extends BaseNode {
|
|
16197
|
-
type: "CatchClause";
|
|
16198
|
-
param: Pattern | null;
|
|
16199
|
-
body: BlockStatement;
|
|
16200
|
-
}
|
|
16201
|
-
|
|
16202
|
-
interface Identifier extends BaseNode, BaseExpression, BasePattern {
|
|
16203
|
-
type: "Identifier";
|
|
16204
|
-
name: string;
|
|
16205
|
-
}
|
|
16206
|
-
|
|
16207
|
-
type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral;
|
|
16208
|
-
|
|
16209
|
-
interface SimpleLiteral extends BaseNode, BaseExpression {
|
|
16210
|
-
type: "Literal";
|
|
16211
|
-
value: string | boolean | number | null;
|
|
16212
|
-
raw?: string | undefined;
|
|
16213
|
-
}
|
|
16214
|
-
|
|
16215
|
-
interface RegExpLiteral extends BaseNode, BaseExpression {
|
|
16216
|
-
type: "Literal";
|
|
16217
|
-
value?: RegExp | null | undefined;
|
|
16218
|
-
regex: {
|
|
16219
|
-
pattern: string;
|
|
16220
|
-
flags: string;
|
|
16221
|
-
};
|
|
16222
|
-
raw?: string | undefined;
|
|
16223
|
-
}
|
|
16224
|
-
|
|
16225
|
-
interface BigIntLiteral extends BaseNode, BaseExpression {
|
|
16226
|
-
type: "Literal";
|
|
16227
|
-
value?: bigint | null | undefined;
|
|
16228
|
-
bigint: string;
|
|
16229
|
-
raw?: string | undefined;
|
|
16230
|
-
}
|
|
16231
|
-
|
|
16232
|
-
type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
|
|
16233
|
-
|
|
16234
|
-
type BinaryOperator =
|
|
16235
|
-
| "=="
|
|
16236
|
-
| "!="
|
|
16237
|
-
| "==="
|
|
16238
|
-
| "!=="
|
|
16239
|
-
| "<"
|
|
16240
|
-
| "<="
|
|
16241
|
-
| ">"
|
|
16242
|
-
| ">="
|
|
16243
|
-
| "<<"
|
|
16244
|
-
| ">>"
|
|
16245
|
-
| ">>>"
|
|
16246
|
-
| "+"
|
|
16247
|
-
| "-"
|
|
16248
|
-
| "*"
|
|
16249
|
-
| "/"
|
|
16250
|
-
| "%"
|
|
16251
|
-
| "**"
|
|
16252
|
-
| "|"
|
|
16253
|
-
| "^"
|
|
16254
|
-
| "&"
|
|
16255
|
-
| "in"
|
|
16256
|
-
| "instanceof";
|
|
16257
|
-
|
|
16258
|
-
type LogicalOperator = "||" | "&&" | "??";
|
|
16259
|
-
|
|
16260
|
-
type AssignmentOperator =
|
|
16261
|
-
| "="
|
|
16262
|
-
| "+="
|
|
16263
|
-
| "-="
|
|
16264
|
-
| "*="
|
|
16265
|
-
| "/="
|
|
16266
|
-
| "%="
|
|
16267
|
-
| "**="
|
|
16268
|
-
| "<<="
|
|
16269
|
-
| ">>="
|
|
16270
|
-
| ">>>="
|
|
16271
|
-
| "|="
|
|
16272
|
-
| "^="
|
|
16273
|
-
| "&="
|
|
16274
|
-
| "||="
|
|
16275
|
-
| "&&="
|
|
16276
|
-
| "??=";
|
|
16277
|
-
|
|
16278
|
-
type UpdateOperator = "++" | "--";
|
|
16279
|
-
|
|
16280
|
-
interface ForOfStatement extends BaseForXStatement {
|
|
16281
|
-
type: "ForOfStatement";
|
|
16282
|
-
await: boolean;
|
|
16283
|
-
}
|
|
16284
|
-
|
|
16285
|
-
interface Super extends BaseNode {
|
|
16286
|
-
type: "Super";
|
|
16287
|
-
}
|
|
16288
|
-
|
|
16289
|
-
interface SpreadElement extends BaseNode {
|
|
16290
|
-
type: "SpreadElement";
|
|
16291
|
-
argument: Expression;
|
|
16292
|
-
}
|
|
16293
|
-
|
|
16294
|
-
interface ArrowFunctionExpression extends BaseExpression, BaseFunction {
|
|
16295
|
-
type: "ArrowFunctionExpression";
|
|
16296
|
-
expression: boolean;
|
|
16297
|
-
body: BlockStatement | Expression;
|
|
16298
|
-
}
|
|
16299
|
-
|
|
16300
|
-
interface YieldExpression extends BaseExpression {
|
|
16301
|
-
type: "YieldExpression";
|
|
16302
|
-
argument?: Expression | null | undefined;
|
|
16303
|
-
delegate: boolean;
|
|
16304
|
-
}
|
|
16305
|
-
|
|
16306
|
-
interface TemplateLiteral extends BaseExpression {
|
|
16307
|
-
type: "TemplateLiteral";
|
|
16308
|
-
quasis: TemplateElement[];
|
|
16309
|
-
expressions: Expression[];
|
|
16310
|
-
}
|
|
16311
|
-
|
|
16312
|
-
interface TaggedTemplateExpression extends BaseExpression {
|
|
16313
|
-
type: "TaggedTemplateExpression";
|
|
16314
|
-
tag: Expression;
|
|
16315
|
-
quasi: TemplateLiteral;
|
|
16316
|
-
}
|
|
16317
|
-
|
|
16318
|
-
interface TemplateElement extends BaseNode {
|
|
16319
|
-
type: "TemplateElement";
|
|
16320
|
-
tail: boolean;
|
|
16321
|
-
value: {
|
|
16322
|
-
/** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */
|
|
16323
|
-
cooked?: string | null | undefined;
|
|
16324
|
-
raw: string;
|
|
16325
|
-
};
|
|
16326
|
-
}
|
|
16327
|
-
|
|
16328
|
-
interface AssignmentProperty extends Property {
|
|
16329
|
-
value: Pattern;
|
|
16330
|
-
kind: "init";
|
|
16331
|
-
method: boolean; // false
|
|
16332
|
-
}
|
|
16333
|
-
|
|
16334
|
-
interface ObjectPattern extends BasePattern {
|
|
16335
|
-
type: "ObjectPattern";
|
|
16336
|
-
properties: Array<AssignmentProperty | RestElement>;
|
|
16337
|
-
}
|
|
16338
|
-
|
|
16339
|
-
interface ArrayPattern extends BasePattern {
|
|
16340
|
-
type: "ArrayPattern";
|
|
16341
|
-
elements: Array<Pattern | null>;
|
|
16342
|
-
}
|
|
16343
|
-
|
|
16344
|
-
interface RestElement extends BasePattern {
|
|
16345
|
-
type: "RestElement";
|
|
16346
|
-
argument: Pattern;
|
|
16347
|
-
}
|
|
16348
|
-
|
|
16349
|
-
interface AssignmentPattern extends BasePattern {
|
|
16350
|
-
type: "AssignmentPattern";
|
|
16351
|
-
left: Pattern;
|
|
16352
|
-
right: Expression;
|
|
16353
|
-
}
|
|
16354
|
-
interface BaseClass extends BaseNode {
|
|
16355
|
-
superClass?: Expression | null | undefined;
|
|
16356
|
-
body: ClassBody;
|
|
16357
|
-
}
|
|
16358
|
-
|
|
16359
|
-
interface ClassBody extends BaseNode {
|
|
16360
|
-
type: "ClassBody";
|
|
16361
|
-
body: Array<MethodDefinition | PropertyDefinition | StaticBlock>;
|
|
16362
|
-
}
|
|
16363
|
-
|
|
16364
|
-
interface MethodDefinition extends BaseNode {
|
|
16365
|
-
type: "MethodDefinition";
|
|
16366
|
-
key: Expression | PrivateIdentifier;
|
|
16367
|
-
value: FunctionExpression;
|
|
16368
|
-
kind: "constructor" | "method" | "get" | "set";
|
|
16369
|
-
computed: boolean;
|
|
16370
|
-
static: boolean;
|
|
16371
|
-
}
|
|
16372
|
-
|
|
16373
|
-
interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration {
|
|
16374
|
-
type: "ClassDeclaration";
|
|
16375
|
-
/** It is null when a class declaration is a part of the `export default class` statement */
|
|
16376
|
-
id: Identifier | null;
|
|
16377
|
-
}
|
|
16378
|
-
|
|
16379
|
-
interface ClassDeclaration extends MaybeNamedClassDeclaration {
|
|
16380
|
-
id: Identifier;
|
|
16381
|
-
}
|
|
16382
|
-
|
|
16383
|
-
interface ClassExpression extends BaseClass, BaseExpression {
|
|
16384
|
-
type: "ClassExpression";
|
|
16385
|
-
id?: Identifier | null | undefined;
|
|
16386
|
-
}
|
|
16387
|
-
|
|
16388
|
-
interface MetaProperty extends BaseExpression {
|
|
16389
|
-
type: "MetaProperty";
|
|
16390
|
-
meta: Identifier;
|
|
16391
|
-
property: Identifier;
|
|
16392
|
-
}
|
|
16393
|
-
|
|
16394
|
-
interface ImportExpression extends BaseExpression {
|
|
16395
|
-
type: "ImportExpression";
|
|
16396
|
-
source: Expression;
|
|
16397
|
-
}
|
|
16398
|
-
|
|
16399
|
-
interface AwaitExpression extends BaseExpression {
|
|
16400
|
-
type: "AwaitExpression";
|
|
16401
|
-
argument: Expression;
|
|
16402
|
-
}
|
|
16403
|
-
|
|
16404
|
-
declare module 'estree' {
|
|
16405
|
-
export interface Decorator extends BaseNode {
|
|
16406
|
-
type: 'Decorator';
|
|
16407
|
-
expression: Expression;
|
|
16408
|
-
}
|
|
16409
|
-
interface PropertyDefinition {
|
|
16410
|
-
decorators: undefined[];
|
|
16411
|
-
}
|
|
16412
|
-
interface MethodDefinition {
|
|
16413
|
-
decorators: undefined[];
|
|
16414
|
-
}
|
|
16415
|
-
interface BaseClass {
|
|
16416
|
-
decorators: undefined[];
|
|
16417
|
-
}
|
|
16418
|
-
}
|
|
16419
|
-
|
|
16420
|
-
// declare AbortSignal here for environments without DOM lib or @types/node
|
|
16421
|
-
declare global {
|
|
16422
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
16423
|
-
interface AbortSignal {}
|
|
16424
|
-
}
|
|
16425
|
-
|
|
16426
15818
|
type Logger = {
|
|
16427
15819
|
info(msg: string): void;
|
|
16428
15820
|
warn(msg: unknown): void;
|