Skip to content

Commit f9338c6

Browse files
committed
Update LKG
1 parent bb53b84 commit f9338c6

8 files changed

+2100
-805
lines changed

Diff for: lib/tsc.js

+301-100
Large diffs are not rendered by default.

Diff for: lib/tsserver.js

+437-165
Large diffs are not rendered by default.

Diff for: lib/tsserverlibrary.d.ts

+39-9
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,10 @@ declare namespace ts {
744744
children: NodeArray<JsxChild>;
745745
closingElement: JsxClosingElement;
746746
}
747+
type JsxTagNameExpression = PrimaryExpression | PropertyAccessExpression;
747748
interface JsxOpeningElement extends Expression {
748749
_openingElementBrand?: any;
749-
tagName: EntityName;
750+
tagName: JsxTagNameExpression;
750751
attributes: NodeArray<JsxAttribute | JsxSpreadAttribute>;
751752
}
752753
interface JsxSelfClosingElement extends PrimaryExpression, JsxOpeningElement {
@@ -761,7 +762,7 @@ declare namespace ts {
761762
expression: Expression;
762763
}
763764
interface JsxClosingElement extends Node {
764-
tagName: EntityName;
765+
tagName: JsxTagNameExpression;
765766
}
766767
interface JsxExpression extends Expression {
767768
expression?: Expression;
@@ -1263,7 +1264,7 @@ declare namespace ts {
12631264
buildTypeParameterDisplay(tp: TypeParameter, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void;
12641265
buildTypePredicateDisplay(predicate: TypePredicate, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void;
12651266
buildTypeParameterDisplayFromSymbol(symbol: Symbol, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void;
1266-
buildDisplayForParametersAndDelimiters(thisType: Type, parameters: Symbol[], writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void;
1267+
buildDisplayForParametersAndDelimiters(thisParameter: Symbol, parameters: Symbol[], writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void;
12671268
buildDisplayForTypeParametersAndDelimiters(typeParameters: TypeParameter[], writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void;
12681269
buildReturnTypeDisplay(signature: Signature, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void;
12691270
}
@@ -1446,11 +1447,13 @@ declare namespace ts {
14461447
members?: SymbolTable;
14471448
exports?: SymbolTable;
14481449
globalExports?: SymbolTable;
1450+
isReadonly?: boolean;
14491451
id?: number;
14501452
mergeId?: number;
14511453
parent?: Symbol;
14521454
exportSymbol?: Symbol;
14531455
constEnumOnlyModule?: boolean;
1456+
hasReference?: boolean;
14541457
}
14551458
interface SymbolLinks {
14561459
target?: Symbol;
@@ -1639,7 +1642,7 @@ declare namespace ts {
16391642
declaration: SignatureDeclaration;
16401643
typeParameters: TypeParameter[];
16411644
parameters: Symbol[];
1642-
thisType?: Type;
1645+
thisParameter?: Symbol;
16431646
resolvedReturnType: Type;
16441647
minArgumentCount: number;
16451648
hasRestParameter: boolean;
@@ -1757,6 +1760,8 @@ declare namespace ts {
17571760
noImplicitAny?: boolean;
17581761
noImplicitReturns?: boolean;
17591762
noImplicitThis?: boolean;
1763+
noUnusedLocals?: boolean;
1764+
noUnusedParameters?: boolean;
17601765
noImplicitUseStrict?: boolean;
17611766
noLib?: boolean;
17621767
noResolve?: boolean;
@@ -1785,7 +1790,6 @@ declare namespace ts {
17851790
disableSizeLimit?: boolean;
17861791
types?: string[];
17871792
typeRoots?: string[];
1788-
typesSearchPaths?: string[];
17891793
version?: boolean;
17901794
watch?: boolean;
17911795
[option: string]: CompilerOptionsValue | undefined;
@@ -6438,6 +6442,24 @@ declare namespace ts {
64386442
key: string;
64396443
message: string;
64406444
};
6445+
_0_is_declared_but_never_used: {
6446+
code: number;
6447+
category: DiagnosticCategory;
6448+
key: string;
6449+
message: string;
6450+
};
6451+
Report_Errors_on_Unused_Locals: {
6452+
code: number;
6453+
category: DiagnosticCategory;
6454+
key: string;
6455+
message: string;
6456+
};
6457+
Report_Errors_on_Unused_Parameters: {
6458+
code: number;
6459+
category: DiagnosticCategory;
6460+
key: string;
6461+
message: string;
6462+
};
64416463
Variable_0_implicitly_has_an_1_type: {
64426464
code: number;
64436465
category: DiagnosticCategory;
@@ -6981,7 +7003,7 @@ declare namespace ts {
69817003
function isLiteralComputedPropertyDeclarationName(node: Node): boolean;
69827004
function isIdentifierName(node: Identifier): boolean;
69837005
function isAliasSymbolDeclaration(node: Node): boolean;
6984-
function getClassExtendsHeritageClauseElement(node: ClassLikeDeclaration): ExpressionWithTypeArguments;
7006+
function getClassExtendsHeritageClauseElement(node: ClassLikeDeclaration | InterfaceDeclaration): ExpressionWithTypeArguments;
69857007
function getClassImplementsHeritageClauseElements(node: ClassLikeDeclaration): NodeArray<ExpressionWithTypeArguments>;
69867008
function getInterfaceBaseTypeNodes(node: InterfaceDeclaration): NodeArray<ExpressionWithTypeArguments>;
69877009
function getHeritageClause(clauses: NodeArray<HeritageClause>, kind: SyntaxKind): HeritageClause;
@@ -7688,6 +7710,7 @@ declare namespace ts.formatting {
76887710
declare namespace ts.formatting {
76897711
namespace SmartIndenter {
76907712
function getIndentation(position: number, sourceFile: SourceFile, options: EditorOptions): number;
7713+
function getBaseIndentation(options: EditorOptions): number;
76917714
function getIndentationForNode(n: Node, ignoreActualIndentationRange: TextRange, sourceFile: SourceFile, options: FormatCodeOptions): number;
76927715
function childStartsOnTheSameLineWithElseInIfStatement(parent: Node, child: TextRangeWithKind, childStartLine: number, sourceFile: SourceFile): boolean;
76937716
function findFirstNonWhitespaceCharacterAndColumn(startPos: number, endPos: number, sourceFile: SourceFile, options: EditorOptions): {
@@ -7826,7 +7849,7 @@ declare namespace ts {
78267849
getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions): TextChange[];
78277850
getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions): TextChange[];
78287851
getDocCommentTemplateAtPosition(fileName: string, position: number): TextInsertion;
7829-
isValidBraceCompletionAtPostion(fileName: string, position: number, openingBrace: number): boolean;
7852+
isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean;
78307853
getEmitOutput(fileName: string): EmitOutput;
78317854
getProgram(): Program;
78327855
getNonBoundSourceFile(fileName: string): SourceFile;
@@ -7904,6 +7927,7 @@ declare namespace ts {
79047927
containerKind: string;
79057928
}
79067929
interface EditorOptions {
7930+
BaseIndentSize?: number;
79077931
IndentSize: number;
79087932
TabSize: number;
79097933
NewLineCharacter: string;
@@ -7926,7 +7950,7 @@ declare namespace ts {
79267950
InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean;
79277951
PlaceOpenBraceOnNewLineForFunctions: boolean;
79287952
PlaceOpenBraceOnNewLineForControlBlocks: boolean;
7929-
[s: string]: boolean | number | string;
7953+
[s: string]: boolean | number | string | undefined;
79307954
}
79317955
interface DefinitionInfo {
79327956
fileName: string;
@@ -8231,6 +8255,8 @@ declare namespace ts.server {
82318255
const Formatonkey: string;
82328256
const Geterr: string;
82338257
const GeterrForProject: string;
8258+
const SemanticDiagnosticsSync: string;
8259+
const SyntacticDiagnosticsSync: string;
82348260
const NavBar: string;
82358261
const Navto: string;
82368262
const Occurrences: string;
@@ -8277,6 +8303,9 @@ declare namespace ts.server {
82778303
private getDefinition(line, offset, fileName);
82788304
private getTypeDefinition(line, offset, fileName);
82798305
private getOccurrences(line, offset, fileName);
8306+
private getDiagnosticsWorker(args, selector);
8307+
private getSyntacticDiagnosticsSync(args);
8308+
private getSemanticDiagnosticsSync(args);
82808309
private getDocumentHighlights(line, offset, fileName, filesToSearch);
82818310
private getProjectInfo(fileName, needFileNameList);
82828311
private getRenameLocations(line, offset, fileName, findInComments, findInStrings);
@@ -8300,6 +8329,7 @@ declare namespace ts.server {
83008329
getDiagnosticsForProject(delay: number, fileName: string): void;
83018330
getCanonicalFileName(fileName: string): string;
83028331
exit(): void;
8332+
private requiredResponse(response);
83038333
private handlers;
83048334
addProtocolHandler(command: string, handler: (request: protocol.Request) => {
83058335
response?: any;
@@ -8731,7 +8761,7 @@ declare namespace ts {
87318761
getFormattingEditsForDocument(fileName: string, options: string): string;
87328762
getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: string): string;
87338763
getDocCommentTemplateAtPosition(fileName: string, position: number): string;
8734-
isValidBraceCompletionAtPostion(fileName: string, position: number, openingBrace: number): string;
8764+
isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): string;
87358765
getEmitOutput(fileName: string): string;
87368766
}
87378767
interface ClassifierShim extends Shim {

0 commit comments

Comments
 (0)