File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
csharp/ql/src/semmle/code/csharp Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1103,11 +1103,14 @@ class TupleType extends ValueType, @tuple_type {
1103
1103
override string toStringWithTypes ( ) {
1104
1104
result =
1105
1105
"(" +
1106
- concat ( int i |
1107
- exists ( getElement ( i ) )
1108
- |
1109
- getElement ( i ) .getType ( ) .toStringWithTypes ( ) , ", " order by i
1110
- ) + ")"
1106
+ concat ( Type t , int i | t = getElement ( i ) .getType ( ) | t .toStringWithTypes ( ) , ", " order by i )
1107
+ + ")"
1108
+ }
1109
+
1110
+ language [ monotonicAggregates]
1111
+ override string getName ( ) {
1112
+ result =
1113
+ "(" + concat ( Type t , int i | t = getElement ( i ) .getType ( ) | t .getName ( ) , "," order by i ) + ")"
1111
1114
}
1112
1115
1113
1116
override string getLabel ( ) { result = getUnderlyingType ( ) .getLabel ( ) }
You can’t perform that action at this time.
0 commit comments