Enable --strictPropertyInitialization (#27558)

* Enable --strictPropertyInitialization

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

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;