246 references to InterpolatedStringHandlerArgumentAttribute
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
CodeGen\CodeGenCallTests.cs (8)
1854
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
1933
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
2015
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
2051
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
2133
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
2213
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
2295
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
2331
new[] { source, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
},
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
19622
var comp = CreateCompilation(new[] { code, CompilerFeatureRequiredAttribute, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
});
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (22)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (22)
2161
VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
2260
VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
3021
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
3163
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
3305
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
3455
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
3692
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
3841
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
4025
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
4168
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
4281
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false),
InterpolatedStringHandlerArgumentAttribute
},
4554
VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
4698
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
}, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
5435
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
}, expectedFlowGraph, expectedDiagnostics);
5539
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
}, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
5645
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
5782
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
5895
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedFlowGraph, expectedDiagnostics);
6012
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedFlowGraph, expectedDiagnostics);
6169
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedFlowGraph, expectedDiagnostics);
6304
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedFlowGraph, expectedDiagnostics);
6455
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedFlowGraph, expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (215)
Semantics\InterceptorsTests.cs (3)
4738
InterpolatedStringHandlerArgumentAttribute
,
4793
InterpolatedStringHandlerArgumentAttribute
,
4850
InterpolatedStringHandlerArgumentAttribute
,
Semantics\InterpolationTests.cs (111)
6829
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
});
6887
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6919
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6994
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7069
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7147
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7222
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7255
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7450
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7527
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7604
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, customHandler });
7697
var comp = CreateCompilation(new[] { code, goodCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
7714
comp = CreateCompilation(new[] { code, badCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
7854
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, customHandler });
7892
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, customHandler });
7920
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7969
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
7976
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8027
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, parseOptions: parseOptions);
8095
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8259
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
8263
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8313
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
8321
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8432
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
8443
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8576
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8740
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8873
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9010
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9111
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute });
9174
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute });
9239
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9355
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9472
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9595
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9669
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9713
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9754
new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler },
9862
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
9938
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9985
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, options: TestOptions.DebugExe);
10038
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10141
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.DebugExe);
10288
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10387
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10485
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10539
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10638
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10737
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10835
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
10879
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
10934
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
11019
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
11131
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
11383
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
11568
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
11668
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, options: TestOptions.ReleaseExe);
11723
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
11785
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
11869
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedOutput: @"
11919
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
12016
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
12308
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
12572
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
12829
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
12898
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
12953
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
13182
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
13620
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
13876
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
13905
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
13937
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14791
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14800
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
14849
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14852
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
14883
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14886
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
14917
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14920
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
14954
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
14992
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15002
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
15047
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15050
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
17339
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) });
17360
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) });
17390
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
17424
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) });
17454
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
17497
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) });
17562
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
17615
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
17656
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
17707
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
17753
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
17831
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
17869
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
17900
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
17951
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
18000
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
18035
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, parseOptions: TestOptions.Regular11);
18042
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler },
18139
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
18194
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
18249
CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) },
18619
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
18701
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
18800
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, options: TestOptions.DebugExe);
18913
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, options: TestOptions.DebugExe);
Semantics\NullableReferenceTypesTests.cs (22)
68308
", GetInterpolatedStringCustomHandlerType("CustomHandler<T>", "partial struct", useBoolReturns, includeTrailingOutConstructorParameter: validityParameter),
InterpolatedStringHandlerArgumentAttribute
, MaybeNullAttributeDefinition },
68337
", GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns, includeTrailingOutConstructorParameter: validityParameter),
InterpolatedStringHandlerArgumentAttribute
},
68508
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68541
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68575
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68605
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68631
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68668
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, MaybeNullAttributeDefinition });
68695
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, NotNullAttributeDefinition });
68729
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68765
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68798
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68832
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
68866
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, MaybeNullAttributeDefinition });
68897
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, NotNullAttributeDefinition });
68931
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, NotNullAttributeDefinition });
68962
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, NotNullAttributeDefinition });
68990
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, NotNullAttributeDefinition });
69018
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, MaybeNullAttributeDefinition });
69046
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, MaybeNullAttributeDefinition });
69074
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, MaybeNullAttributeDefinition });
69132
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
Semantics\RawInterpolationTests_Handler.cs (79)
5082
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
});
5147
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5184
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5271
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5358
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5448
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5535
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5716
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5805
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
5894
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, customHandler });
6024
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, customHandler });
6066
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, customHandler });
6099
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6153
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
6159
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6208
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6430
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
6434
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6486
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
6494
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6607
var comp = CreateCompilation(new[] { code, executableCode,
InterpolatedStringHandlerArgumentAttribute
, handler });
6618
var dependency = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6753
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
6919
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7054
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7193
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7298
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute });
7365
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute });
7432
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7550
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7670
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7795
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7872
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7920
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
7963
new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler },
8074
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedOutput: "1literal:literal", symbolValidator: validator, sourceSymbolValidator: validator);
8156
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8246
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8292
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8360
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8447
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler }, expectedOutput: @"
8499
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8597
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
8890
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9155
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9414
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9485
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9539
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
9770
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
10220
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, handler });
10482
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
10516
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
});
10553
var comp = CreateCompilation(new[] { code, handler,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, targetFramework: TargetFramework.Mscorlib461AndCSharp);
11128
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
11173
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
11206
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
11239
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
11273
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
11311
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
11349
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute,
InterpolatedStringHandlerArgumentAttribute
}, targetFramework: TargetFramework.Net50);
12752
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) });
12785
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
12821
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) });
12852
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"");
12896
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "struct", useBoolReturns: false) });
12971
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: @"i:1");
13026
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13067
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"1");
13120
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13166
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, InterpolatedStringHandlerAttribute }, expectedOutput: @"12");
13245
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
13286
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
13319
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "2");
13372
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) }, expectedOutput: "s.Field:1");
13423
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
13458
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
13534
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
13588
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) });
13642
CompileAndVerify(new[] { code,
InterpolatedStringHandlerArgumentAttribute
, GetInterpolatedStringCustomHandlerType("CustomHandler", "partial struct", useBoolReturns: false) },