Skip to content

Commit fd25d5d

Browse files
committed
C#: The extraction of the TypeMentions for return type and explicit interface return type for methods have changed order.
1 parent 3b97983 commit fd25d5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

csharp/ql/test/library-tests/csharp11/PrintAst.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,9 +1234,9 @@ StaticInterfaceMembers.cs:
12341234
# 49| 1: [PropertyCall] access to property Real
12351235
# 49| -1: [ParameterAccess] access to parameter n
12361236
# 51| 14: [Method] Inc
1237-
# 51| -1: [TypeMention] Complex
12381237
# 51| -1: [TypeMention] INumber<Complex>
12391238
# 51| 1: [TypeMention] Complex
1239+
# 51| -1: [TypeMention] Complex
12401240
#-----| 2: (Parameters)
12411241
# 51| 0: [Parameter] other
12421242
# 51| -1: [TypeMention] Complex
@@ -1254,9 +1254,9 @@ StaticInterfaceMembers.cs:
12541254
# 52| 1: [PropertyCall] access to property Imaginary
12551255
# 52| -1: [ParameterAccess] access to parameter other
12561256
# 54| 15: [Method] Dec
1257-
# 54| -1: [TypeMention] Complex
12581257
# 54| -1: [TypeMention] INumber<Complex>
12591258
# 54| 1: [TypeMention] Complex
1259+
# 54| -1: [TypeMention] Complex
12601260
#-----| 2: (Parameters)
12611261
# 54| 0: [Parameter] other
12621262
# 54| -1: [TypeMention] Complex

csharp/ql/test/library-tests/definitions/PrintAst.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ definitions.cs:
272272
# 125| 0: [MethodCall] call to method M
273273
# 125| -1: [BaseAccess] base access
274274
# 128| 6: [Method] M2`1
275-
# 128| -1: [TypeMention] Void
276275
# 128| -1: [TypeMention] I1
276+
# 128| -1: [TypeMention] Void
277277
#-----| 1: (Type parameters)
278278
# 128| 0: [TypeParameter] T
279279
# 128| 4: [BlockStmt] {...}
@@ -356,8 +356,8 @@ definitions.cs:
356356
# 153| 0: [Parameter] value
357357
# 153| 4: [BlockStmt] {...}
358358
# 154| 6: [Method] M
359-
# 154| -1: [TypeMention] A
360359
# 154| -1: [TypeMention] I4
360+
# 154| -1: [TypeMention] A
361361
# 154| 4: [ThrowExpr] throw ...
362362
# 154| 0: [ObjectCreation] object creation of type Exception
363363
# 154| 0: [TypeMention] Exception

0 commit comments

Comments
 (0)