mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
3c6134d860
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
29 lines
520 B
Plaintext
29 lines
520 B
Plaintext
//// [tests/cases/compiler/jsDocCodeblockParsing.ts] ////
|
|
|
|
=== jsDocCodeblockParsing.ts ===
|
|
/**
|
|
* text
|
|
* @example Foo
|
|
* ```
|
|
* @Embed[asfasdfasf]
|
|
* ```
|
|
* becomes
|
|
* ```html
|
|
* <div></div>
|
|
* ```
|
|
*/
|
|
const x = 1;
|
|
>x : Symbol(x, Decl(jsDocCodeblockParsing.ts, 11, 5))
|
|
|
|
/**
|
|
* Some text
|
|
* ```
|
|
* @tag inside code
|
|
* ```
|
|
* @param y - a number
|
|
*/
|
|
function foo(y: number) {}
|
|
>foo : Symbol(foo, Decl(jsDocCodeblockParsing.ts, 11, 12))
|
|
>y : Symbol(y, Decl(jsDocCodeblockParsing.ts, 20, 13))
|
|
|