Enable --strictPropertyInitialization (#27558)

* Enable --strictPropertyInitialization

* Code review
This commit is contained in:
Andy authored and GitHub committed 2018-11-16 16:02:23 -08:00
1 parent 6bb1ff2214
commit 12f3d0d54c
26 files changed
+168 -165

No files matched your search

+3 -3
View File
@@ -41,11 +41,11 @@ namespace ts.server {
// path to start of range
private readonly startPath: LineCollection[];
private readonly endBranch: LineCollection[] = [];
private branchNode: LineNode;
private branchNode: LineNode | undefined;
// path to current node
private readonly stack: LineNode[];
private state = CharRangeSection.Entire;
private lineCollectionAtBranch: LineCollection;
private lineCollectionAtBranch: LineCollection | undefined;
private initialText = "";
private trailingText = "";
@@ -383,7 +383,7 @@ namespace ts.server {
}
export class LineIndex {
root: LineNode;
root!: LineNode;
// set this to true to check each edit for accuracy
checkEdits = false;