@@ -11,20 +11,21 @@ namespace HydraScript.Tests.Unit.IR;
1111
1212public class FunctionWithUndefinedReturnStorageTests
1313{
14- const string functionName = nameof ( functionName ) ;
14+ private const string FunctionName = nameof ( FunctionName ) ;
15+
1516 [ Fact ]
1617 public void StorageIsEmptyAfterFlushTest ( )
1718 {
1819 IFunctionWithUndefinedReturnStorage storage = new FunctionWithUndefinedReturnStorage ( ) ;
1920
2021 var symbol = new FunctionSymbol (
21- id : functionName ,
22+ id : FunctionName ,
2223 parameters : [ ] ,
2324 "undefined" ,
2425 isEmpty : false ) ;
2526
2627 var decl = new FunctionDeclaration (
27- name : new IdentifierReference ( functionName ) ,
28+ name : new IdentifierReference ( FunctionName ) ,
2829 returnTypeValue : Substitute . For < TypeValue > ( ) ,
2930 arguments : [ ] ,
3031 new BlockStatement ( [ ] ) ) ;
@@ -41,30 +42,29 @@ public void StorageIsEmptyAfterFlushTest()
4142 public void StorageIsCorrectOrderTest ( )
4243 {
4344 FunctionDeclaration [ ] declarations = [
44- new FunctionDeclaration (
45- name : new IdentifierReference ( functionName ) ,
45+ new (
46+ name : new IdentifierReference ( FunctionName ) ,
4647 returnTypeValue : Substitute . For < TypeValue > ( ) ,
4748 arguments : [ ] ,
4849 new BlockStatement ( [ ] ) ) ,
4950
50- new FunctionDeclaration (
51- name : new IdentifierReference ( functionName ) ,
51+ new (
52+ name : new IdentifierReference ( FunctionName ) ,
5253 returnTypeValue : Substitute . For < TypeValue > ( ) ,
5354 arguments : [ ] ,
5455 new BlockStatement ( [ ] ) ) ,
5556
56- new FunctionDeclaration (
57- name : new IdentifierReference ( functionName ) ,
57+ new (
58+ name : new IdentifierReference ( FunctionName ) ,
5859 returnTypeValue : Substitute . For < TypeValue > ( ) ,
5960 arguments : [ ] ,
6061 new BlockStatement ( [ ] ) ) ,
6162
62- new FunctionDeclaration (
63- name : new IdentifierReference ( functionName ) ,
63+ new (
64+ name : new IdentifierReference ( FunctionName ) ,
6465 returnTypeValue : Substitute . For < TypeValue > ( ) ,
6566 arguments : [ ] ,
66- new BlockStatement ( [ ] ) )
67- ] ;
67+ new BlockStatement ( [ ] ) ) ] ;
6868
6969 IFunctionWithUndefinedReturnStorage storage = new FunctionWithUndefinedReturnStorage ( ) ;
7070
0 commit comments