Files
2026-06-20 14:49:53 +09:00

12 lines
316 B
TypeScript

function add(a: number): number {
// ^ @function
// ^ @variable.parameter
// ^ @type.builtin
return a + 1;
}
const el = <Foo bar={add(2)}>hi</Foo>;
// ^ @constructor
// ^ @attribute
// ^ @function
// ^ @constructor