src/vs/editor/standalone/common/monarch/monarchLexer.ts/MonarchClassicTokensCollector/emit
class MonarchClassicTokensCollector:	public emit(startOffset: number, type: string): void {
		if (this._lastTokenType === type && this._lastTokenLanguage === this._languageId) {
			return;
		}
		this._lastTokenType = type;
		this._lastTokenLanguage = this._languageId;
		this._tokens.push(new languages.Token(startOffset, type, this._languageId!));
	}