File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,10 @@ export function main() {
55 it ( 'string interpolation' , function ( ) {
66 expect ( `${ 123 } -'${ 456 } "` ) . toEqual ( '123-\'456"' ) ;
77 } ) ;
8+
9+ it ( 'multiline string' , function ( ) {
10+ expect ( `1'
11+ 2"` ) . toEqual ( '1\'\n2"' ) ;
12+ } ) ;
813 } ) ;
914}
Original file line number Diff line number Diff line change @@ -75,12 +75,11 @@ export class DartParseTreeWriter extends JavaScriptParseTreeWriter {
7575
7676 visitTemplateLiteralExpression ( tree ) {
7777 if ( tree . operand ) {
78- this . visitAny ( tree . operand ) ;
79- this . writeSpace_ ( ) ;
78+ throw new Error ( 'tagged template strings are not supported' ) ;
8079 }
81- this . writeRaw_ ( '"' ) ;
80+ this . writeRaw_ ( "'''" ) ;
8281 this . visitList ( tree . elements ) ;
83- this . writeRaw_ ( '"' ) ;
82+ this . writeRaw_ ( "'''" ) ;
8483 }
8584
8685 visitTemplateLiteralPortion ( tree ) {
You can’t perform that action at this time.
0 commit comments