111 references to InterpolatedStringHandlerAttribute
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 (6)
FlowAnalysis\RegionAnalysisTests.cs (2)
9038
" +
InterpolatedStringHandlerAttribute
;
9087
" +
InterpolatedStringHandlerAttribute
;
OverloadResolutionPriorityTests.cs (2)
2118
var verifier = CompileAndVerify([handler, executable, OverloadResolutionPriorityAttributeDefinition,
InterpolatedStringHandlerAttribute
], expectedOutput: "12").VerifyDiagnostics();
2141
var comp = CreateCompilation([handler, OverloadResolutionPriorityAttributeDefinition,
InterpolatedStringHandlerAttribute
]);
Semantics\ParamsCollectionTests.cs (1)
3121
CompileAndVerify([source,
InterpolatedStringHandlerAttribute
], expectedOutput: """
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
19622
var comp = CreateCompilation(new[] { code, CompilerFeatureRequiredAttribute,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute });
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (5)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (5)
1790
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
1875
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
1930
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
4464
VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
5645
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (91)
Semantics\InterpolationTests.cs (60)
3246
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerAttribute
});
4404
var comp = CreateCompilation(new[] { source,
InterpolatedStringHandlerAttribute
});
4593
CompileAndVerify(new[] { source,
InterpolatedStringHandlerAttribute
}, expectedOutput: "literal:l");
9111
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
9174
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
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);
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);
13937
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
13982
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14027
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14070
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14119
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14175
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14271
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14370
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14493
var comp = CreateCompilation([source,
InterpolatedStringHandlerAttribute
], targetFramework: TargetFramework.StandardAndCSharp);
14642
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14645
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14674
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14711
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14714
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14751
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14754
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
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);
15095
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15136
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15172
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15223
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15269
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15309
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
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");
18087
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
});
Semantics\NullableReferenceTypesTests.cs (4)
68373
",
InterpolatedStringHandlerAttribute
},
68410
",
InterpolatedStringHandlerAttribute
},
68461
",
InterpolatedStringHandlerAttribute
},
69097
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
});
Semantics\RawInterpolationTests_Handler.cs (27)
1618
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerAttribute
});
2682
var comp = CreateCompilation(new[] { source,
InterpolatedStringHandlerAttribute
});
2894
CompileAndVerify(new[] { source,
InterpolatedStringHandlerAttribute
}, expectedOutput: "literal:l");
7298
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
7365
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
10553
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10604
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10655
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10700
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10751
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10812
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10911
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
11016
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
11051
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
11086
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
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);
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");
13479
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
});
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
3083
" + (includeOneTimeHelpers ?
InterpolatedStringHandlerAttribute
+ cultureInfoHandler : "");