| 1234567891011121314151617181920212223 |
- /*---------------------------------------------------------------------------------------------
- * 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);
- }
- }
|