602 references to All
Microsoft.CodeAnalysis (3)
MetadataReader\MetadataImportOptions.cs (1)
34
return value >= MetadataImportOptions.Public && value <= MetadataImportOptions.
All
;
MetadataReader\ModuleExtensions.cs (2)
45
return importOptions == MetadataImportOptions.
All
;
100
if (importOptions != MetadataImportOptions.
All
)
Microsoft.CodeAnalysis.CSharp (3)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
102
var metadataAssembly = metadataCompilation.GetBoundReferenceManager().CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata.Create(originalMetadata), MetadataImportOptions.
All
, out assemblyReferenceIdentityMap);
Symbols\Source\SourceAssemblySymbol.cs (2)
133
var importOptions = (compilation.Options.MetadataImportOptions == MetadataImportOptions.
All
) ?
134
MetadataImportOptions.
All
: MetadataImportOptions.Internal;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (79)
CodeGen\CodeGenAsyncEHTests.cs (1)
940
var v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), expectedOutput: expected, symbolValidator: module =>
CodeGen\CodeGenAsyncLocalsTests.cs (5)
236
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
249
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
288
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
306
var vd = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1247
CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: s_asyncRefs, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
CodeGen\CodeGenAsyncSpillTests.cs (2)
945
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
960
CompileAndVerify(source, verify: Verification.Passes, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
CodeGen\CodeGenAsyncTests.cs (4)
917
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
919
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
976
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
978
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
), expectedOutput: "10", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
CodeGen\CodeGenClosureLambdaTests.cs (3)
3970
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: m =>
4041
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: m =>
4082
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: m =>
CodeGen\CodeGenConstructorInitTests.cs (5)
690
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
757
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
779
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
846
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
925
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
CodeGen\CodeGenDynamicTests.cs (8)
41
var unoptimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
).WithAllowUnsafe(allowUnsafe));
42
var optimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
).WithAllowUnsafe(allowUnsafe));
584
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: peModule =>
640
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: peModule =>
675
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: peModule =>
801
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: peModule =>
821
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: peModule =>
7593
TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
CodeGen\CodeGenFieldInitTests.cs (1)
569
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
CodeGen\CodeGenIterators.cs (6)
1176
var rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1193
var dbg = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1232
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1249
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1281
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1293
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
CodeGen\CodeGenLocalFunctionTests.cs (18)
5228
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5277
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5318
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5351
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5385
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5418
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5523
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
5530
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
5621
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5627
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5673
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5739
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5814
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5889
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5957
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
5997
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
6053
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
6110
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
CodeGen\CodeGenTests.cs (2)
932
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
14809
options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
CodeGen\SwitchTests.cs (1)
10246
options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication).WithMetadataImportOptions(MetadataImportOptions.
All
));
Emit\CompilationEmitTests.cs (16)
897
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2133
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2164
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2192
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2221
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2270
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2280
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2292
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2337
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2347
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2359
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2404
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2414
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2426
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2465
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2510
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1022
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
Emit\EmitMetadataTests.cs (6)
1288
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2597
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2642
CompileAndVerify(text, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
2714
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2871
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2923
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (54)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (28)
245
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
306
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
378
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
436
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
488
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
548
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
602
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
657
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
713
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
768
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
911
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
985
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1052
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1111
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1199
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1288
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1372
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1463
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1545
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1622
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1721
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1812
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1919
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2117
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2329
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2463
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), assemblyName: "A");
2580
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), assemblyName: "A");
2713
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), assemblyName: "A");
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
121
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), assemblyName: "EncMethodExtents");
Emit\UnmanagedTypeModifierTests.cs (2)
1034
options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
1087
options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
PDB\PDBAsyncTests.cs (12)
759
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
847
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
952
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1039
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1155
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1259
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1366
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1464
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1550
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1658
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1694
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
1948
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
)), symbolValidator: module =>
PDB\PDBConstantTests.cs (1)
409
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
PDB\PDBIteratorTests.cs (10)
736
var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
807
var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
913
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
931
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1027
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1101
var v = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1225
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1371
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1457
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1519
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (186)
Attributes\AttributeTests.cs (9)
1837
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1871
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1932
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1995
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2214
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2280
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2351
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
2483
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
11008
var verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
3235
CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: verify);
Attributes\AttributeTests_Dynamic.cs (5)
822
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
853
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
888
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
910
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
1087
CompileAndVerify(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
Attributes\AttributeTests_IsByRefLike.cs (3)
356
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
452
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
606
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
Attributes\AttributeTests_IsUnmanaged.cs (12)
92
CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
114
CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
201
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
229
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
320
options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.
All
),
349
options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.
All
),
417
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
437
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
626
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
702
CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.
All
)).VerifyDiagnostics(
713
CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.
All
)).VerifyDiagnostics(
722
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
Attributes\AttributeTests_LifetimeAnnotation.cs (4)
454
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
491
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
518
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
554
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
Attributes\AttributeTests_MarshalAs.cs (2)
32
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
66
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Attributes\AttributeTests_NativeInteger.cs (7)
1081
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
1105
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
1128
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
1152
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
1413
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), parseOptions: TestOptions.Regular9);
1444
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
1460
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Attributes\AttributeTests_Nullable.cs (18)
526
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
561
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
2166
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2193
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2220
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2273
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2297
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2506
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2531
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2557
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
3470
var options = WithNullableEnable().WithMetadataImportOptions(MetadataImportOptions.
All
);
3756
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
3826
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
3867
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
3967
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
4036
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
4115
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
4970
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Attributes\AttributeTests_NullableContext.cs (1)
204
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Attributes\AttributeTests_NullablePublicOnly.cs (18)
31
var options = WithNullableEnable().WithMetadataImportOptions(MetadataImportOptions.
All
);
56
var options = WithNullableEnable().WithMetadataImportOptions(MetadataImportOptions.
All
);
83
var options = WithNullableEnable().WithMetadataImportOptions(MetadataImportOptions.
All
);
99
var options = WithNullableEnable().WithMetadataImportOptions(MetadataImportOptions.
All
);
119
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
139
var options = WithNullableEnable().WithMetadataImportOptions(MetadataImportOptions.
All
);
159
var options = WithNullableEnable().WithMetadataImportOptions(MetadataImportOptions.
All
);
179
var options = WithNullableDisable().WithMetadataImportOptions(MetadataImportOptions.
All
);
199
var options = WithNullableDisable().WithMetadataImportOptions(MetadataImportOptions.
All
);
216
var options = WithNullableDisable().WithMetadataImportOptions(MetadataImportOptions.
All
);
253
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
270
var options = WithNullableDisable().WithMetadataImportOptions(MetadataImportOptions.
All
);
290
var options = WithNullableDisable().WithMetadataImportOptions(MetadataImportOptions.
All
);
309
var options = WithNullableDisable().WithMetadataImportOptions(MetadataImportOptions.
All
);
329
var options = WithNullableDisable().WithMetadataImportOptions(MetadataImportOptions.
All
);
353
var options = TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
);
376
var options = TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
);
501
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Attributes\AttributeTests_ReadOnlyStruct.cs (3)
346
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
444
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
598
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
Attributes\AttributeTests_RefReadOnly.cs (15)
594
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
622
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
648
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
682
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
721
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
753
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
780
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
815
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
1051
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
1169
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
1325
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
2342
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2366
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2389
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2413
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
Attributes\AttributeTests_Synthesized.cs (22)
172
.WithMetadataImportOptions(MetadataImportOptions.
All
);
221
.WithMetadataImportOptions(MetadataImportOptions.
All
);
260
.WithMetadataImportOptions(MetadataImportOptions.
All
);
288
.WithMetadataImportOptions(MetadataImportOptions.
All
);
426
.WithMetadataImportOptions(MetadataImportOptions.
All
);
481
.WithMetadataImportOptions(MetadataImportOptions.
All
);
539
.WithMetadataImportOptions(MetadataImportOptions.
All
);
577
.WithMetadataImportOptions(MetadataImportOptions.
All
);
620
.WithMetadataImportOptions(MetadataImportOptions.
All
);
665
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
735
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
797
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
871
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1672
.WithMetadataImportOptions(MetadataImportOptions.
All
);
1715
.WithMetadataImportOptions(MetadataImportOptions.
All
);
1757
.WithMetadataImportOptions(MetadataImportOptions.
All
);
1799
.WithMetadataImportOptions(MetadataImportOptions.
All
);
1802
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
1838
.WithMetadataImportOptions(MetadataImportOptions.
All
);
1868
.WithMetadataImportOptions(MetadataImportOptions.
All
);
1898
.WithMetadataImportOptions(MetadataImportOptions.
All
);
1901
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
5762
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
RefReadonlyParameterTests.cs (2)
837
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
861
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
Semantics\InlineArrayTests.cs (21)
294
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
360
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
426
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
492
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
556
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
648
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
685
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
737
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
775
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
819
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
854
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
922
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
960
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1046
comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1136
comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
14635
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
14684
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
14733
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
14781
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
14828
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
14872
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Semantics\ParamsCollectionTests.cs (26)
97
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
277
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
590
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
1262
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
2414
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
2602
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
2735
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
2786
comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
2937
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
2981
comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
4335
comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), parseOptions: TestOptions.Regular12);
4511
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
4515
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
4664
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
4668
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
8677
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
8778
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
8875
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
8918
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
8962
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
12760
var comp = CreateCompilation(src1, references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
12766
var comp2 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
12774
var comp4 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.
All
));
13155
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
13215
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
13278
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
Semantics\PrimaryConstructorTests.cs (9)
15710
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
15732
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
15753
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
15774
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
22021
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
22042
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
22068
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
22094
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
22125
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Semantics\RecordTests.cs (7)
25100
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
25160
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
25237
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
25294
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
25369
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
25453
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
25523
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\AnonymousFunctionTests.cs (3)
25
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
40
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
1189
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
Semantics\BindingTests.cs (2)
1965
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
1987
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
Semantics\ConditionalOperatorTests.cs (1)
715
options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
Semantics\GenericConstraintsTests.cs (2)
2192
CompileAndVerify(code, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: module =>
3080
options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
Semantics\InitOnlyMemberTests.cs (1)
1443
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Semantics\LocalFunctionTests.cs (3)
6891
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator: m =>
6916
CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), expectedOutput: "System.Int32", symbolValidator: m =>
6946
CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), expectedOutput: "System.Int32", symbolValidator: m =>
Semantics\NullableReferenceTypesTests.cs (4)
17888
compilation = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
98707
options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
)));
98774
options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
)),
98845
options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
)),
Semantics\RecordStructTests.cs (1)
10514
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Semantics\SuppressAccessibilityChecksTests.cs (2)
44
", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
164
", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Semantics\TopLevelStatementsTests.cs (5)
6078
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
6149
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
9046
var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
9101
var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
9495
var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (103)
Compilation\ReferenceManagerTests.cs (3)
1838
var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1842
var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
1868
var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Symbols\DefaultInterfaceImplementationTests.cs (41)
8871
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
9041
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
10371
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
10977
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
11000
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
14212
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
14230
var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
14606
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
16767
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
17726
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
18280
foreach (var metadataImportOptions in new[] { MetadataImportOptions.
All
, MetadataImportOptions.Public })
18457
var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
18465
compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
18495
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
18504
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
19969
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
20000
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
20038
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
20170
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
26531
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
26568
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
26607
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
26743
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
27789
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
27863
var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
27883
var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
28117
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
30103
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
36984
foreach (var options in new[] { TestOptions.DebugExe, TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
) })
43789
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
43919
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
44054
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
44642
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
44689
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
44723
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
44747
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
45056
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
45207
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
45350
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
45540
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
45680
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
Symbols\ExtendedPartialMethodsTests.cs (2)
2556
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
2563
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
Symbols\ExtensionMethodTests.cs (1)
2591
", options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
));
Symbols\Metadata\MetadataMemberTests.cs (8)
698
options = options.WithMetadataImportOptions(MetadataImportOptions.
All
);
699
Assert.Equal(MetadataImportOptions.
All
, options.MetadataImportOptions);
713
commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.
All
);
714
Assert.Equal(MetadataImportOptions.
All
, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions);
748
compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.
All
));
776
options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
);
777
Assert.Equal(MetadataImportOptions.
All
, options.MetadataImportOptions);
803
compilation = compilation.WithOptions(TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Symbols\Metadata\PE\LoadingEvents.cs (3)
468
var comp = CreateCompilation("", new[] { reference }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
521
var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
581
var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Symbols\ModuleInitializers\IgnoredTests.cs (22)
36
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
39
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
62
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
65
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
88
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
91
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
113
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
116
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
138
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
141
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
163
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
166
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
188
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
191
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
213
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
216
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
234
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
237
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
255
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
258
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
288
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
291
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (19)
90
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
93
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
125
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
128
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
219
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
222
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
502
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
552
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
598
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
651
options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
778
options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
781
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
815
var moduleOptions = TestOptions.ReleaseModule.WithMetadataImportOptions(MetadataImportOptions.
All
);
853
.WithMetadataImportOptions(MetadataImportOptions.
All
)
965
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
972
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
1067
.WithMetadataImportOptions(MetadataImportOptions.
All
)
1078
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
1085
Assert.Equal(MetadataImportOptions.
All
, ((PEModuleSymbol)module).ImportOptions);
Symbols\PartialPropertiesTests.cs (2)
1143
var comp1 = CreateCompilation([], options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), references: [reference]);
1190
var comp1 = CreateCompilation([], options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), references: [reference]);
Symbols\Source\CustomModifierCopyTests.cs (1)
881
options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
),
Symbols\Source\ExpressionBodiedPropertyTests.cs (1)
463
}", options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (1)
444
var comp = CreateEmptyCompilation("", references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Metadata\WinMdEventTests.cs (1)
3556
var comp = CreateEmptyCompilation("", WinRtRefs.Concat(new[] { ilRef }), TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
));
Microsoft.CodeAnalysis.Test.Utilities (1)
CompilationVerifier.cs (1)
660
_lazyModuleSymbol = GetSymbolFromMetadata(targetReference, MetadataImportOptions.
All
);
Microsoft.CodeAnalysis.VisualBasic (3)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
107
Dim metadataAssembly = metadataCompilation.GetBoundReferenceManager().CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata.Create(originalMetadata), MetadataImportOptions.
All
, assemblyReferenceIdentityMap)
Symbols\Source\SourceAssemblySymbol.vb (2)
93
Dim importOptions = If(compilation.Options.MetadataImportOptions = MetadataImportOptions.
All
,
94
MetadataImportOptions.
All
,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (59)
Attributes\AttributeTests_Synthesized.vb (17)
95
WithMetadataImportOptions(MetadataImportOptions.
All
))
152
WithMetadataImportOptions(MetadataImportOptions.
All
))
220
WithMetadataImportOptions(MetadataImportOptions.
All
))
274
WithMetadataImportOptions(MetadataImportOptions.
All
))
330
WithMetadataImportOptions(MetadataImportOptions.
All
))
417
WithMetadataImportOptions(MetadataImportOptions.
All
))
1457
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1484
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1514
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1544
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1572
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1600
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1625
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1655
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1689
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1719
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1750
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
CodeGen\CodeGenClosureLambdaTests.vb (2)
3489
CompileAndVerify(source, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator:=
3578
CompileAndVerify(source, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator:=
CodeGen\CodeGenLateBound.vb (1)
2395
Dim c = CompileAndVerify(source, expectedOutput:="5", options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), symbolValidator:=
Emit\CompilationEmitTests.vb (11)
652
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1476
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1508
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1542
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1593
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1610
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1629
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1671
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1689
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1709
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1741
options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
Emit\EditAndContinue\EditAndContinueClosureTests.vb (18)
99
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
150
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
202
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
255
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
334
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
418
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
525
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
621
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
690
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
763
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
827
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
893
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
973
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1086
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1331
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1458
Dim compilation0 = CreateCompilationWithMscorlib40({source0}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), assemblyName:="A")
1814
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1976
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
Emit\EditAndContinue\EditAndContinuePdbTests.vb (1)
125
Dim compilation0 = CreateCompilationWithMscorlib40({source0.Tree}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
), assemblyName:="EncMethodExtents")
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (6)
4011
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7052
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7417
Dim compilation0 = CreateEmptyCompilationWithReferences(source0, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7552
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
8039
Dim compilation0 = CreateEmptyCompilationWithReferences(source0, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
8172
Dim compilation0 = CreateCompilationWithMscorlib461AndVBRuntime({source0.Tree}, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
Emit\EditAndContinue\EditAndContinueTests.vb (2)
4775
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
4862
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
Emit\OptionalArgumentsTests.vb (1)
981
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
CompilationExtensions.vb (1)
119
WithMetadataImportOptions(MetadataImportOptions.
All
).
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Compilation\ReferenceManagerTests.vb (3)
1539
Dim [cAll] = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1542
Dim cAll2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1571
Dim mainAll = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
Compilation\SuppressAccessibilityChecksTests.vb (2)
46
compilationOptions:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
183
]]>.Value}, New MetadataReference() {referenceA}, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (79)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (1)
343
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
),
SymbolsTests\DefaultInterfaceImplementationTests.vb (56)
500
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
606
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
715
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
797
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
922
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1118
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1427
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1525
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
1628
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
4248
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions = MetadataImportOptions.
All
, "", "WriteOnly ") + "Property I1.P1 As System.Int32", i1P1.ToTestDisplayString())
4268
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4309
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions = MetadataImportOptions.
All
, "", "WriteOnly ") + "Property I1.P1 As System.String", i1P1.ToTestDisplayString())
4329
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4376
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions = MetadataImportOptions.
All
, "", "ReadOnly ") + "Property I1.P1 As System.Int32", i1P1.ToTestDisplayString())
4396
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4439
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions = MetadataImportOptions.
All
, "", "ReadOnly ") + "Property I1.P1 As System.String", i1P1.ToTestDisplayString())
4459
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4499
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4540
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4580
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.
All
), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4647
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
4691
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
4732
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
4957
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5002
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5044
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5292
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5336
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5377
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5460
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5505
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5550
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5847
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5892
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
5937
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
6408
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
6453
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
6498
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7500
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7599
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7703
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7783
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
7906
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
8093
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
8759
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
8864
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
8968
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
9048
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
9171
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
9358
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
10088
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
10223
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
10342
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
10433
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
10571
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
10781
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
SymbolsTests\Metadata\MetadataMemberTests.vb (8)
947
options = options.WithMetadataImportOptions(MetadataImportOptions.
All
)
948
Assert.Equal(MetadataImportOptions.
All
, options.MetadataImportOptions)
962
commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.
All
)
963
Assert.Equal(MetadataImportOptions.
All
, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions)
998
compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.
All
))
1028
options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.
All
)
1029
Assert.Equal(MetadataImportOptions.
All
, options.MetadataImportOptions)
1056
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.
All
))
SymbolsTests\Source\ImplementsTests.vb (8)
3875
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
3959
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
4054
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
4112
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
4181
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
4250
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
4335
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
4400
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
All
))
SymbolsTests\SymbolErrorTests.vb (6)
2887
</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
2916
</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
2945
</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
2974
</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
3024
</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))
3053
</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
All
))