mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
43 lines
721 B
JSON
43 lines
721 B
JSON
// === Code Lenses ===
|
|
// === /exports.ts ===
|
|
//
|
|
// let callCount = 0;
|
|
// export function /*CODELENS: 3 references*/foo(n: number): void {
|
|
// callCount++;
|
|
// if (n > 0) {
|
|
// [|foo|](n - 1);
|
|
// }
|
|
// else {
|
|
// console.log("function was called " + callCount + " times");
|
|
// }
|
|
// }
|
|
//
|
|
// [|foo|](5);
|
|
//
|
|
// export const bar = 123;
|
|
//
|
|
|
|
// === /importer.ts ===
|
|
// import { foo, bar } from "./exports";
|
|
//
|
|
// [|foo|](5);
|
|
// console.log(bar);
|
|
//
|
|
|
|
|
|
|
|
// === Code Lenses ===
|
|
// === /importer.ts ===
|
|
// import { foo, bar } from "./exports";
|
|
//
|
|
// foo(5);
|
|
// console.log([|bar|]);
|
|
//
|
|
|
|
// === /exports.ts ===
|
|
// --- (line: 11) skipped ---
|
|
//
|
|
// foo(5);
|
|
//
|
|
// export const /*CODELENS: 1 reference*/bar = 123;
|
|
// |