Debian Codegraph @

tests/query/highlights/tsx/elements.tsx

raw
1 function add(a: number): number {
2 // ^ @function
3 // ^ @variable.parameter
4 // ^ @type.builtin
5 return a + 1;
6 }
7 const el = <Foo bar={add(2)}>hi</Foo>;
8 // ^ @constructor
9 // ^ @attribute
10 // ^ @function
11 // ^ @constructor