80363598d16d6977115ff15fce49c055af84329e947a5e5d7026c7c5301b7919a183edd65323f5acf34cf6993a63598a0a368c25fa34584220e2d26946e663 931 B

1234567891011121314151617181920212223
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. export class LinePart {
  6. constructor(
  7. /**
  8. * last char index of this token (not inclusive).
  9. */
  10. endIndex, type, metadata, containsRTL) {
  11. this.endIndex = endIndex;
  12. this.type = type;
  13. this.metadata = metadata;
  14. this.containsRTL = containsRTL;
  15. this._linePartBrand = undefined;
  16. }
  17. isWhitespace() {
  18. return (this.metadata & 1 /* LinePartMetadata.IS_WHITESPACE_MASK */ ? true : false);
  19. }
  20. isPseudoAfter() {
  21. return (this.metadata & 4 /* LinePartMetadata.PSEUDO_AFTER_MASK */ ? true : false);
  22. }
  23. }