File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
csharp/ql/src/utils/model-generator Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
import csharp
2
2
import semmle.code.csharp.dataflow.internal.DataFlowPrivate
3
3
private import semmle.code.csharp.commons.Util
4
+ private import semmle.code.csharp.commons.Collections
4
5
private import semmle.code.csharp.dataflow.internal.DataFlowImplCommon
5
6
private import semmle.code.csharp.dataflow.internal.DataFlowDispatch
6
7
@@ -71,7 +72,7 @@ private predicate isPrimitiveTypeUsedForBulkData(Type t) {
71
72
72
73
private string parameterAccess ( Parameter p ) {
73
74
if
74
- p .getType ( ) instanceof ArrayType and
75
+ p .getType ( ) instanceof CollectionType and
75
76
not isPrimitiveTypeUsedForBulkData ( p .getType ( ) .( ArrayType ) .getElementType ( ) )
76
77
then result = "Argument[" + p .getPosition ( ) + "].Element"
77
78
else result = "Argument[" + p .getPosition ( ) + "]"
You can’t perform that action at this time.
0 commit comments