Path: blob/main/src/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { URI } from '../../../../base/common/uri.js';67export class StickyRange {8constructor(9public readonly startLineNumber: number,10public readonly endLineNumber: number11) { }12}1314export class StickyElement {1516constructor(17/**18* Range of line numbers spanned by the current scope19*/20public readonly range: StickyRange | undefined,21/**22* Must be sorted by start line number23*/24public readonly children: StickyElement[],25/**26* Parent sticky outline element27*/28public readonly parent: StickyElement | undefined29) {30}31}3233export class StickyModel {34constructor(35readonly uri: URI,36readonly version: number,37readonly element: StickyElement | undefined,38readonly outlineProviderId: string | undefined39) { }40}414243