* Emit leading and trailing on binary operator * Add tests and baselines * Update baselines
30 lines
536 B
Plaintext
30 lines
536 B
Plaintext
=== tests/cases/compiler/commentOnBinaryOperator2.ts ===
|
|
var a = 'some'
|
|
>a : string
|
|
>'some' // comment + 'text' : string
|
|
>'some' : "some"
|
|
|
|
// comment
|
|
+ 'text';
|
|
>'text' : "text"
|
|
|
|
var b = 'some'
|
|
>b : string
|
|
>'some' /* comment */ + 'text' : string
|
|
>'some' : "some"
|
|
|
|
/* comment */
|
|
+ 'text';
|
|
>'text' : "text"
|
|
|
|
var c = 'some'
|
|
>c : string
|
|
>'some' /* comment */ + /*comment1*/ 'text' : string
|
|
>'some' : "some"
|
|
|
|
/* comment */
|
|
+ /*comment1*/
|
|
'text';
|
|
>'text' : "text"
|
|
|