be2eb8a2e1
* Allowed comment directives to be multiline * Added tests, and perhaps fixed a test runner bug? * I think it's going to need a consistent variable to loop over * Used dynamically computed indexes in verifies * Added multiline tests * Increased flexibility for multiline comment parsing * Undid a couple of formatting changes; removed backslashes from multiline regexp * Added baseline tests for multiline comment skipping Co-authored-by: Orta Therox <orta.therox@gmail.com>
63 lines
643 B
Plaintext
63 lines
643 B
Plaintext
=== tests/cases/compiler/a.js ===
|
|
var x = 0;
|
|
>x : number
|
|
>0 : 0
|
|
|
|
|
|
/// @ts-ignore
|
|
x();
|
|
>x() : any
|
|
>x : number
|
|
|
|
/// @ts-ignore
|
|
x();
|
|
>x() : any
|
|
>x : number
|
|
|
|
/// @ts-ignore
|
|
x(
|
|
>x( 2, 3) : any
|
|
>x : number
|
|
|
|
2,
|
|
>2 : 2
|
|
|
|
3);
|
|
>3 : 3
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
// come comment
|
|
// some other comment
|
|
|
|
// @another
|
|
|
|
x();
|
|
>x() : any
|
|
>x : number
|
|
|
|
/* @ts-ignore */
|
|
/*another comment
|
|
that could be multiline*/
|
|
|
|
x();
|
|
>x() : any
|
|
>x : number
|
|
|
|
/* @ts-ignore
|
|
continuing comment
|
|
that could be multiline*/
|
|
|
|
x();
|
|
>x() : any
|
|
>x : number
|
|
|
|
|
|
|
|
// @ts-ignore: no call signature
|
|
x();
|
|
>x() : any
|
|
>x : number
|
|
|