817 references to MetadataImportOptions
Microsoft.CodeAnalysis (20)
Compilation\CompilationOptions.cs (5)
173/// Default value is <see cref="MetadataImportOptions.Public"/>. The value specified is not going to 178public MetadataImportOptions MetadataImportOptions { get; protected set; } 294MetadataImportOptions metadataImportOptions, 526public CompilationOptions WithMetadataImportOptions(MetadataImportOptions value) => CommonWithMetadataImportOptions(value); 552protected abstract CompilationOptions CommonWithMetadataImportOptions(MetadataImportOptions value);
MetadataReader\MetadataImportOptions.cs (3)
32internal static bool IsValid(this MetadataImportOptions value) 34return value >= MetadataImportOptions.Public && value <= MetadataImportOptions.All;
MetadataReader\ModuleExtensions.cs (8)
22public static bool ShouldImportField(this PEModule module, FieldDefinitionHandle field, MetadataImportOptions importOptions) 39public static bool ShouldImportField(FieldAttributes flags, MetadataImportOptions importOptions) 45return importOptions == MetadataImportOptions.All; 48return importOptions >= MetadataImportOptions.Internal; 60public static bool ShouldImportMethod(this PEModule module, TypeDefinitionHandle typeDef, MethodDefinitionHandle methodDef, MetadataImportOptions importOptions) 94static bool acceptBasedOnAccessibility(MetadataImportOptions importOptions, MethodAttributes flags) 100if (importOptions != MetadataImportOptions.All) 108if (importOptions == MetadataImportOptions.Public)
ReferenceManager\CommonReferenceManager.Binding.cs (3)
99MetadataImportOptions importOptions, 215MetadataImportOptions importOptions, 577MetadataImportOptions importOptions)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
38MetadataImportOptions importOptions,
Microsoft.CodeAnalysis.CSharp (26)
CSharpCompilationOptions.cs (8)
74MetadataImportOptions metadataImportOptions = MetadataImportOptions.Public, 124MetadataImportOptions metadataImportOptions) 180MetadataImportOptions.Public) 213MetadataImportOptions metadataImportOptions, 542public new CSharpCompilationOptions WithMetadataImportOptions(MetadataImportOptions value) 653protected override CompilationOptions CommonWithMetadataImportOptions(MetadataImportOptions value) => 935metadataImportOptions: MetadataImportOptions.Public,
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
102var metadataAssembly = metadataCompilation.GetBoundReferenceManager().CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata.Create(originalMetadata), MetadataImportOptions.All, out assemblyReferenceIdentityMap);
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
73internal PEAssemblySymbol(PEAssembly assembly, DocumentationProvider documentationProvider, bool isLinked, MetadataImportOptions importOptions)
Symbols\Metadata\PE\PEModuleSymbol.cs (5)
81internal readonly MetadataImportOptions ImportOptions; 125internal PEModuleSymbol(PEAssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal) 131internal PEModuleSymbol(SourceAssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal) 137internal PEModuleSymbol(RetargetingAssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal) 143private PEModuleSymbol(AssemblySymbol assemblySymbol, PEModule module, MetadataImportOptions importOptions, int ordinal)
Symbols\ReferenceManager.cs (7)
73MetadataImportOptions importOptions, 247public PEAssemblySymbol CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata metadata, MetadataImportOptions importOptions, out ImmutableDictionary<AssemblyIdentity, AssemblyIdentity> assemblyReferenceIdentityMap) 952private readonly MetadataImportOptions _compilationImportOptions; 969MetadataImportOptions compilationImportOptions) 1001internal MetadataImportOptions EffectiveImportOptions 1006if (InternalsMayBeVisibleToCompilation && _compilationImportOptions == MetadataImportOptions.Public) 1008return MetadataImportOptions.Internal;
Symbols\Source\SourceAssemblySymbol.cs (4)
133var importOptions = (compilation.Options.MetadataImportOptions == MetadataImportOptions.All) ? 134MetadataImportOptions.All : MetadataImportOptions.Internal;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (88)
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 (6)
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 => 962var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 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)
917CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails) 919CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify: Verification.Fails) 976CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails) 978CompileAndVerify(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 (2)
3040var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 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 (13)
120}, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 579CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 673CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 741CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 888CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 941options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1011options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal)); 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 (55)
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\CSharpDeterministicBuildCompilationTests.cs (1)
334metadataImportOptions: MetadataImportOptions.Public,
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 (188)
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 (24)
125var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 146var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 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 (151)
Compilation\CSharpCompilationOptionsTests.cs (2)
139TestProperty((old, value) => old.WithMetadataImportOptions(value), opt => opt.MetadataImportOptions, MetadataImportOptions.Internal); 410MetadataImportOptions metadataImportOptions = 0;
Compilation\ReferenceManagerTests.cs (9)
1836var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1837var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1838var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1840var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1841var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1842var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1868var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); 1873var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 1878var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public));
Symbols\AnonymousTypesSymbolTests.cs (1)
1452var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), parseOptions: TestOptions.Regular);
Symbols\DefaultInterfaceImplementationTests.cs (44)
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 }) 18376Assert.Equal(MetadataImportOptions.Public, ((PEModuleSymbol)p1.ContainingModule).ImportOptions); 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 (4)
57CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2476options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2522var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 2591", options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All));
Symbols\IndexerTests.cs (1)
70options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\MetadataMemberTests.cs (31)
693Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 695options = options.WithMetadataImportOptions(MetadataImportOptions.Internal); 696Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions); 698options = options.WithMetadataImportOptions(MetadataImportOptions.All); 699Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions); 701options = options.WithMetadataImportOptions(MetadataImportOptions.Public); 702Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 704options = options.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue); 705Assert.Equal((MetadataImportOptions)byte.MaxValue, options.MetadataImportOptions); 710commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.Internal); 711Assert.Equal(MetadataImportOptions.Internal, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 713commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.All); 714Assert.Equal(MetadataImportOptions.All, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 716commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.Public); 717Assert.Equal(MetadataImportOptions.Public, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 719commonOptions = commonOptions.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue); 720Assert.Equal((MetadataImportOptions)byte.MaxValue, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 741compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.Internal)); 748compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.All)); 755compilation = compilation.WithOptions(options.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue)); 773var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal); 774Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions); 776options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All); 777Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions); 779options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Public); 780Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 782options = TestOptions.DebugDll.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue); 783Assert.Equal((MetadataImportOptions)byte.MaxValue, options.MetadataImportOptions); 796var compilation = CreateCompilation("", options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Internal), references: new[] { compilation0.EmitToImageReference() }); 803compilation = compilation.WithOptions(TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); 810compilation = compilation.WithOptions(TestOptions.DebugDll.WithMetadataImportOptions((MetadataImportOptions)byte.MaxValue));
Symbols\Metadata\MetadataTypeTests.cs (3)
117var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 217options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)); 284options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
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\Metadata\PE\LoadingFields.cs (1)
29options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Metadata\PE\LoadingMethods.cs (1)
36options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
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\ExpressionBodiedMethodTests.cs (2)
340}", options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal)); 369}", options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal));
Symbols\Source\ExpressionBodiedPropertyTests.cs (2)
444}", options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal)); 463}", options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Symbols\Source\PropertyTests.cs (1)
789var compilation = CompileWithCustomPropertiesAssembly(source, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1503compilationOptions = compilationOptions.WithMetadataImportOptions(MetadataImportOptions.Internal);
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.Rebuild (2)
CSharpCompilationFactory.cs (1)
119metadataImportOptions: MetadataImportOptions.Public,
VisualBasicCompilationFactory.cs (1)
126metadataImportOptions: MetadataImportOptions.Public);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
367public void CompilationOptionsExcluded(bool concurrentBuild, MetadataImportOptions metaImportOptions)
Microsoft.CodeAnalysis.Test.Utilities (3)
CompilationVerifier.cs (2)
660_lazyModuleSymbol = GetSymbolFromMetadata(targetReference, MetadataImportOptions.All); 688internal IModuleSymbol GetSymbolFromMetadata(MetadataReference metadataReference, MetadataImportOptions importOptions)
ICompilationVerifier.cs (1)
14IModuleSymbol GetModuleSymbolForEmittedImage(ImmutableArray<byte> peImage, MetadataImportOptions importOptions);
Microsoft.CodeAnalysis.VisualBasic (24)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
107Dim metadataAssembly = metadataCompilation.GetBoundReferenceManager().CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata.Create(originalMetadata), MetadataImportOptions.All, assemblyReferenceIdentityMap)
Symbols\Metadata\PE\PEAssemblySymbol.vb (1)
74isLinked As Boolean, importOptions As MetadataImportOptions)
Symbols\Metadata\PE\PEModuleSymbol.vb (5)
73Friend ReadOnly ImportOptions As MetadataImportOptions 86Friend Sub New(assemblySymbol As PEAssemblySymbol, [module] As PEModule, importOptions As MetadataImportOptions, ordinal As Integer) 91Friend Sub New(assemblySymbol As SourceAssemblySymbol, [module] As PEModule, importOptions As MetadataImportOptions, ordinal As Integer) 96Friend Sub New(assemblySymbol As RetargetingAssemblySymbol, [module] As PEModule, importOptions As MetadataImportOptions, ordinal As Integer) 101Private Sub New(assemblySymbol As AssemblySymbol, [module] As PEModule, importOptions As MetadataImportOptions, ordinal As Integer)
Symbols\ReferenceManager.vb (7)
100importOptions As MetadataImportOptions, 209Friend Function CreatePEAssemblyForAssemblyMetadata(metadata As AssemblyMetadata, importOptions As MetadataImportOptions, <Out> ByRef assemblyReferenceIdentityMap As ImmutableDictionary(Of AssemblyIdentity, AssemblyIdentity)) As PEAssemblySymbol 813Private ReadOnly _compilationImportOptions As MetadataImportOptions 829compilationImportOptions As MetadataImportOptions) 858Friend ReadOnly Property EffectiveImportOptions As MetadataImportOptions 860If InternalsMayBeVisibleToCompilation AndAlso _compilationImportOptions = MetadataImportOptions.Public Then 861Return MetadataImportOptions.Internal
Symbols\Source\SourceAssemblySymbol.vb (3)
93Dim importOptions = If(compilation.Options.MetadataImportOptions = MetadataImportOptions.All, 94MetadataImportOptions.All, 95MetadataImportOptions.Internal)
VisualBasicCompilationOptions.vb (7)
99Optional metadataImportOptions As MetadataImportOptions = MetadataImportOptions.Public) 208MetadataImportOptions.Public) 247metadataImportOptions As MetadataImportOptions, 827Protected Overrides Function CommonWithMetadataImportOptions(value As MetadataImportOptions) As CompilationOptions 904Public Shadows Function WithMetadataImportOptions(value As MetadataImportOptions) As VisualBasicCompilationOptions 1340metadataImportOptions:=MetadataImportOptions.Public,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (71)
Attributes\AttributeTests_Synthesized.vb (18)
67Dim comp = VisualBasicCompilation.Create("Name", references:={reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 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:=
CodeGen\CodeGenSelectCase.vb (1)
3366Dim comp = VisualBasicCompilation.Create("Name", references:={reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal))
CodeGen\CodeGenVBCore.vb (7)
126options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 152options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 200options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 254options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 477options:=TestOptions.DebugExe.WithEmbedVbCoreRuntime(True).WithMetadataImportOptions(MetadataImportOptions.Internal)) 2495options:=TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.Internal)) 3303WithMetadataImportOptions(MetadataImportOptions.Internal).
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\EmitMetadata.vb (2)
95TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 894CompileAndVerify(sources, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False), options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal))
Emit\OptionalArgumentsTests.vb (1)
981options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All))
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
220metadataImportOptions:=MetadataImportOptions.Public)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
CompilationExtensions.vb (1)
119WithMetadataImportOptions(MetadataImportOptions.All).
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Compilation\ReferenceManagerTests.vb (9)
1537Dim cPublic = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)) 1538Dim cInternal = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 1539Dim [cAll] = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)) 1540Dim cPublic2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)) 1541Dim cInternal2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 1542Dim cAll2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)) 1571Dim mainAll = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)) 1576Dim mainInternal = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 1581Dim mainPublic = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public))
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 (145)
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 (32)
942Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 944options = options.WithMetadataImportOptions(MetadataImportOptions.Internal) 945Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions) 947options = options.WithMetadataImportOptions(MetadataImportOptions.All) 948Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions) 950options = options.WithMetadataImportOptions(MetadataImportOptions.Public) 951Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 953options = options.WithMetadataImportOptions(CType(Byte.MaxValue, MetadataImportOptions)) 954Assert.Equal(CType(Byte.MaxValue, MetadataImportOptions), options.MetadataImportOptions) 959commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.Internal) 960Assert.Equal(MetadataImportOptions.Internal, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 962commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.All) 963Assert.Equal(MetadataImportOptions.All, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 965commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.Public) 966Assert.Equal(MetadataImportOptions.Public, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 968commonOptions = commonOptions.WithMetadataImportOptions(CType(Byte.MaxValue, MetadataImportOptions)) 969Assert.Equal(CType(Byte.MaxValue, MetadataImportOptions), DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 991compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.Internal)) 998compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.All)) 1005compilation = compilation.WithOptions(options.WithMetadataImportOptions(CType(Byte.MaxValue, MetadataImportOptions))) 1023Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 1025options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.Internal) 1026Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions) 1028options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.All) 1029Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions) 1031options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.Public) 1032Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 1034options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=CType(Byte.MaxValue, MetadataImportOptions)) 1035Assert.Equal(CType(Byte.MaxValue, MetadataImportOptions), options.MetadataImportOptions) 1049Dim compilation = CreateCompilationWithMscorlib40("", options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.Internal), references:={compilation0.EmitToImageReference()}) 1056compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.All)) 1063compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=CType(Byte.MaxValue, MetadataImportOptions)))
SymbolsTests\Metadata\MetadataTypeTests.vb (3)
153</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 262</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 314</compilation>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal))
SymbolsTests\Source\ComClassTests.vb (36)
1402options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 1476options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 1600options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 1684options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 1728options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 1850options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 2852options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 3209options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 3362options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 3515options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 3693options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 3825options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 4139options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 4516options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 4708options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 4900options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 5092options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 5291options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 5507options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 5723options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 5939options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 6162options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 6337options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 6519options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 6648options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 6784options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 6898options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 6978options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 7124options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 7303options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 7500options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 7799options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 7968options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 8076options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 8123options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), 8161options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal),
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\Source\PropertyTests.vb (3)
1266options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 4531CompileAndVerify(source, symbolValidator:=validator(False), sourceSymbolValidator:=validator(True), options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal)) 4700Dim compilation = CompileWithCustomPropertiesAssembly(source, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal))
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))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MetadataHelpers.vb (1)
56Dim options = If(importInternals, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Internal), TestOptions.ReleaseDll)
Microsoft.CodeAnalysis.Workspaces (3)
Serialization\AbstractOptionsSerializationService.cs (3)
96MetadataImportOptions metadataImportOptions, 155var metadataImportOptions = (MetadataImportOptions)reader.ReadByte();