Emmet strict mode move, part 2 (#37840)

Continue moving emmet extension to strict mode. This change does the following:

- Remove jsdoc types. These are unused in ts files and can easily get out of date
- Annotate when something can return undefined
- Add null checks for when something can be undefined
- Add explicit types when something can be any
This commit is contained in:
Matt Bierner
2017-11-20 14:08:49 -08:00
committed by GitHub
parent c93e6c60ab
commit 7965160a6d
13 changed files with 85 additions and 103 deletions

View File

@@ -20,11 +20,6 @@ export class DocumentStreamReader {
public pos: Position;
private _eol: string;
/**
* @param {TextDocument} buffer
* @param {Position} pos
* @param {Range} limit
*/
constructor(document: TextDocument, pos?: Position, limit?: Range) {
this.document = document;
@@ -35,9 +30,8 @@ export class DocumentStreamReader {
/**
* Returns true only if the stream is at the end of the file.
* @returns {Boolean}
*/
eof() {
eof(): boolean {
return this.pos.isAfterOrEqual(this._eof);
}