// Sample Fixture — Minimal TypeScript file with known symbols for LSP testing. // Used by integration tests to validate hover, definition, references, etc. /** * A sample class for testing LSP features. * @example new SampleClass("hello") */ export class SampleClass { public readonly name: string; constructor(name: string) { this.name = name; } /** Returns a greeting using the instance name. */ greet(): string { return `Hello, ${this.name}!`; } } /** A constant value for reference testing. */ export const SAMPLE_CONSTANT = 42; /** Creates a new SampleClass with a default name. */ export function createSample(): SampleClass { return new SampleClass("default"); } // Internal helper — not exported, used to test definition lookups. function internalHelper(value: number): string { return String(value); } /** Uses the internal helper and constant for cross-reference testing. */ export function useInternal(): string { const instance = createSample(); return internalHelper(SAMPLE_CONSTANT) + instance.greet(); }