Skip to content

Commit 845f573

Browse files
Update API baselines
1 parent 5f8a1b5 commit 845f573

2 files changed

Lines changed: 134 additions & 90 deletions

File tree

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 67 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -313,46 +313,49 @@ declare namespace ts {
313313
JsxSelfClosingElement = 250,
314314
JsxOpeningElement = 251,
315315
JsxClosingElement = 252,
316-
JsxAttribute = 253,
317-
JsxAttributes = 254,
318-
JsxSpreadAttribute = 255,
319-
JsxExpression = 256,
320-
CaseClause = 257,
321-
DefaultClause = 258,
322-
HeritageClause = 259,
323-
CatchClause = 260,
324-
PropertyAssignment = 261,
325-
ShorthandPropertyAssignment = 262,
326-
SpreadAssignment = 263,
327-
EnumMember = 264,
328-
SourceFile = 265,
329-
Bundle = 266,
330-
JSDocTypeExpression = 267,
331-
JSDocAllType = 268,
332-
JSDocUnknownType = 269,
333-
JSDocNullableType = 270,
334-
JSDocNonNullableType = 271,
335-
JSDocOptionalType = 272,
336-
JSDocFunctionType = 273,
337-
JSDocVariadicType = 274,
338-
JSDocComment = 275,
339-
JSDocTag = 276,
340-
JSDocAugmentsTag = 277,
341-
JSDocClassTag = 278,
342-
JSDocParameterTag = 279,
343-
JSDocReturnTag = 280,
344-
JSDocTypeTag = 281,
345-
JSDocTemplateTag = 282,
346-
JSDocTypedefTag = 283,
347-
JSDocPropertyTag = 284,
348-
JSDocTypeLiteral = 285,
349-
SyntaxList = 286,
350-
NotEmittedStatement = 287,
351-
PartiallyEmittedExpression = 288,
352-
CommaListExpression = 289,
353-
MergeDeclarationMarker = 290,
354-
EndOfDeclarationMarker = 291,
355-
Count = 292,
316+
JsxFragment = 253,
317+
JsxOpeningFragment = 254,
318+
JsxClosingFragment = 255,
319+
JsxAttribute = 256,
320+
JsxAttributes = 257,
321+
JsxSpreadAttribute = 258,
322+
JsxExpression = 259,
323+
CaseClause = 260,
324+
DefaultClause = 261,
325+
HeritageClause = 262,
326+
CatchClause = 263,
327+
PropertyAssignment = 264,
328+
ShorthandPropertyAssignment = 265,
329+
SpreadAssignment = 266,
330+
EnumMember = 267,
331+
SourceFile = 268,
332+
Bundle = 269,
333+
JSDocTypeExpression = 270,
334+
JSDocAllType = 271,
335+
JSDocUnknownType = 272,
336+
JSDocNullableType = 273,
337+
JSDocNonNullableType = 274,
338+
JSDocOptionalType = 275,
339+
JSDocFunctionType = 276,
340+
JSDocVariadicType = 277,
341+
JSDocComment = 278,
342+
JSDocTag = 279,
343+
JSDocAugmentsTag = 280,
344+
JSDocClassTag = 281,
345+
JSDocParameterTag = 282,
346+
JSDocReturnTag = 283,
347+
JSDocTypeTag = 284,
348+
JSDocTemplateTag = 285,
349+
JSDocTypedefTag = 286,
350+
JSDocPropertyTag = 287,
351+
JSDocTypeLiteral = 288,
352+
SyntaxList = 289,
353+
NotEmittedStatement = 290,
354+
PartiallyEmittedExpression = 291,
355+
CommaListExpression = 292,
356+
MergeDeclarationMarker = 293,
357+
EndOfDeclarationMarker = 294,
358+
Count = 295,
356359
FirstAssignment = 58,
357360
LastAssignment = 70,
358361
FirstCompoundAssignment = 59,
@@ -378,10 +381,10 @@ declare namespace ts {
378381
FirstBinaryOperator = 27,
379382
LastBinaryOperator = 70,
380383
FirstNode = 143,
381-
FirstJSDocNode = 267,
382-
LastJSDocNode = 285,
383-
FirstJSDocTagNode = 276,
384-
LastJSDocTagNode = 285,
384+
FirstJSDocNode = 270,
385+
LastJSDocNode = 288,
386+
FirstJSDocTagNode = 279,
387+
LastJSDocTagNode = 288,
385388
}
386389
enum NodeFlags {
387390
None = 0,
@@ -1061,6 +1064,20 @@ declare namespace ts {
10611064
tagName: JsxTagNameExpression;
10621065
attributes: JsxAttributes;
10631066
}
1067+
interface JsxFragment extends PrimaryExpression {
1068+
kind: SyntaxKind.JsxFragment;
1069+
openingFragment: JsxOpeningFragment;
1070+
children: NodeArray<JsxChild>;
1071+
closingFragment: JsxClosingFragment;
1072+
}
1073+
interface JsxOpeningFragment extends Expression {
1074+
kind: SyntaxKind.JsxOpeningFragment;
1075+
parent?: JsxFragment;
1076+
}
1077+
interface JsxClosingFragment extends Expression {
1078+
kind: SyntaxKind.JsxClosingFragment;
1079+
parent?: JsxFragment;
1080+
}
10641081
interface JsxAttribute extends ObjectLiteralElement {
10651082
kind: SyntaxKind.JsxAttribute;
10661083
parent?: JsxAttributes;
@@ -1088,7 +1105,7 @@ declare namespace ts {
10881105
containsOnlyWhiteSpaces: boolean;
10891106
parent?: JsxElement;
10901107
}
1091-
type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement;
1108+
type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
10921109
interface Statement extends Node {
10931110
_statementBrand: any;
10941111
}
@@ -2999,6 +3016,9 @@ declare namespace ts {
29993016
function isJsxSelfClosingElement(node: Node): node is JsxSelfClosingElement;
30003017
function isJsxOpeningElement(node: Node): node is JsxOpeningElement;
30013018
function isJsxClosingElement(node: Node): node is JsxClosingElement;
3019+
function isJsxFragment(node: Node): node is JsxFragment;
3020+
function isJsxOpeningFragment(node: Node): node is JsxOpeningFragment;
3021+
function isJsxClosingFragment(node: Node): node is JsxClosingFragment;
30023022
function isJsxAttribute(node: Node): node is JsxAttribute;
30033023
function isJsxAttributes(node: Node): node is JsxAttributes;
30043024
function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute;
@@ -3497,6 +3517,8 @@ declare namespace ts {
34973517
function updateJsxOpeningElement(node: JsxOpeningElement, tagName: JsxTagNameExpression, attributes: JsxAttributes): JsxOpeningElement;
34983518
function createJsxClosingElement(tagName: JsxTagNameExpression): JsxClosingElement;
34993519
function updateJsxClosingElement(node: JsxClosingElement, tagName: JsxTagNameExpression): JsxClosingElement;
3520+
function createJsxFragment(openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment;
3521+
function updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment;
35003522
function createJsxAttribute(name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute;
35013523
function updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute;
35023524
function createJsxAttributes(properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes;

tests/baselines/reference/api/typescript.d.ts

Lines changed: 67 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -313,46 +313,49 @@ declare namespace ts {
313313
JsxSelfClosingElement = 250,
314314
JsxOpeningElement = 251,
315315
JsxClosingElement = 252,
316-
JsxAttribute = 253,
317-
JsxAttributes = 254,
318-
JsxSpreadAttribute = 255,
319-
JsxExpression = 256,
320-
CaseClause = 257,
321-
DefaultClause = 258,
322-
HeritageClause = 259,
323-
CatchClause = 260,
324-
PropertyAssignment = 261,
325-
ShorthandPropertyAssignment = 262,
326-
SpreadAssignment = 263,
327-
EnumMember = 264,
328-
SourceFile = 265,
329-
Bundle = 266,
330-
JSDocTypeExpression = 267,
331-
JSDocAllType = 268,
332-
JSDocUnknownType = 269,
333-
JSDocNullableType = 270,
334-
JSDocNonNullableType = 271,
335-
JSDocOptionalType = 272,
336-
JSDocFunctionType = 273,
337-
JSDocVariadicType = 274,
338-
JSDocComment = 275,
339-
JSDocTag = 276,
340-
JSDocAugmentsTag = 277,
341-
JSDocClassTag = 278,
342-
JSDocParameterTag = 279,
343-
JSDocReturnTag = 280,
344-
JSDocTypeTag = 281,
345-
JSDocTemplateTag = 282,
346-
JSDocTypedefTag = 283,
347-
JSDocPropertyTag = 284,
348-
JSDocTypeLiteral = 285,
349-
SyntaxList = 286,
350-
NotEmittedStatement = 287,
351-
PartiallyEmittedExpression = 288,
352-
CommaListExpression = 289,
353-
MergeDeclarationMarker = 290,
354-
EndOfDeclarationMarker = 291,
355-
Count = 292,
316+
JsxFragment = 253,
317+
JsxOpeningFragment = 254,
318+
JsxClosingFragment = 255,
319+
JsxAttribute = 256,
320+
JsxAttributes = 257,
321+
JsxSpreadAttribute = 258,
322+
JsxExpression = 259,
323+
CaseClause = 260,
324+
DefaultClause = 261,
325+
HeritageClause = 262,
326+
CatchClause = 263,
327+
PropertyAssignment = 264,
328+
ShorthandPropertyAssignment = 265,
329+
SpreadAssignment = 266,
330+
EnumMember = 267,
331+
SourceFile = 268,
332+
Bundle = 269,
333+
JSDocTypeExpression = 270,
334+
JSDocAllType = 271,
335+
JSDocUnknownType = 272,
336+
JSDocNullableType = 273,
337+
JSDocNonNullableType = 274,
338+
JSDocOptionalType = 275,
339+
JSDocFunctionType = 276,
340+
JSDocVariadicType = 277,
341+
JSDocComment = 278,
342+
JSDocTag = 279,
343+
JSDocAugmentsTag = 280,
344+
JSDocClassTag = 281,
345+
JSDocParameterTag = 282,
346+
JSDocReturnTag = 283,
347+
JSDocTypeTag = 284,
348+
JSDocTemplateTag = 285,
349+
JSDocTypedefTag = 286,
350+
JSDocPropertyTag = 287,
351+
JSDocTypeLiteral = 288,
352+
SyntaxList = 289,
353+
NotEmittedStatement = 290,
354+
PartiallyEmittedExpression = 291,
355+
CommaListExpression = 292,
356+
MergeDeclarationMarker = 293,
357+
EndOfDeclarationMarker = 294,
358+
Count = 295,
356359
FirstAssignment = 58,
357360
LastAssignment = 70,
358361
FirstCompoundAssignment = 59,
@@ -378,10 +381,10 @@ declare namespace ts {
378381
FirstBinaryOperator = 27,
379382
LastBinaryOperator = 70,
380383
FirstNode = 143,
381-
FirstJSDocNode = 267,
382-
LastJSDocNode = 285,
383-
FirstJSDocTagNode = 276,
384-
LastJSDocTagNode = 285,
384+
FirstJSDocNode = 270,
385+
LastJSDocNode = 288,
386+
FirstJSDocTagNode = 279,
387+
LastJSDocTagNode = 288,
385388
}
386389
enum NodeFlags {
387390
None = 0,
@@ -1061,6 +1064,20 @@ declare namespace ts {
10611064
tagName: JsxTagNameExpression;
10621065
attributes: JsxAttributes;
10631066
}
1067+
interface JsxFragment extends PrimaryExpression {
1068+
kind: SyntaxKind.JsxFragment;
1069+
openingFragment: JsxOpeningFragment;
1070+
children: NodeArray<JsxChild>;
1071+
closingFragment: JsxClosingFragment;
1072+
}
1073+
interface JsxOpeningFragment extends Expression {
1074+
kind: SyntaxKind.JsxOpeningFragment;
1075+
parent?: JsxFragment;
1076+
}
1077+
interface JsxClosingFragment extends Expression {
1078+
kind: SyntaxKind.JsxClosingFragment;
1079+
parent?: JsxFragment;
1080+
}
10641081
interface JsxAttribute extends ObjectLiteralElement {
10651082
kind: SyntaxKind.JsxAttribute;
10661083
parent?: JsxAttributes;
@@ -1088,7 +1105,7 @@ declare namespace ts {
10881105
containsOnlyWhiteSpaces: boolean;
10891106
parent?: JsxElement;
10901107
}
1091-
type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement;
1108+
type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
10921109
interface Statement extends Node {
10931110
_statementBrand: any;
10941111
}
@@ -3054,6 +3071,9 @@ declare namespace ts {
30543071
function isJsxSelfClosingElement(node: Node): node is JsxSelfClosingElement;
30553072
function isJsxOpeningElement(node: Node): node is JsxOpeningElement;
30563073
function isJsxClosingElement(node: Node): node is JsxClosingElement;
3074+
function isJsxFragment(node: Node): node is JsxFragment;
3075+
function isJsxOpeningFragment(node: Node): node is JsxOpeningFragment;
3076+
function isJsxClosingFragment(node: Node): node is JsxClosingFragment;
30573077
function isJsxAttribute(node: Node): node is JsxAttribute;
30583078
function isJsxAttributes(node: Node): node is JsxAttributes;
30593079
function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute;
@@ -3444,6 +3464,8 @@ declare namespace ts {
34443464
function updateJsxOpeningElement(node: JsxOpeningElement, tagName: JsxTagNameExpression, attributes: JsxAttributes): JsxOpeningElement;
34453465
function createJsxClosingElement(tagName: JsxTagNameExpression): JsxClosingElement;
34463466
function updateJsxClosingElement(node: JsxClosingElement, tagName: JsxTagNameExpression): JsxClosingElement;
3467+
function createJsxFragment(openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment;
3468+
function updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: ReadonlyArray<JsxChild>, closingFragment: JsxClosingFragment): JsxFragment;
34473469
function createJsxAttribute(name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute;
34483470
function updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: StringLiteral | JsxExpression): JsxAttribute;
34493471
function createJsxAttributes(properties: ReadonlyArray<JsxAttributeLike>): JsxAttributes;

0 commit comments

Comments
 (0)