162 references to CreateCSharpCompilation
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\SwitchTests.cs (2)
2624
var compilation = base.
CreateCSharpCompilation
(text);
2652
var compilation = base.
CreateCSharpCompilation
(text);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\MethodTypeInferenceTests.cs (3)
1114
var compilation =
CreateCSharpCompilation
(source);
1155
var compilation =
CreateCSharpCompilation
(source);
1196
var compilation =
CreateCSharpCompilation
(source).VerifyDiagnostics();
Microsoft.CodeAnalysis.UnitTests (4)
Symbols\DocumentationCommentIdTests.cs (4)
20
CreateCSharpCompilation
(
83
var comp =
CreateCSharpCompilation
(code);
107
var comp =
CreateCSharpCompilation
(code);
125
var comp =
CreateCSharpCompilation
("""
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (53)
Attributes\AttributeTests_CallerArgumentExpression.vb (1)
194
Dim csCompilation =
CreateCSharpCompilation
("Program2.Log(5 + 2);", referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Net50, {compilation.EmitToImageReference()}), compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.ConsoleApplication))
Attributes\AttributeTests_Synthesized.vb (1)
291
Dim csCompilation =
CreateCSharpCompilation
("
Attributes\AttributeTests_Tuples.vb (2)
131
Dim comp0 =
CreateCSharpCompilation
(TestResources.NetFX.ValueTuple.tuplelib_cs)
450
Dim comp0 =
CreateCSharpCompilation
(TestResources.NetFX.ValueTuple.tuplelib_cs)
CodeGen\CodeGenRefReturnTests.vb (42)
18
Dim comp1 =
CreateCSharpCompilation
(
52
Dim comp1 =
CreateCSharpCompilation
(
138
Dim comp1 =
CreateCSharpCompilation
(
195
Dim comp1 =
CreateCSharpCompilation
(
248
Dim comp1 =
CreateCSharpCompilation
(
304
Dim comp1 =
CreateCSharpCompilation
(
365
Dim comp1 =
CreateCSharpCompilation
(
430
Dim comp1 =
CreateCSharpCompilation
(
726
Dim comp1 =
CreateCSharpCompilation
(
766
Dim comp1 =
CreateCSharpCompilation
(
857
Dim comp1 =
CreateCSharpCompilation
(
901
Dim comp1 =
CreateCSharpCompilation
(
937
Dim comp1 =
CreateCSharpCompilation
(
973
Dim comp1 =
CreateCSharpCompilation
(
1014
Dim comp1 =
CreateCSharpCompilation
(
1070
Dim comp1 =
CreateCSharpCompilation
(
1202
Dim comp1 =
CreateCSharpCompilation
(
1307
Dim comp1 =
CreateCSharpCompilation
(
1366
Dim comp1 =
CreateCSharpCompilation
(
1414
Dim comp1 =
CreateCSharpCompilation
(
1463
Dim comp1 =
CreateCSharpCompilation
(
1512
Dim comp1 =
CreateCSharpCompilation
(
1566
Dim comp1 =
CreateCSharpCompilation
(
1621
Dim comp1 =
CreateCSharpCompilation
(
1662
Dim comp1 =
CreateCSharpCompilation
(
1709
Dim comp1 =
CreateCSharpCompilation
(
1756
Dim comp1 =
CreateCSharpCompilation
(
1812
Dim comp1 =
CreateCSharpCompilation
(
1865
Dim comp1 =
CreateCSharpCompilation
(
1918
Dim comp1 =
CreateCSharpCompilation
(
1971
Dim comp1 =
CreateCSharpCompilation
(
2018
Dim comp1 =
CreateCSharpCompilation
(
2070
Dim comp1 =
CreateCSharpCompilation
(
2116
Dim comp1 =
CreateCSharpCompilation
(
2158
Dim comp1 =
CreateCSharpCompilation
(
2204
Dim comp1 =
CreateCSharpCompilation
(
2248
Dim comp1 =
CreateCSharpCompilation
(
2292
Dim comp1 =
CreateCSharpCompilation
(
2344
Dim comp1 =
CreateCSharpCompilation
(
2398
Dim comp1 =
CreateCSharpCompilation
(
2453
Dim comp1 =
CreateCSharpCompilation
(
2521
Dim comp1 =
CreateCSharpCompilation
(
CodeGen\CodeGenTuples.vb (5)
8940
Dim csComp =
CreateCSharpCompilation
("")
17349
Dim csComp =
CreateCSharpCompilation
(csSource,
21327
Dim csComp =
CreateCSharpCompilation
(csSource,
21463
Dim csComp =
CreateCSharpCompilation
(csSource,
23121
Dim comp =
CreateCSharpCompilation
(source, referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Standard))
Emit\DeterministicTests.vb (2)
172
Dim forwardedToCompilation1 =
CreateCSharpCompilation
(
236
Dim forwardedToCompilation2 =
CreateCSharpCompilation
(
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
TupleTests.vb (2)
215
Dim comp =
CreateCSharpCompilation
(source, referencedAssemblies:={MscorlibRef, ValueTupleRef, SystemRuntimeFacadeRef})
262
Dim comp =
CreateCSharpCompilation
(source, referencedAssemblies:={MscorlibRef, ValueTupleRef, SystemRuntimeFacadeRef})
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (40)
Compilation\CompilationAPITests.vb (3)
1959
comp =
CreateCSharpCompilation
("")
1991
comp =
CreateCSharpCompilation
("")
2505
Dim csComp =
CreateCSharpCompilation
("", referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Standard))
Compilation\SemanticModelAPITests.vb (2)
2923
Dim csharpComp =
CreateCSharpCompilation
("
2960
Dim csharpComp =
CreateCSharpCompilation
("
Semantics\InitOnlyMemberTests.vb (33)
41
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
248
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
536
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
757
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1087
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1273
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1493
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1621
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1693
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1753
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1791
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1875
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
1982
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
2648
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
2733
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
2832
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
3049
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
3135
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
3222
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
3421
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
3631
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
3830
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
4054
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5298
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5347
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5397
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5445
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5495
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5546
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5604
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5653
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5694
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
5734
Dim csCompilation =
CreateCSharpCompilation
(csSource + IsExternalInitTypeDefinition).EmitToImageReference()
Semantics\NativeIntegerTests.vb (1)
21
Dim comp As Compilation =
CreateCSharpCompilation
(source0, parseOptions:=New CSharp.CSharpParseOptions(CSharp.LanguageVersion.CSharp9))
Semantics\OptionalArgumentTests.vb (1)
1940
Dim compilation1 =
CreateCSharpCompilation
(<![CDATA[
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (58)
SymbolsTests\CheckedUserDefinedOperatorsTests.vb (3)
184
Dim comp3 =
CreateCSharpCompilation
("", referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Standard, {ilReference}))
371
Dim comp3 =
CreateCSharpCompilation
("", referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Standard, {ilReference}))
550
Dim comp3 =
CreateCSharpCompilation
("", referencedAssemblies:=TargetFrameworkUtil.GetReferences(TargetFramework.Standard, {ilReference}))
SymbolsTests\DefaultInterfaceImplementationTests.vb (1)
27
Return
CreateCSharpCompilation
(csSource,
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (2)
2483
Dim csharp =
CreateCSharpCompilation
("
2512
Dim csharp =
CreateCSharpCompilation
("
SymbolsTests\GenericConstraintTests.vb (3)
5741
Dim reference =
CreateCSharpCompilation
("
5776
Dim reference =
CreateCSharpCompilation
("
5810
Dim reference =
CreateCSharpCompilation
("
SymbolsTests\Metadata\PE\HasUnsupportedMetadata.vb (1)
512
Dim csharpComp =
CreateCSharpCompilation
("
SymbolsTests\Metadata\PE\InAttributeModifierTests.vb (33)
15
Dim reference =
CreateCSharpCompilation
("
41
Dim reference =
CreateCSharpCompilation
("
68
Dim reference =
CreateCSharpCompilation
("
98
Dim reference =
CreateCSharpCompilation
("
123
Dim reference =
CreateCSharpCompilation
("
156
Dim reference =
CreateCSharpCompilation
("
185
Dim reference =
CreateCSharpCompilation
("
218
Dim reference =
CreateCSharpCompilation
("
246
Dim reference =
CreateCSharpCompilation
("
278
Dim reference =
CreateCSharpCompilation
("
311
Dim reference =
CreateCSharpCompilation
("
341
Dim reference =
CreateCSharpCompilation
("
370
Dim reference =
CreateCSharpCompilation
("
400
Dim reference =
CreateCSharpCompilation
("
428
Dim reference =
CreateCSharpCompilation
("
458
Dim reference =
CreateCSharpCompilation
("
487
Dim reference =
CreateCSharpCompilation
("
517
Dim reference =
CreateCSharpCompilation
("
545
Dim reference =
CreateCSharpCompilation
("
575
Dim reference =
CreateCSharpCompilation
("
602
Dim reference =
CreateCSharpCompilation
("
629
Dim reference =
CreateCSharpCompilation
("
656
Dim reference =
CreateCSharpCompilation
("
682
Dim reference =
CreateCSharpCompilation
("
708
Dim reference =
CreateCSharpCompilation
("
744
Dim reference =
CreateCSharpCompilation
("
780
Dim reference =
CreateCSharpCompilation
("
816
Dim reference =
CreateCSharpCompilation
("
851
Dim reference =
CreateCSharpCompilation
("
886
Dim reference =
CreateCSharpCompilation
("
917
Dim reference =
CreateCSharpCompilation
("
951
Dim reference =
CreateCSharpCompilation
("
988
Dim reference =
CreateCSharpCompilation
("
SymbolsTests\Metadata\PE\LoadCustomModifiers.vb (3)
113
Dim reference =
CreateCSharpCompilation
("
149
Dim reference =
CreateCSharpCompilation
("
183
Dim reference =
CreateCSharpCompilation
("
SymbolsTests\RelaxedShiftOperatorTests.vb (1)
28
Dim csCompilation =
CreateCSharpCompilation
(csSource,
SymbolsTests\Retargeting\NoPia.vb (3)
1493
Dim pia1 =
CreateCSharpCompilation
(<![CDATA[
1513
Dim pia2 =
CreateCSharpCompilation
(<![CDATA[
1526
Dim compilation1 =
CreateCSharpCompilation
(<![CDATA[
SymbolsTests\Source\ClsComplianceTests.vb (3)
1680
Dim moduleComp =
CreateCSharpCompilation
("[assembly:System.CLSCompliant(true)]", compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule), assemblyName:="A")
1697
Dim moduleComp1 =
CreateCSharpCompilation
("[assembly:System.CLSCompliant(true)]", compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule), assemblyName:="A")
1700
Dim moduleComp2 =
CreateCSharpCompilation
("[assembly:System.CLSCompliant(false)]", compilationOptions:=New CSharp.CSharpCompilationOptions(OutputKind.NetModule), assemblyName:="B")
SymbolsTests\Source\EventTests.vb (2)
127
Dim csharpCompilation =
CreateCSharpCompilation
("
1180
Dim csCompilation =
CreateCSharpCompilation
("
SymbolsTests\StaticAbstractMembersInInterfacesTests.vb (1)
23
Return
CreateCSharpCompilation
(csSource,
SymbolsTests\UnsignedRightShiftTests.vb (2)
29
Dim csCompilation =
CreateCSharpCompilation
(csSource,
68
Dim csCompilation =
CreateCSharpCompilation
(csSource,