Skip to content

Commit 568d3cc

Browse files
committed
C#: Update attributes test expected output.
1 parent 08fc564 commit 568d3cc

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

csharp/ql/test/library-tests/attributes/AttributeArguments.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ arguments
110110
| attributes.cs:154:6:154:11 | [Params(...)] | 2 | attributes.cs:154:19:154:29 | array creation of type Int32[] |
111111
| attributes.cs:158:2:158:13 | [Experimental(...)] | 0 | attributes.cs:158:15:158:37 | "MyExperimentalClassId" |
112112
| attributes.cs:161:6:161:17 | [Experimental(...)] | 0 | attributes.cs:161:19:161:42 | "MyExperimentalMethodId" |
113+
| attributes.cs:167:6:167:31 | [OverloadResolutionPriority(...)] | 0 | attributes.cs:167:33:167:34 | -... |
114+
| attributes.cs:170:6:170:31 | [OverloadResolutionPriority(...)] | 0 | attributes.cs:170:33:170:33 | 1 |
115+
| attributes.cs:173:6:173:31 | [OverloadResolutionPriority(...)] | 0 | attributes.cs:173:33:173:33 | 2 |
113116
constructorArguments
114117
| Assembly1.dll:0:0:0:0 | [Custom(...)] | 0 | Assembly1.dll:0:0:0:0 | 1 |
115118
| Assembly1.dll:0:0:0:0 | [Custom(...)] | 0 | Assembly1.dll:0:0:0:0 | 3 |
@@ -210,6 +213,9 @@ constructorArguments
210213
| attributes.cs:154:6:154:11 | [Params(...)] | 2 | attributes.cs:154:19:154:29 | array creation of type Int32[] |
211214
| attributes.cs:158:2:158:13 | [Experimental(...)] | 0 | attributes.cs:158:15:158:37 | "MyExperimentalClassId" |
212215
| attributes.cs:161:6:161:17 | [Experimental(...)] | 0 | attributes.cs:161:19:161:42 | "MyExperimentalMethodId" |
216+
| attributes.cs:167:6:167:31 | [OverloadResolutionPriority(...)] | 0 | attributes.cs:167:33:167:34 | -... |
217+
| attributes.cs:170:6:170:31 | [OverloadResolutionPriority(...)] | 0 | attributes.cs:170:33:170:33 | 1 |
218+
| attributes.cs:173:6:173:31 | [OverloadResolutionPriority(...)] | 0 | attributes.cs:173:33:173:33 | 2 |
213219
namedArguments
214220
| Assembly1.dll:0:0:0:0 | [Custom(...)] | Prop2 | Assembly1.dll:0:0:0:0 | array creation of type Object[] |
215221
| Assembly1.dll:0:0:0:0 | [Custom(...)] | Prop2 | Assembly1.dll:0:0:0:0 | array creation of type Object[] |

csharp/ql/test/library-tests/attributes/AttributeElements.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
| attributes.cs:155:17:155:18 | M4 | attributes.cs:154:6:154:11 | [Params(...)] | Class1+ParamsAttribute |
4141
| attributes.cs:159:14:159:32 | MyExperimentalClass | attributes.cs:158:2:158:13 | [Experimental(...)] | System.Diagnostics.CodeAnalysis.ExperimentalAttribute |
4242
| attributes.cs:162:17:162:36 | MyExperimentalMethod | attributes.cs:161:6:161:17 | [Experimental(...)] | System.Diagnostics.CodeAnalysis.ExperimentalAttribute |
43+
| attributes.cs:168:17:168:17 | M | attributes.cs:167:6:167:31 | [OverloadResolutionPriority(...)] | System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute |
44+
| attributes.cs:171:17:171:17 | M | attributes.cs:170:6:170:31 | [OverloadResolutionPriority(...)] | System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute |
45+
| attributes.cs:174:17:174:17 | M | attributes.cs:173:6:173:31 | [OverloadResolutionPriority(...)] | System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute |
4346
| attributes.dll:0:0:0:0 | attributes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | attributes.cs:12:12:12:24 | [assembly: AssemblyTitle(...)] | System.Reflection.AssemblyTitleAttribute |
4447
| attributes.dll:0:0:0:0 | attributes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | attributes.cs:13:12:13:30 | [assembly: AssemblyDescription(...)] | System.Reflection.AssemblyDescriptionAttribute |
4548
| attributes.dll:0:0:0:0 | attributes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | attributes.cs:14:12:14:32 | [assembly: AssemblyConfiguration(...)] | System.Reflection.AssemblyConfigurationAttribute |

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,3 +479,38 @@ attributes.cs:
479479
# 161| -1: [TypeMention] ExperimentalAttribute
480480
# 161| 0: [StringLiteralUtf16] "MyExperimentalMethodId"
481481
# 162| 4: [BlockStmt] {...}
482+
# 165| [Class] MyOverloadResolutionClass
483+
# 168| 5: [Method] M
484+
# 168| -1: [TypeMention] Void
485+
#-----| 0: (Attributes)
486+
# 167| 1: [DefaultAttribute] [OverloadResolutionPriority(...)]
487+
# 167| -1: [TypeMention] OverloadResolutionPriorityAttribute
488+
# 167| 0: [UnaryMinusExpr] -...
489+
# 167| 0: [IntLiteral] 1
490+
#-----| 2: (Parameters)
491+
# 168| 0: [Parameter] arr
492+
# 168| -1: [TypeMention] Int32[]
493+
# 168| 1: [TypeMention] int
494+
# 168| 4: [BlockStmt] {...}
495+
# 171| 6: [Method] M
496+
# 171| -1: [TypeMention] Void
497+
#-----| 0: (Attributes)
498+
# 170| 1: [DefaultAttribute] [OverloadResolutionPriority(...)]
499+
# 170| -1: [TypeMention] OverloadResolutionPriorityAttribute
500+
# 170| 0: [IntLiteral] 1
501+
#-----| 2: (Parameters)
502+
# 171| 0: [Parameter] e
503+
# 171| -1: [TypeMention] IEnumerable<int>
504+
# 171| 1: [TypeMention] int
505+
# 171| 4: [BlockStmt] {...}
506+
# 174| 7: [Method] M
507+
# 174| -1: [TypeMention] Void
508+
#-----| 0: (Attributes)
509+
# 173| 1: [DefaultAttribute] [OverloadResolutionPriority(...)]
510+
# 173| -1: [TypeMention] OverloadResolutionPriorityAttribute
511+
# 173| 0: [IntLiteral] 2
512+
#-----| 2: (Parameters)
513+
# 174| 0: [Parameter] s
514+
# 174| -1: [TypeMention] ReadOnlySpan<int>
515+
# 174| 1: [TypeMention] int
516+
# 174| 4: [BlockStmt] {...}

0 commit comments

Comments
 (0)