Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Aug 22, 2022
1 parent 1e6d76e commit 577411c
Show file tree
Hide file tree
Showing 9 changed files with 246 additions and 240 deletions.
80 changes: 40 additions & 40 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24532,17 +24532,6 @@ var ts;
|| kind === 173;
}
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
function canHaveDecorators(node) {
var kind = node.kind;
return kind === 164
|| kind === 167
|| kind === 169
|| kind === 172
|| kind === 173
|| kind === 226
|| kind === 257;
}
ts.canHaveDecorators = canHaveDecorators;
function canHaveIllegalDecorators(node) {
var kind = node.kind;
return kind === 296
Expand All @@ -24564,35 +24553,6 @@ var ts;
|| kind === 271;
}
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
function canHaveModifiers(node) {
var kind = node.kind;
return kind === 163
|| kind === 164
|| kind === 166
|| kind === 167
|| kind === 168
|| kind === 169
|| kind === 171
|| kind === 172
|| kind === 173
|| kind === 176
|| kind === 180
|| kind === 213
|| kind === 214
|| kind === 226
|| kind === 237
|| kind === 256
|| kind === 257
|| kind === 258
|| kind === 259
|| kind === 260
|| kind === 261
|| kind === 265
|| kind === 266
|| kind === 271
|| kind === 272;
}
ts.canHaveModifiers = canHaveModifiers;
function canHaveIllegalModifiers(node) {
var kind = node.kind;
return kind === 170
Expand Down Expand Up @@ -24840,6 +24800,46 @@ var ts;
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
}
ts.setTextRange = setTextRange;
function canHaveModifiers(node) {
var kind = node.kind;
return kind === 163
|| kind === 164
|| kind === 166
|| kind === 167
|| kind === 168
|| kind === 169
|| kind === 171
|| kind === 172
|| kind === 173
|| kind === 176
|| kind === 180
|| kind === 213
|| kind === 214
|| kind === 226
|| kind === 237
|| kind === 256
|| kind === 257
|| kind === 258
|| kind === 259
|| kind === 260
|| kind === 261
|| kind === 265
|| kind === 266
|| kind === 271
|| kind === 272;
}
ts.canHaveModifiers = canHaveModifiers;
function canHaveDecorators(node) {
var kind = node.kind;
return kind === 164
|| kind === 167
|| kind === 169
|| kind === 172
|| kind === 173
|| kind === 226
|| kind === 257;
}
ts.canHaveDecorators = canHaveDecorators;
})(ts || (ts = {}));
var ts;
(function (ts) {
Expand Down
80 changes: 40 additions & 40 deletions lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -30512,17 +30512,6 @@ var ts;
|| kind === 173 /* SyntaxKind.SetAccessor */;
}
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
function canHaveDecorators(node) {
var kind = node.kind;
return kind === 164 /* SyntaxKind.Parameter */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 257 /* SyntaxKind.ClassDeclaration */;
}
ts.canHaveDecorators = canHaveDecorators;
function canHaveIllegalDecorators(node) {
var kind = node.kind;
return kind === 296 /* SyntaxKind.PropertyAssignment */
Expand All @@ -30544,35 +30533,6 @@ var ts;
|| kind === 271 /* SyntaxKind.ExportAssignment */;
}
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
function canHaveModifiers(node) {
var kind = node.kind;
return kind === 163 /* SyntaxKind.TypeParameter */
|| kind === 164 /* SyntaxKind.Parameter */
|| kind === 166 /* SyntaxKind.PropertySignature */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 168 /* SyntaxKind.MethodSignature */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 171 /* SyntaxKind.Constructor */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 176 /* SyntaxKind.IndexSignature */
|| kind === 180 /* SyntaxKind.ConstructorType */
|| kind === 213 /* SyntaxKind.FunctionExpression */
|| kind === 214 /* SyntaxKind.ArrowFunction */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 237 /* SyntaxKind.VariableStatement */
|| kind === 256 /* SyntaxKind.FunctionDeclaration */
|| kind === 257 /* SyntaxKind.ClassDeclaration */
|| kind === 258 /* SyntaxKind.InterfaceDeclaration */
|| kind === 259 /* SyntaxKind.TypeAliasDeclaration */
|| kind === 260 /* SyntaxKind.EnumDeclaration */
|| kind === 261 /* SyntaxKind.ModuleDeclaration */
|| kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
|| kind === 266 /* SyntaxKind.ImportDeclaration */
|| kind === 271 /* SyntaxKind.ExportAssignment */
|| kind === 272 /* SyntaxKind.ExportDeclaration */;
}
ts.canHaveModifiers = canHaveModifiers;
function canHaveIllegalModifiers(node) {
var kind = node.kind;
return kind === 170 /* SyntaxKind.ClassStaticBlockDeclaration */
Expand Down Expand Up @@ -30861,6 +30821,46 @@ var ts;
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
}
ts.setTextRange = setTextRange;
function canHaveModifiers(node) {
var kind = node.kind;
return kind === 163 /* SyntaxKind.TypeParameter */
|| kind === 164 /* SyntaxKind.Parameter */
|| kind === 166 /* SyntaxKind.PropertySignature */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 168 /* SyntaxKind.MethodSignature */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 171 /* SyntaxKind.Constructor */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 176 /* SyntaxKind.IndexSignature */
|| kind === 180 /* SyntaxKind.ConstructorType */
|| kind === 213 /* SyntaxKind.FunctionExpression */
|| kind === 214 /* SyntaxKind.ArrowFunction */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 237 /* SyntaxKind.VariableStatement */
|| kind === 256 /* SyntaxKind.FunctionDeclaration */
|| kind === 257 /* SyntaxKind.ClassDeclaration */
|| kind === 258 /* SyntaxKind.InterfaceDeclaration */
|| kind === 259 /* SyntaxKind.TypeAliasDeclaration */
|| kind === 260 /* SyntaxKind.EnumDeclaration */
|| kind === 261 /* SyntaxKind.ModuleDeclaration */
|| kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
|| kind === 266 /* SyntaxKind.ImportDeclaration */
|| kind === 271 /* SyntaxKind.ExportAssignment */
|| kind === 272 /* SyntaxKind.ExportDeclaration */;
}
ts.canHaveModifiers = canHaveModifiers;
function canHaveDecorators(node) {
var kind = node.kind;
return kind === 164 /* SyntaxKind.Parameter */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 257 /* SyntaxKind.ClassDeclaration */;
}
ts.canHaveDecorators = canHaveDecorators;
})(ts || (ts = {}));
var ts;
(function (ts) {
Expand Down
2 changes: 2 additions & 0 deletions lib/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4834,6 +4834,8 @@ declare namespace ts {
}
declare namespace ts {
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
function canHaveModifiers(node: Node): node is HasModifiers;
function canHaveDecorators(node: Node): node is HasDecorators;
}
declare namespace ts {
/**
Expand Down
80 changes: 40 additions & 40 deletions lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -30706,17 +30706,6 @@ var ts;
|| kind === 173 /* SyntaxKind.SetAccessor */;
}
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
function canHaveDecorators(node) {
var kind = node.kind;
return kind === 164 /* SyntaxKind.Parameter */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 257 /* SyntaxKind.ClassDeclaration */;
}
ts.canHaveDecorators = canHaveDecorators;
function canHaveIllegalDecorators(node) {
var kind = node.kind;
return kind === 296 /* SyntaxKind.PropertyAssignment */
Expand All @@ -30738,35 +30727,6 @@ var ts;
|| kind === 271 /* SyntaxKind.ExportAssignment */;
}
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
function canHaveModifiers(node) {
var kind = node.kind;
return kind === 163 /* SyntaxKind.TypeParameter */
|| kind === 164 /* SyntaxKind.Parameter */
|| kind === 166 /* SyntaxKind.PropertySignature */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 168 /* SyntaxKind.MethodSignature */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 171 /* SyntaxKind.Constructor */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 176 /* SyntaxKind.IndexSignature */
|| kind === 180 /* SyntaxKind.ConstructorType */
|| kind === 213 /* SyntaxKind.FunctionExpression */
|| kind === 214 /* SyntaxKind.ArrowFunction */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 237 /* SyntaxKind.VariableStatement */
|| kind === 256 /* SyntaxKind.FunctionDeclaration */
|| kind === 257 /* SyntaxKind.ClassDeclaration */
|| kind === 258 /* SyntaxKind.InterfaceDeclaration */
|| kind === 259 /* SyntaxKind.TypeAliasDeclaration */
|| kind === 260 /* SyntaxKind.EnumDeclaration */
|| kind === 261 /* SyntaxKind.ModuleDeclaration */
|| kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
|| kind === 266 /* SyntaxKind.ImportDeclaration */
|| kind === 271 /* SyntaxKind.ExportAssignment */
|| kind === 272 /* SyntaxKind.ExportDeclaration */;
}
ts.canHaveModifiers = canHaveModifiers;
function canHaveIllegalModifiers(node) {
var kind = node.kind;
return kind === 170 /* SyntaxKind.ClassStaticBlockDeclaration */
Expand Down Expand Up @@ -31055,6 +31015,46 @@ var ts;
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
}
ts.setTextRange = setTextRange;
function canHaveModifiers(node) {
var kind = node.kind;
return kind === 163 /* SyntaxKind.TypeParameter */
|| kind === 164 /* SyntaxKind.Parameter */
|| kind === 166 /* SyntaxKind.PropertySignature */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 168 /* SyntaxKind.MethodSignature */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 171 /* SyntaxKind.Constructor */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 176 /* SyntaxKind.IndexSignature */
|| kind === 180 /* SyntaxKind.ConstructorType */
|| kind === 213 /* SyntaxKind.FunctionExpression */
|| kind === 214 /* SyntaxKind.ArrowFunction */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 237 /* SyntaxKind.VariableStatement */
|| kind === 256 /* SyntaxKind.FunctionDeclaration */
|| kind === 257 /* SyntaxKind.ClassDeclaration */
|| kind === 258 /* SyntaxKind.InterfaceDeclaration */
|| kind === 259 /* SyntaxKind.TypeAliasDeclaration */
|| kind === 260 /* SyntaxKind.EnumDeclaration */
|| kind === 261 /* SyntaxKind.ModuleDeclaration */
|| kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
|| kind === 266 /* SyntaxKind.ImportDeclaration */
|| kind === 271 /* SyntaxKind.ExportAssignment */
|| kind === 272 /* SyntaxKind.ExportDeclaration */;
}
ts.canHaveModifiers = canHaveModifiers;
function canHaveDecorators(node) {
var kind = node.kind;
return kind === 164 /* SyntaxKind.Parameter */
|| kind === 167 /* SyntaxKind.PropertyDeclaration */
|| kind === 169 /* SyntaxKind.MethodDeclaration */
|| kind === 172 /* SyntaxKind.GetAccessor */
|| kind === 173 /* SyntaxKind.SetAccessor */
|| kind === 226 /* SyntaxKind.ClassExpression */
|| kind === 257 /* SyntaxKind.ClassDeclaration */;
}
ts.canHaveDecorators = canHaveDecorators;
})(ts || (ts = {}));
var ts;
(function (ts) {
Expand Down
2 changes: 2 additions & 0 deletions lib/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4834,6 +4834,8 @@ declare namespace ts {
}
declare namespace ts {
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
function canHaveModifiers(node: Node): node is HasModifiers;
function canHaveDecorators(node: Node): node is HasDecorators;
}
declare namespace ts {
/**
Expand Down
Loading

0 comments on commit 577411c

Please sign in to comment.