mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
48 lines
1.0 KiB
JSON
48 lines
1.0 KiB
JSON
// === goToDefinition ===
|
|
// === /file.tsx ===
|
|
// declare namespace JSX {
|
|
// interface Element { }
|
|
// interface IntrinsicElements { }
|
|
// interface ElementAttributesProperty { props; }
|
|
// }
|
|
// <|class [|MyClass|] {
|
|
// props: {
|
|
// foo: string;
|
|
// }
|
|
// }|>
|
|
// var x = <My/*GOTO DEF*/Class />;
|
|
// var y = <MyClass foo= 'hello' />;
|
|
// var z = <MyClass wrong= 'hello' />;
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /file.tsx ===
|
|
// --- (line: 4) skipped ---
|
|
// }
|
|
// class MyClass {
|
|
// props: {
|
|
// <|[|foo|]: string;|>
|
|
// }
|
|
// }
|
|
// var x = <MyClass />;
|
|
// var y = <MyClass f/*GOTO DEF*/oo= 'hello' />;
|
|
// var z = <MyClass wrong= 'hello' />;
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /file.tsx ===
|
|
// declare namespace JSX {
|
|
// interface Element { }
|
|
// interface IntrinsicElements { }
|
|
// interface ElementAttributesProperty { props; }
|
|
// }
|
|
// <|class [|MyClass|] {
|
|
// props: {
|
|
// foo: string;
|
|
// }
|
|
// }|>
|
|
// var x = <MyClass />;
|
|
// var y = <MyClass foo= 'hello' />;
|
|
// var z = <MyCl/*GOTO DEF*/ass wrong= 'hello' />; |