File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
csharp/ql/test/utils/model-generator Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
+ using System . Collections . Generic ;
2
3
3
4
namespace NoSummaries ;
4
5
@@ -110,4 +111,24 @@ public virtual string M1(string s)
110
111
111
112
// Negative summary.
112
113
public abstract string M2 ( string s ) ;
114
+ }
115
+
116
+ // No methods in this class will have generated flow as
117
+ // the simple types used in the collection are not bulk data types.
118
+ public class CollectionFlow
119
+ {
120
+ public int [ ] ReturnSimpleTypeArray ( int [ ] a )
121
+ {
122
+ return a ;
123
+ }
124
+
125
+ public List < int > ReturnSimpleTypeList ( List < int > a )
126
+ {
127
+ return a ;
128
+ }
129
+
130
+ public Dictionary < int , int > ReturnSimpleTypeDictionary ( Dictionary < int , int > a )
131
+ {
132
+ return a ;
133
+ }
113
134
}
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Linq ;
3
+ using System . Collections ;
3
4
using System . Collections . Generic ;
4
5
5
6
namespace Summaries ;
@@ -85,6 +86,31 @@ public List<string> ReturnFieldInAList()
85
86
{
86
87
return new List < string > { tainted } ;
87
88
}
89
+
90
+ public string [ ] ReturnComplexTypeArray ( string [ ] a )
91
+ {
92
+ return a ;
93
+ }
94
+
95
+ public List < byte > ReturnBulkTypeList ( List < byte > a )
96
+ {
97
+ return a ;
98
+ }
99
+
100
+ public Dictionary < int , string > ReturnComplexTypeDictionary ( Dictionary < int , string > a )
101
+ {
102
+ return a ;
103
+ }
104
+
105
+ public Array ReturnUntypedArray ( Array a )
106
+ {
107
+ return a ;
108
+ }
109
+
110
+ public IList ReturnUntypedList ( IList a )
111
+ {
112
+ return a ;
113
+ }
88
114
}
89
115
90
116
public class IEnumerableFlow
You can’t perform that action at this time.
0 commit comments