mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 05:51:32 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user