@@ -9124,10 +9124,8 @@ export class TestComponent {
91249124 count = 0;
91259125}
91269126"# ;
9127- let options = ComponentTransformOptions {
9128- strip_uninitialized_fields : true ,
9129- ..Default :: default ( )
9130- } ;
9127+ let options =
9128+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
91319129 let result =
91329130 transform_angular_file ( & allocator, "test.component.ts" , source, Some ( & options) , None ) ;
91339131 assert ! ( !result. has_errors( ) , "Should not have errors: {:?}" , result. diagnostics) ;
@@ -9163,10 +9161,8 @@ export class TestComponent {
91639161 count = 0;
91649162}
91659163"# ;
9166- let options = ComponentTransformOptions {
9167- strip_uninitialized_fields : true ,
9168- ..Default :: default ( )
9169- } ;
9164+ let options =
9165+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
91709166 let result =
91719167 transform_angular_file ( & allocator, "test.component.ts" , source, Some ( & options) , None ) ;
91729168 assert ! ( !result. has_errors( ) , "Should not have errors: {:?}" , result. diagnostics) ;
@@ -9194,12 +9190,9 @@ class MyClass {
91949190 count = 0;
91959191}
91969192"# ;
9197- let options = ComponentTransformOptions {
9198- strip_uninitialized_fields : true ,
9199- ..Default :: default ( )
9200- } ;
9201- let result =
9202- transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
9193+ let options =
9194+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
9195+ let result = transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
92039196
92049197 assert ! (
92059198 result. code. contains( "static label" ) ,
@@ -9228,12 +9221,9 @@ class MyClass {
92289221 count = 0;
92299222}
92309223"# ;
9231- let options = ComponentTransformOptions {
9232- strip_uninitialized_fields : true ,
9233- ..Default :: default ( )
9234- } ;
9235- let result =
9236- transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
9224+ let options =
9225+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
9226+ let result = transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
92379227
92389228 assert ! (
92399229 !result. code. contains( "declare" ) && !result. code. contains( "name" ) ,
@@ -9260,18 +9250,27 @@ class MyClass {
92609250 str = 'hello';
92619251}
92629252"# ;
9263- let options = ComponentTransformOptions {
9264- strip_uninitialized_fields : true ,
9265- ..Default :: default ( )
9266- } ;
9267- let result =
9268- transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
9253+ let options =
9254+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
9255+ let result = transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
92699256
92709257 assert ! ( result. code. contains( "items = []" ) , "items should be preserved. Got:\n {}" , result. code) ;
9271- assert ! ( result. code. contains( "callback = () => {}" ) , "callback should be preserved. Got:\n {}" , result. code) ;
9272- assert ! ( result. code. contains( "flag = false" ) , "flag should be preserved. Got:\n {}" , result. code) ;
9258+ assert ! (
9259+ result. code. contains( "callback = () => {}" ) ,
9260+ "callback should be preserved. Got:\n {}" ,
9261+ result. code
9262+ ) ;
9263+ assert ! (
9264+ result. code. contains( "flag = false" ) ,
9265+ "flag should be preserved. Got:\n {}" ,
9266+ result. code
9267+ ) ;
92739268 assert ! ( result. code. contains( "ref = null" ) , "ref should be preserved. Got:\n {}" , result. code) ;
9274- assert ! ( result. code. contains( "str = 'hello'" ) , "str should be preserved. Got:\n {}" , result. code) ;
9269+ assert ! (
9270+ result. code. contains( "str = 'hello'" ) ,
9271+ "str should be preserved. Got:\n {}" ,
9272+ result. code
9273+ ) ;
92759274}
92769275
92779276#[ test]
@@ -9284,12 +9283,9 @@ class MyClass {
92849283 count = 0;
92859284}
92869285"# ;
9287- let options = ComponentTransformOptions {
9288- strip_uninitialized_fields : false ,
9289- ..Default :: default ( )
9290- } ;
9291- let result =
9292- transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
9286+ let options =
9287+ ComponentTransformOptions { strip_uninitialized_fields : false , ..Default :: default ( ) } ;
9288+ let result = transform_angular_file ( & allocator, "test.ts" , source, Some ( & options) , None ) ;
92939289
92949290 assert ! (
92959291 result. code. contains( "name" ) ,
@@ -9318,10 +9314,8 @@ export class TestComponent {
93189314 count = 0;
93199315}
93209316"# ;
9321- let options = ComponentTransformOptions {
9322- strip_uninitialized_fields : true ,
9323- ..Default :: default ( )
9324- } ;
9317+ let options =
9318+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
93259319 let result =
93269320 transform_angular_file ( & allocator, "test.component.ts" , source, Some ( & options) , None ) ;
93279321
@@ -9413,10 +9407,8 @@ export class TestComponent {
94139407 }
94149408}
94159409"# ;
9416- let options = ComponentTransformOptions {
9417- strip_uninitialized_fields : true ,
9418- ..Default :: default ( )
9419- } ;
9410+ let options =
9411+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
94209412 let result =
94219413 transform_angular_file ( & allocator, "test.component.ts" , source, Some ( & options) , None ) ;
94229414 assert ! ( !result. has_errors( ) , "Should not have errors: {:?}" , result. diagnostics) ;
@@ -9470,10 +9462,8 @@ export class TestComponent {
94709462 }
94719463}
94729464"# ;
9473- let options = ComponentTransformOptions {
9474- strip_uninitialized_fields : true ,
9475- ..Default :: default ( )
9476- } ;
9465+ let options =
9466+ ComponentTransformOptions { strip_uninitialized_fields : true , ..Default :: default ( ) } ;
94779467 let result =
94789468 transform_angular_file ( & allocator, "test.component.ts" , source, Some ( & options) , None ) ;
94799469 assert ! ( !result. has_errors( ) , "Should not have errors: {:?}" , result. diagnostics) ;
0 commit comments