monaco-editor-core
Version:
A browser based code editor
24 lines • 967 B
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export class LinePart {
constructor(
/**
* last char index of this token (not inclusive).
*/
endIndex, type, metadata, containsRTL) {
this.endIndex = endIndex;
this.type = type;
this.metadata = metadata;
this.containsRTL = containsRTL;
this._linePartBrand = undefined;
}
isWhitespace() {
return (this.metadata & 1 /* LinePartMetadata.IS_WHITESPACE_MASK */ ? true : false);
}
isPseudoAfter() {
return (this.metadata & 4 /* LinePartMetadata.PSEUDO_AFTER_MASK */ ? true : false);
}
}
//# sourceMappingURL=linePart.js.map