407 references to IsExternalInitTypeDefinition
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (1)
2922
var verifier = CompileAndVerify(source + InstrumentationHelperSource +
IsExternalInitTypeDefinition
,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Emit\RuntimeProbing\ModuleCancellationTests.cs (2)
785
""" +
IsExternalInitTypeDefinition
;
2763
""" +
IsExternalInitTypeDefinition
;
Emit\RuntimeProbing\StackOverflowProbingTests.cs (1)
691
""" +
IsExternalInitTypeDefinition
;
PDB\PDBTests.cs (2)
12187
" +
IsExternalInitTypeDefinition
;
12258
IsExternalInitTypeDefinition
;
PDB\TypeDefinitionDocumentTests.cs (2)
344
TestTypeDefinitionDocuments(new[] { source,
IsExternalInitTypeDefinition
},
361
TestTypeDefinitionDocuments(new[] { source,
IsExternalInitTypeDefinition
},
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (202)
Diagnostics\DiagnosticAnalyzerTests.cs (4)
2458
var compilation = CreateCompilationWithMscorlib461(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
3140
var compilation = CreateCompilation(new[] { source1,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
4099
CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
})
4419
var compilation = CreateCompilationWithCSharp(new[] { tree, CSharpSyntaxTree.ParseText(
IsExternalInitTypeDefinition
) });
RefReadonlyParameterTests.cs (2)
677
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
},
699
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
},
Semantics\PatternMatchingTests_ListPatterns.cs (2)
8057
var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range,
IsExternalInitTypeDefinition
});
8128
var compilation = CreateCompilation(new[] { source, TestSources.Index, TestSources.Range,
IsExternalInitTypeDefinition
});
Semantics\PrimaryConstructorTests.cs (7)
14658
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, options: TestOptions.ReleaseExe);
14771
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
14936
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
15008
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
15060
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, options: TestOptions.ReleaseExe);
15193
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
15388
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
Semantics\RecordTests.cs (187)
24
=> CSharpTestBase.CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
},
32
new[] { src,
IsExternalInitTypeDefinition
},
110
comp = CreateCompilation(new[] { src3,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
228
comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll);
235
comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll);
780
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
800
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10);
817
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
});
855
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
1054
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
1190
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1209
comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
1249
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1302
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1352
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1411
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugExe);
1448
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1714
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
2422
new[] { src,
IsExternalInitTypeDefinition
},
2468
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
2483
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
2618
var comp = CreateCompilationWithIL(new[] { src,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
2700
var comp = CreateCompilationWithIL(new[] { src,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
2713
comp = CreateCompilationWithIL(new[] { src,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular10);
3633
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
3736
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
3849
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
3962
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
4074
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
4187
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
4211
var comp2Ref = CreateCompilation(new[] { source2,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4236
var comp1Ref = CreateCompilation(new[] { source1,
IsExternalInitTypeDefinition
}, assemblyName: "Clone_12", parseOptions: TestOptions.Regular9).EmitToImageReference();
4242
var comp2Ref = CreateCompilation(new[] { source2,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4256
var comp3 = CreateCompilation(new[] { source3,
IsExternalInitTypeDefinition
}, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9);
4271
var comp1Ref = CreateCompilation(new[] { source1,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9).EmitToImageReference();
4277
var comp2Ref = CreateCompilation(new[] { source2,
IsExternalInitTypeDefinition
}, assemblyName: "Clone_13", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4283
var comp3Ref = CreateCompilation(new[] { source3,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4295
var comp4 = CreateCompilation(new[] { source4,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9);
4311
var comp5 = CreateCompilation(new[] { source4,
IsExternalInitTypeDefinition
}, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9);
4341
var comp2Ref = CreateCompilation(new[] { source2,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4366
var comp1Ref = CreateCompilation(new[] { source1,
IsExternalInitTypeDefinition
}, assemblyName: "Clone_15", parseOptions: TestOptions.Regular9).EmitToImageReference();
4372
var comp2Ref = CreateCompilation(new[] { source2,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4386
var comp3 = CreateCompilation(new[] { source3,
IsExternalInitTypeDefinition
}, references: new[] { comp2Ref }, parseOptions: TestOptions.Regular9);
4428
var comp1Ref = CreateCompilation(new[] { source1,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9).EmitToImageReference();
4434
var comp2Ref = CreateCompilation(new[] { source2,
IsExternalInitTypeDefinition
}, assemblyName: "Clone_16", references: new[] { comp1Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4440
var comp3Ref = CreateCompilation(new[] { source3,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref, comp2Ref }, parseOptions: TestOptions.Regular9).EmitToImageReference();
4452
var comp4 = CreateCompilation(new[] { source4,
IsExternalInitTypeDefinition
}, references: new[] { comp1Ref, comp3Ref }, parseOptions: TestOptions.Regular9);
4477
var comp5 = CreateCompilation(new[] { source4,
IsExternalInitTypeDefinition
}, references: new[] { comp3Ref }, parseOptions: TestOptions.Regular9);
4595
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
4698
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
4898
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
4916
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
4991
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5068
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5235
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5267
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5302
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
5327
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
5374
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
5453
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5508
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5547
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5588
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5654
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5717
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5766
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
5788
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
6128
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
6152
var comp = CreateCompilation(new[] { src1, src2,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
6176
var comp = CreateCompilation(new[] { src1, src2,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
6336
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
6405
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
6477
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
6549
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
6621
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
6699
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
6761
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
6845
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
6994
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
7004
comp = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
7082
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
7160
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
7269
new[] { source,
IsExternalInitTypeDefinition
},
7300
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
7487
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
7587
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
7612
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
10716
var comp = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? source : new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.NetLatest);
10796
var comp = CreateCompilation(new[] { sourceA, sourceB,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
10958
var compB = CreateCompilation(new[] { sourceB,
IsExternalInitTypeDefinition
}, references: new[] { refA }, parseOptions: TestOptions.Regular9);
11029
var compB = CreateCompilation(new[] { sourceB,
IsExternalInitTypeDefinition
}, references: new[] { refA }, parseOptions: TestOptions.Regular9);
11119
var compB = CreateCompilation(new[] { sourceB,
IsExternalInitTypeDefinition
}, references: new[] { refA }, parseOptions: TestOptions.Regular9);
11331
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
11545
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
11781
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
12070
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
12522
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
12595
var compA = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? sourceA : new[] { sourceA,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.NetLatest);
12634
var compB = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? sourceB : new[] { sourceB,
IsExternalInitTypeDefinition
}, references: new[] { refA }, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.NetLatest);
12686
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
12720
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
12903
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
12946
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
13004
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
13059
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
13181
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
13221
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
13340
var compA = CreateCompilation(new[] { sourceA,
IsExternalInitTypeDefinition
}, assemblyName: "AssemblyA", parseOptions: TestOptions.Regular9);
13500
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
13587
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
13599
var comp2 = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
13672
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
13850
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
},
13929
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
},
13980
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
14006
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
14039
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
14072
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
15722
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: usePreview ? TestOptions.Regular10 : TestOptions.Regular9);
15796
var comp = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? source : new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.NetLatest);
15934
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16040
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16140
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16240
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16472
var comp = CreateCompilationWithIL(new[] { source1,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16479
comp = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16486
comp = CreateCompilationWithIL(new[] { source1 + source3,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16493
comp = CreateCompilationWithIL(new[] { source1 + source4,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16500
comp = CreateCompilationWithIL(new[] { source2 + source3,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16507
comp = CreateCompilationWithIL(new[] { source2 + source4,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16607
var comp = CreateCompilationWithIL(new[] { source1,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16618
comp = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16718
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16729
comp = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16966
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
16977
comp = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
17078
var comp = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
17185
var comp = CreateCompilationWithIL(new[] { source2,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
17581
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
17681
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
17787
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
17984
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
19458
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
19626
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
19745
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
19955
var comp = CreateCompilationWithIL(new[] { source,
IsExternalInitTypeDefinition
}, ilSource: ilSource, parseOptions: TestOptions.Regular9);
20992
var comp = CreateCompilation(RuntimeUtilities.IsCoreClrRuntime ? src : new[] { src,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.NetLatest);
21022
var verifier = CompileAndVerify(RuntimeUtilities.IsCoreClrRuntime ? src2 : new[] { src2,
IsExternalInitTypeDefinition
},
22693
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
22806
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
22912
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23019
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23366
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23533
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23567
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23714
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23754
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23831
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
23998
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseExe);
24615
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
24869
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
24914
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
24941
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
24961
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
24998
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
25032
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
25096
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25156
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25233
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25290
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25365
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25449
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25519
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
25563
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
, NotNullAttributeDefinition }, parseOptions: TestOptions.Regular9);
25587
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, expectedOutput: "Main",
25611
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
27691
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
27896
var compDebug = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
27897
var compRelease = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.ReleaseExe);
27919
var compDebug = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
27920
var compRelease = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.ReleaseExe);
28109
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
29934
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview);
29958
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview);
30163
var compA = CreateEmptyCompilation(new[] { sourceA,
IsExternalInitTypeDefinition
}, references: TargetFrameworkUtil.GetReferences(TargetFramework.NetStandard20));
30441
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.NetCoreApp);
30444
comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Mscorlib461Extended);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (164)
Semantics\InitOnlyMemberTests.cs (95)
40
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular8);
65
var lib = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
103
var lib = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
136
var lib = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
173
var lib = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
208
var lib = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
252
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular8);
279
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular8);
300
var lib = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular8, assemblyName: "lib");
334
var lib = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
367
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
389
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
453
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
494
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
546
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
575
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
604
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
635
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
688
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
745
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
870
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
945
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
971
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
1003
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
1045
var libComp = CreateCompilation(new[] { parent,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1050
libComp = CreateCompilation(new[] { parent, source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1081
var libComp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1129
var libComp = CreateCompilation(new[] { parent,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1134
libComp = CreateCompilation(new[] { parent, source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1149
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1212
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1251
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1281
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1308
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1335
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1362
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1389
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1409
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1441
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
},
1523
var libComp = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1687
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
1715
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, options: TestOptions.DebugExe);
1764
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1788
var libComp = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1866
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1906
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1949
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1995
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2034
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2065
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2086
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2104
var libComp = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2157
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2192
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2213
var libComp = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2282
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
},
2375
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
},
2418
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2448
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2468
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2490
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2514
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2536
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2611
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2680
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2737
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
},
2823
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2876
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
2957
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
3009
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.DebugExe);
3036
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
3058
var libComp = CreateCompilation(new[] { lib_cs,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
3181
",
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
4102
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
4136
",
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
4193
var comp1 = CreateCompilation(new[] { source0, source1,
IsExternalInitTypeDefinition
},
4213
var verifier = CompileAndVerify(new[] {
IsExternalInitTypeDefinition
, @"
4248
var verifier = CompileAndVerify(new[] {
IsExternalInitTypeDefinition
, @"
4288
var verifier = CompileAndVerify(new[] {
IsExternalInitTypeDefinition
, @"
4327
var verifier = CompileAndVerify(new[] {
IsExternalInitTypeDefinition
, @"
4367
var comp = CreateCompilation(new[] {
IsExternalInitTypeDefinition
, @"
4390
var comp = CreateCompilation(new[] {
IsExternalInitTypeDefinition
, @"
4413
var verifier = CompileAndVerify(new[] {
IsExternalInitTypeDefinition
, @"
4483
var comp = CreateCompilation(new[] {
IsExternalInitTypeDefinition
, source }, options: TestOptions.DebugExe);
4512
var comp = CreateCompilation(new[] {
IsExternalInitTypeDefinition
, source });
4536
var comp = CreateCompilation(new[] {
IsExternalInitTypeDefinition
, source }, options: TestOptions.DebugExe);
4562
var comp = CreateCompilation(new[] {
IsExternalInitTypeDefinition
, source }, options: TestOptions.DebugExe);
4594
var piaCompilation = CreateCompilationWithMscorlib461(new[] {
IsExternalInitTypeDefinition
, pia }, options: TestOptions.DebugDll);
4654
var corlibWithIsExternalInitRef = CreateEmptyCompilation(corlib_cs +
IsExternalInitTypeDefinition
, assemblyName: "corlibWithIsExternalInit")
4657
var libWithIsExternalInitRef = CreateEmptyCompilation(
IsExternalInitTypeDefinition
, references: new[] { corlibWithoutIsExternalInitRef }, assemblyName: "libWithIsExternalInit")
4660
var libWithIsExternalInitRef2 = CreateEmptyCompilation(
IsExternalInitTypeDefinition
, references: new[] { corlibWithoutIsExternalInitRef }, assemblyName: "libWithIsExternalInit2")
4665
var comp = CreateEmptyCompilation(new[] { source,
IsExternalInitTypeDefinition
}, references: new[] { corlibWithoutIsExternalInitRef }, assemblyName: "source");
4679
var comp = CreateEmptyCompilation(new[] { source,
IsExternalInitTypeDefinition
}, references: new[] { corlibWithIsExternalInitRef }, assemblyName: "source");
4686
var comp = CreateEmptyCompilation(new[] { source,
IsExternalInitTypeDefinition
}, references: new[] { corlibWithIsExternalInitRef, libWithIsExternalInitRef }, assemblyName: "source");
4815
var corlibWithIsExternalInitRef = AsReference(CreateEmptyCompilation(corlib_cs +
IsExternalInitTypeDefinition
), useCompilationReference);
Semantics\LocalFunctionTests.cs (5)
8532
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
8536
comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular11);
9076
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11);
9509
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
9540
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
Semantics\NullableContextTests.cs (1)
1450
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
Semantics\NullableReferenceTypesTests.cs (2)
24865
", MemberNotNullWhenAttributeDefinition,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
82061
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, options: WithNullableEnable());
Semantics\RecordStructTests.cs (27)
27
=> CSharpTestBase.CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
},
35
new[] { src,
IsExternalInitTypeDefinition
},
251
var comp = CreateCompilation(new[] { src1,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll);
264
comp = CreateCompilation(new[] { src2,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll);
270
comp = CreateCompilation(new[] { src3,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll);
276
comp = CreateCompilation(new[] { src1,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll);
289
comp = CreateCompilation(new[] { src2,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll);
292
comp = CreateCompilation(new[] { src3,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10, options: TestOptions.ReleaseDll);
336
comp = CreateCompilation(new[] { src2,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
342
comp = CreateCompilation(new[] { src3,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
1504
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1560
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1613
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1672
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview, options: TestOptions.UnsafeDebugExe);
1710
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, options: TestOptions.UnsafeDebugDll);
1892
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
2156
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
2169
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular11, verify: Verification.Skipped);
2423
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe);
2857
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
2867
var verifier = CompileAndVerify(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular11, verify: Verification.Skipped);
4053
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe);
4092
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe);
4138
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe);
5118
var compDebug = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview, options: TestOptions.DebugExe);
5119
var compRelease = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseExe);
10510
var comp = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, sourceSymbolValidator: symbolValidator, symbolValidator: symbolValidator,
Semantics\RefFieldTests.cs (15)
5867
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
5935
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
5973
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
6032
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
6070
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
6128
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
6174
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
6214
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
6260
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
7889
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
7933
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
7995
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
8039
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, targetFramework: TargetFramework.Net70);
11905
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular.WithLanguageVersion(langVersion));
22549
var comp = CreateCompilation(new[] { source, UnscopedRefAttributeDefinition,
IsExternalInitTypeDefinition
});
Semantics\StructConstructorTests.cs (14)
2282
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput:
2464
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, options: TestOptions.ReleaseExe, verify: Verification.Skipped, expectedOutput:
2700
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
2712
comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular11);
2753
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
2765
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular11, expectedOutput:
2855
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
2876
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular11, expectedOutput:
2926
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
2947
var verifier = CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular11, expectedOutput:
3004
CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10, verify: Verification.Skipped, expectedOutput: expectedOutput);
3005
CompileAndVerify(new[] { source,
IsExternalInitTypeDefinition
}, verify: Verification.Skipped, expectedOutput: expectedOutput);
3035
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular10);
3038
comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
Semantics\UninitializedNonNullableFieldTests.cs (5)
2828
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
2851
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
});
2875
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
2897
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
2926
var comp = CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
, RequiredMemberAttribute, SetsRequiredMembersAttribute, CompilerFeatureRequiredAttribute });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (33)
DocumentationComments\DocumentationCommentCompilerTests.cs (10)
7633
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7670
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7700
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7748
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7791
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7834
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7870
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7904
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7948
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
7992
var comp = CreateCompilationUtil(new[] { source,
IsExternalInitTypeDefinition
});
Symbols\PartialPropertiesTests.cs (12)
38
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
110
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
516
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
538
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
569
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
629
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
649
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
668
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
688
[source,
IsExternalInitTypeDefinition
],
727
var comp = CreateCompilation([source,
IsExternalInitTypeDefinition
]);
769
[source,
IsExternalInitTypeDefinition
],
1049
var verifier = CompileAndVerify([source,
IsExternalInitTypeDefinition
], expectedOutput: "1");
Symbols\RequiredMembersTests.cs (5)
3215
var originalComp = CreateCompilationWithRequiredMembers(new[] { original,
IsExternalInitTypeDefinition
}, assemblyName: "original");
3263
var originalComp = CreateCompilationWithRequiredMembers(new[] { original,
IsExternalInitTypeDefinition
}, assemblyName: "original");
3298
var originalComp = CreateCompilationWithRequiredMembers(new[] { original,
IsExternalInitTypeDefinition
}, assemblyName: "original");
3346
var originalComp = CreateCompilationWithRequiredMembers(new[] { original,
IsExternalInitTypeDefinition
}, assemblyName: "original");
3393
var originalComp = CreateCompilationWithRequiredMembers(new[] { original,
IsExternalInitTypeDefinition
}, assemblyName: "original");
Symbols\Source\FileModifierTests.cs (3)
3078
var comp = CreateCompilation(new[] { (source, "file1.cs"), (
IsExternalInitTypeDefinition
, "file2.cs") });
3294
var verifier = CompileAndVerify(new[] { (usings, "file1.cs"), (source, "file2.cs"), (
IsExternalInitTypeDefinition
, "file3.cs") }, expectedOutput: "1");
3325
var compilation = CreateCompilation(new[] { (source, "file1.cs"), (
IsExternalInitTypeDefinition
, "file2.cs") }, options: TestOptions.DebugExe.WithUsings("NS"));
Symbols\Source\RecordTests.cs (3)
17
=> CSharpTestBase.CreateCompilation(new[] { source,
IsExternalInitTypeDefinition
}, parseOptions: TestOptions.Regular9);
20
=> base.CompileAndVerify(new[] { src,
IsExternalInitTypeDefinition
},
1468
var comp = CreateCompilation(new[] { src,
IsExternalInitTypeDefinition
},