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