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
178
public
MetadataImportOptions
MetadataImportOptions { get; protected set; }
294
MetadataImportOptions
metadataImportOptions,
526
public CompilationOptions WithMetadataImportOptions(
MetadataImportOptions
value) => CommonWithMetadataImportOptions(value);
552
protected abstract CompilationOptions CommonWithMetadataImportOptions(
MetadataImportOptions
value);
MetadataReader\MetadataImportOptions.cs (3)
32
internal static bool IsValid(this
MetadataImportOptions
value)
34
return value >=
MetadataImportOptions
.Public && value <=
MetadataImportOptions
.All;
MetadataReader\ModuleExtensions.cs (8)
22
public static bool ShouldImportField(this PEModule module, FieldDefinitionHandle field,
MetadataImportOptions
importOptions)
39
public static bool ShouldImportField(FieldAttributes flags,
MetadataImportOptions
importOptions)
45
return importOptions ==
MetadataImportOptions
.All;
48
return importOptions >=
MetadataImportOptions
.Internal;
60
public static bool ShouldImportMethod(this PEModule module, TypeDefinitionHandle typeDef, MethodDefinitionHandle methodDef,
MetadataImportOptions
importOptions)
94
static bool acceptBasedOnAccessibility(
MetadataImportOptions
importOptions, MethodAttributes flags)
100
if (importOptions !=
MetadataImportOptions
.All)
108
if (importOptions ==
MetadataImportOptions
.Public)
ReferenceManager\CommonReferenceManager.Binding.cs (3)
99
MetadataImportOptions
importOptions,
215
MetadataImportOptions
importOptions,
577
MetadataImportOptions
importOptions)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
38
MetadataImportOptions
importOptions,
Microsoft.CodeAnalysis.CSharp (26)
CSharpCompilationOptions.cs (8)
74
MetadataImportOptions
metadataImportOptions =
MetadataImportOptions
.Public,
124
MetadataImportOptions
metadataImportOptions)
180
MetadataImportOptions
.Public)
213
MetadataImportOptions
metadataImportOptions,
542
public new CSharpCompilationOptions WithMetadataImportOptions(
MetadataImportOptions
value)
653
protected override CompilationOptions CommonWithMetadataImportOptions(
MetadataImportOptions
value) =>
935
metadataImportOptions:
MetadataImportOptions
.Public,
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
102
var metadataAssembly = metadataCompilation.GetBoundReferenceManager().CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata.Create(originalMetadata),
MetadataImportOptions
.All, out assemblyReferenceIdentityMap);
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
73
internal PEAssemblySymbol(PEAssembly assembly, DocumentationProvider documentationProvider, bool isLinked,
MetadataImportOptions
importOptions)
Symbols\Metadata\PE\PEModuleSymbol.cs (5)
81
internal readonly
MetadataImportOptions
ImportOptions;
125
internal PEModuleSymbol(PEAssemblySymbol assemblySymbol, PEModule module,
MetadataImportOptions
importOptions, int ordinal)
131
internal PEModuleSymbol(SourceAssemblySymbol assemblySymbol, PEModule module,
MetadataImportOptions
importOptions, int ordinal)
137
internal PEModuleSymbol(RetargetingAssemblySymbol assemblySymbol, PEModule module,
MetadataImportOptions
importOptions, int ordinal)
143
private PEModuleSymbol(AssemblySymbol assemblySymbol, PEModule module,
MetadataImportOptions
importOptions, int ordinal)
Symbols\ReferenceManager.cs (7)
73
MetadataImportOptions
importOptions,
247
public PEAssemblySymbol CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata metadata,
MetadataImportOptions
importOptions, out ImmutableDictionary<AssemblyIdentity, AssemblyIdentity> assemblyReferenceIdentityMap)
952
private readonly
MetadataImportOptions
_compilationImportOptions;
969
MetadataImportOptions
compilationImportOptions)
1001
internal
MetadataImportOptions
EffectiveImportOptions
1006
if (InternalsMayBeVisibleToCompilation && _compilationImportOptions ==
MetadataImportOptions
.Public)
1008
return
MetadataImportOptions
.Internal;
Symbols\Source\SourceAssemblySymbol.cs (4)
133
var
importOptions = (compilation.Options.MetadataImportOptions ==
MetadataImportOptions
.All) ?
134
MetadataImportOptions
.All :
MetadataImportOptions
.Internal;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (88)
CodeGen\CodeGenAsyncEHTests.cs (1)
940
var v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.Empty, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), expectedOutput: expected, symbolValidator: module =>
CodeGen\CodeGenAsyncLocalsTests.cs (6)
236
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
249
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
288
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
306
var vd = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
962
var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
1247
CompileAndVerify(source, targetFramework: TargetFramework.Empty, references: s_asyncRefs, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
CodeGen\CodeGenAsyncSpillTests.cs (2)
945
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
960
CompileAndVerify(source, verify: Verification.Passes, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
CodeGen\CodeGenAsyncTests.cs (4)
917
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
919
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All), expectedOutput: "11", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
976
CompileAndVerify(source, options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), expectedOutput: "11", symbolValidator: debugSymbolValidator, verify: Verification.Fails)
978
CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All), expectedOutput: "10", symbolValidator: releaseSymbolValidator, verify: Verification.Fails)
CodeGen\CodeGenClosureLambdaTests.cs (3)
3970
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: m =>
4041
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: m =>
4082
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: m =>
CodeGen\CodeGenConstructorInitTests.cs (5)
690
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
757
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
779
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
846
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
925
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
CodeGen\CodeGenDynamicTests.cs (8)
41
var unoptimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All).WithAllowUnsafe(allowUnsafe));
42
var optimizedCompilation = CreateCompilationWithMscorlib461(source, references, parseOptions: parseOptions, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All).WithAllowUnsafe(allowUnsafe));
584
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: peModule =>
640
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: peModule =>
675
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: peModule =>
801
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: peModule =>
821
var verifier = CompileAndVerifyWithCSharp(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: peModule =>
7593
TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
CodeGen\CodeGenFieldInitTests.cs (1)
569
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
CodeGen\CodeGenIterators.cs (6)
1176
var rel = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1193
var dbg = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1232
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1249
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1281
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1293
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
CodeGen\CodeGenLocalFunctionTests.cs (18)
5228
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5277
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5318
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5351
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5385
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5418
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5523
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
5530
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
5621
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5627
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5673
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5739
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5814
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5889
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5957
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
5997
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
6053
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
6110
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
CodeGen\CodeGenTests.cs (2)
932
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
14809
options: TestOptions.UnsafeDebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
CodeGen\SwitchTests.cs (2)
3040
var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
10246
options: TestOptions.DebugDll.WithOutputKind(OutputKind.ConsoleApplication).WithMetadataImportOptions(
MetadataImportOptions
.All));
Emit\CompilationEmitTests.cs (16)
897
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2133
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2164
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2192
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2221
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2270
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2280
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2292
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2337
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2347
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2359
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2404
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2414
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2426
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2465
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2510
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1022
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
Emit\EmitMetadataTests.cs (13)
120
}, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
579
CompileAndVerify(source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
673
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
741
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
888
CompileAndVerify(source: source, sourceSymbolValidator: validator(true), symbolValidator: validator(false), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
941
options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
1011
options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
1288
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2597
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2642
CompileAndVerify(text, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
2714
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2871
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2923
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (55)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (28)
245
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
306
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
378
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
436
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
488
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
548
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
602
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
657
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
713
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
768
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
911
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
985
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1052
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1111
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1199
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1288
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1372
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1463
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1545
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1622
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1721
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1812
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1919
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2117
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2329
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2463
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), assemblyName: "A");
2580
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), assemblyName: "A");
2713
var compilation0 = CreateCompilationWithMscorlib461(source0, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), assemblyName: "A");
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
121
var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), assemblyName: "EncMethodExtents");
Emit\UnmanagedTypeModifierTests.cs (2)
1034
options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
1087
options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
334
metadataImportOptions:
MetadataImportOptions
.Public,
PDB\PDBAsyncTests.cs (12)
759
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
847
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
952
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1039
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1155
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1259
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1366
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1464
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1550
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1658
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1694
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
1948
var v = CompileAndVerify(CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef, CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All)), symbolValidator: module =>
PDB\PDBConstantTests.cs (1)
409
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
PDB\PDBIteratorTests.cs (10)
736
var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
807
var v = CompileAndVerify(text, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
913
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
931
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1027
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1101
var v = CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1225
var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1371
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1457
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1519
var v = CompileAndVerify(source, new[] { CSharpRef }, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (188)
Attributes\AttributeTests.cs (9)
1837
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1871
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1932
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1995
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2214
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2280
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2351
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
2483
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
11008
var verifier = CompileAndVerify(source, symbolValidator: validateMetadata, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Attributes\AttributeTests_CallerInfoAttributes.cs (1)
3235
CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: verify);
Attributes\AttributeTests_Dynamic.cs (5)
822
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
853
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
888
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
910
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
1087
CompileAndVerify(source, references: new[] { CSharpRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
Attributes\AttributeTests_IsByRefLike.cs (3)
356
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
452
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
606
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
Attributes\AttributeTests_IsUnmanaged.cs (12)
92
CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
114
CompileAndVerify(text, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
201
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
229
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
320
options: TestOptions.ReleaseModule.WithMetadataImportOptions(
MetadataImportOptions
.All),
349
options: TestOptions.ReleaseModule.WithMetadataImportOptions(
MetadataImportOptions
.All),
417
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
437
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
626
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
702
CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(
MetadataImportOptions
.All)).VerifyDiagnostics(
713
CreateCompilation(source: code, options: TestOptions.ReleaseModule.WithMetadataImportOptions(
MetadataImportOptions
.All)).VerifyDiagnostics(
722
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
Attributes\AttributeTests_LifetimeAnnotation.cs (4)
454
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
491
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
518
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
554
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
Attributes\AttributeTests_MarshalAs.cs (2)
32
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
66
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Attributes\AttributeTests_NativeInteger.cs (7)
1081
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
1105
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
1128
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
1152
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
1413
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), parseOptions: TestOptions.Regular9);
1444
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
1460
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular9, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Attributes\AttributeTests_Nullable.cs (18)
526
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
561
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
2166
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2193
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2220
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2273
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2297
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2506
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2531
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2557
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
3470
var options = WithNullableEnable().WithMetadataImportOptions(
MetadataImportOptions
.All);
3756
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
3826
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
3867
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
3967
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
4036
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
4115
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
4970
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Attributes\AttributeTests_NullableContext.cs (1)
204
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Attributes\AttributeTests_NullablePublicOnly.cs (18)
31
var options = WithNullableEnable().WithMetadataImportOptions(
MetadataImportOptions
.All);
56
var options = WithNullableEnable().WithMetadataImportOptions(
MetadataImportOptions
.All);
83
var options = WithNullableEnable().WithMetadataImportOptions(
MetadataImportOptions
.All);
99
var options = WithNullableEnable().WithMetadataImportOptions(
MetadataImportOptions
.All);
119
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
139
var options = WithNullableEnable().WithMetadataImportOptions(
MetadataImportOptions
.All);
159
var options = WithNullableEnable().WithMetadataImportOptions(
MetadataImportOptions
.All);
179
var options = WithNullableDisable().WithMetadataImportOptions(
MetadataImportOptions
.All);
199
var options = WithNullableDisable().WithMetadataImportOptions(
MetadataImportOptions
.All);
216
var options = WithNullableDisable().WithMetadataImportOptions(
MetadataImportOptions
.All);
253
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
270
var options = WithNullableDisable().WithMetadataImportOptions(
MetadataImportOptions
.All);
290
var options = WithNullableDisable().WithMetadataImportOptions(
MetadataImportOptions
.All);
309
var options = WithNullableDisable().WithMetadataImportOptions(
MetadataImportOptions
.All);
329
var options = WithNullableDisable().WithMetadataImportOptions(
MetadataImportOptions
.All);
353
var options = TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All);
376
var options = TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All);
501
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithNullablePublicOnly(), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Attributes\AttributeTests_ReadOnlyStruct.cs (3)
346
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
444
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
598
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
Attributes\AttributeTests_RefReadOnly.cs (15)
594
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
622
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
648
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
682
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
721
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
753
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
780
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
815
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
1051
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
1169
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
1325
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
2342
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2366
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2389
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2413
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
Attributes\AttributeTests_Synthesized.cs (24)
125
var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
146
var 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);
665
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
735
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
797
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
871
CompileAndVerify(source, symbolValidator: validate, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1672
.WithMetadataImportOptions(
MetadataImportOptions
.All);
1715
.WithMetadataImportOptions(
MetadataImportOptions
.All);
1757
.WithMetadataImportOptions(
MetadataImportOptions
.All);
1799
.WithMetadataImportOptions(
MetadataImportOptions
.All);
1802
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
1838
.WithMetadataImportOptions(
MetadataImportOptions
.All);
1868
.WithMetadataImportOptions(
MetadataImportOptions
.All);
1898
.WithMetadataImportOptions(
MetadataImportOptions
.All);
1901
var options = TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
5762
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
RefReadonlyParameterTests.cs (2)
837
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
861
var verifier = CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
Semantics\InlineArrayTests.cs (21)
294
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
360
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
426
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
492
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
556
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
648
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
685
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
737
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
775
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
819
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
854
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
922
comp = CreateCompilationWithIL("", ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
960
var comp = CreateCompilation(src, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1046
comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1136
comp = CreateCompilationWithIL(consumer, ilSource, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
14635
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
14684
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
14733
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
14781
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
14828
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
14872
var comp = CreateCompilation(src + Buffer10Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Semantics\ParamsCollectionTests.cs (26)
97
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
277
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
590
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
1262
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
2414
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
2602
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
2735
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
2786
comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
2937
var comp = CreateCompilation(src, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
2981
comp = CreateCompilation(src2, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
4335
comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), parseOptions: TestOptions.Regular12);
4511
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
4515
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
4664
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
4668
var comp2 = CreateCompilation(src, references: [comp1.ToMetadataReference()], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
8677
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
8778
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
8875
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
8918
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
8962
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
12760
var comp = CreateCompilation(src1, references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
12766
var comp2 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
12774
var comp4 = CreateCompilation(src1, references: references.Concat([comp1Ref]), options: TestOptions.ReleaseModule.WithMetadataImportOptions(
MetadataImportOptions
.All));
13155
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
13215
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
13278
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
Semantics\PrimaryConstructorTests.cs (9)
15710
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
15732
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
15753
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
15774
var comp = CreateCompilation(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
22021
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
22042
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
22068
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
22094
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
22125
var comp = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Semantics\RecordTests.cs (7)
25100
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
25160
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
25237
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
25294
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
25369
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
25453
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
25523
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\AnonymousFunctionTests.cs (3)
25
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
40
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
1189
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
Semantics\BindingTests.cs (2)
1965
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
1987
CompileAndVerify(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
Semantics\ConditionalOperatorTests.cs (1)
715
options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
Semantics\GenericConstraintsTests.cs (2)
2192
CompileAndVerify(code, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: module =>
3080
options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
Semantics\InitOnlyMemberTests.cs (1)
1443
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Semantics\LocalFunctionTests.cs (3)
6891
CompileAndVerify(source, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator: m =>
6916
CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), expectedOutput: "System.Int32", symbolValidator: m =>
6946
CompileAndVerify(source, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), expectedOutput: "System.Int32", symbolValidator: m =>
Semantics\NullableReferenceTypesTests.cs (4)
17888
compilation = CreateCompilation("", references: new[] { compilation.EmitToImageReference() }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
98707
options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All)));
98774
options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All)),
98845
options: WithNullableEnable(TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All)),
Semantics\RecordStructTests.cs (1)
10514
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Semantics\SuppressAccessibilityChecksTests.cs (2)
44
", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
164
", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Semantics\TopLevelStatementsTests.cs (5)
6078
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
6149
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
9046
var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
9101
var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
9495
var comp = CreateCompilation(text, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (151)
Compilation\CSharpCompilationOptionsTests.cs (2)
139
TestProperty((old, value) => old.WithMetadataImportOptions(value), opt => opt.MetadataImportOptions,
MetadataImportOptions
.Internal);
410
MetadataImportOptions
metadataImportOptions = 0;
Compilation\ReferenceManagerTests.cs (9)
1836
var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Public));
1837
var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
1838
var cAll = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1840
var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Public));
1841
var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
1842
var cAll2 = CreateCompilation("class E { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1868
var mainAll = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
1873
var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
1878
var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Public));
Symbols\AnonymousTypesSymbolTests.cs (1)
1452
var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal), parseOptions: TestOptions.Regular);
Symbols\DefaultInterfaceImplementationTests.cs (44)
8871
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
9041
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
10371
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
10977
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
11000
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
14212
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
14230
var compilation2 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
14606
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
16767
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
17726
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
18280
foreach (
var
metadataImportOptions in new[] {
MetadataImportOptions
.All,
MetadataImportOptions
.Public })
18376
Assert.Equal(
MetadataImportOptions
.Public, ((PEModuleSymbol)p1.ContainingModule).ImportOptions);
18457
var compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
18465
compilation1 = CreateCompilation(source2 + source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
18495
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
18504
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
19969
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
20000
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
20038
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
20170
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
26531
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
26568
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
26607
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
26743
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
27789
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
27863
var compilation2 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
27883
var compilation3 = CreateCompilation(source2, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
28117
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
30103
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
36984
foreach (var options in new[] { TestOptions.DebugExe, TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All) })
43789
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
43919
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
44054
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
44642
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
44689
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
44723
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
44747
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
45056
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
45207
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
45350
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
45540
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
45680
var compilation1 = CreateCompilation(source1, options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
Symbols\ExtendedPartialMethodsTests.cs (2)
2556
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
2563
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
Symbols\ExtensionMethodTests.cs (4)
57
CompileAndVerify(source, validator: validator, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
2476
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
2522
var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
2591
", options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All));
Symbols\IndexerTests.cs (1)
70
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
Symbols\Metadata\MetadataMemberTests.cs (31)
693
Assert.Equal(
MetadataImportOptions
.Public, options.MetadataImportOptions);
695
options = options.WithMetadataImportOptions(
MetadataImportOptions
.Internal);
696
Assert.Equal(
MetadataImportOptions
.Internal, options.MetadataImportOptions);
698
options = options.WithMetadataImportOptions(
MetadataImportOptions
.All);
699
Assert.Equal(
MetadataImportOptions
.All, options.MetadataImportOptions);
701
options = options.WithMetadataImportOptions(
MetadataImportOptions
.Public);
702
Assert.Equal(
MetadataImportOptions
.Public, options.MetadataImportOptions);
704
options = options.WithMetadataImportOptions((
MetadataImportOptions
)byte.MaxValue);
705
Assert.Equal((
MetadataImportOptions
)byte.MaxValue, options.MetadataImportOptions);
710
commonOptions = commonOptions.WithMetadataImportOptions(
MetadataImportOptions
.Internal);
711
Assert.Equal(
MetadataImportOptions
.Internal, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions);
713
commonOptions = commonOptions.WithMetadataImportOptions(
MetadataImportOptions
.All);
714
Assert.Equal(
MetadataImportOptions
.All, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions);
716
commonOptions = commonOptions.WithMetadataImportOptions(
MetadataImportOptions
.Public);
717
Assert.Equal(
MetadataImportOptions
.Public, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions);
719
commonOptions = commonOptions.WithMetadataImportOptions((
MetadataImportOptions
)byte.MaxValue);
720
Assert.Equal((
MetadataImportOptions
)byte.MaxValue, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions);
741
compilation = compilation.WithOptions(options.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
748
compilation = compilation.WithOptions(options.WithMetadataImportOptions(
MetadataImportOptions
.All));
755
compilation = compilation.WithOptions(options.WithMetadataImportOptions((
MetadataImportOptions
)byte.MaxValue));
773
var options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal);
774
Assert.Equal(
MetadataImportOptions
.Internal, options.MetadataImportOptions);
776
options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All);
777
Assert.Equal(
MetadataImportOptions
.All, options.MetadataImportOptions);
779
options = TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.Public);
780
Assert.Equal(
MetadataImportOptions
.Public, options.MetadataImportOptions);
782
options = TestOptions.DebugDll.WithMetadataImportOptions((
MetadataImportOptions
)byte.MaxValue);
783
Assert.Equal((
MetadataImportOptions
)byte.MaxValue, options.MetadataImportOptions);
796
var compilation = CreateCompilation("", options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal), references: new[] { compilation0.EmitToImageReference() });
803
compilation = compilation.WithOptions(TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
810
compilation = compilation.WithOptions(TestOptions.DebugDll.WithMetadataImportOptions((
MetadataImportOptions
)byte.MaxValue));
Symbols\Metadata\MetadataTypeTests.cs (3)
117
var compilation = CreateEmptyCompilation(text, new[] { MscorlibRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
217
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
284
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
Symbols\Metadata\PE\LoadingEvents.cs (3)
468
var comp = CreateCompilation("", new[] { reference }, TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
521
var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
581
var comp = CreateCompilation("", new[] { ilRef }, TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Symbols\Metadata\PE\LoadingFields.cs (1)
29
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
Symbols\Metadata\PE\LoadingMethods.cs (1)
36
options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
Symbols\ModuleInitializers\IgnoredTests.cs (22)
36
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
39
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
62
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
65
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
88
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
91
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
113
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
116
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
138
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
141
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
163
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
166
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
188
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
191
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
213
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
216
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
234
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
237
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
255
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
258
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
288
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
291
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
Symbols\ModuleInitializers\ModuleInitializersTests.cs (19)
90
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
93
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
125
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
128
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
219
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
222
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
502
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
552
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
598
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
651
options: TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
778
options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
781
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
815
var moduleOptions = TestOptions.ReleaseModule.WithMetadataImportOptions(
MetadataImportOptions
.All);
853
.WithMetadataImportOptions(
MetadataImportOptions
.All)
965
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
972
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
1067
.WithMetadataImportOptions(
MetadataImportOptions
.All)
1078
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
1085
Assert.Equal(
MetadataImportOptions
.All, ((PEModuleSymbol)module).ImportOptions);
Symbols\PartialPropertiesTests.cs (2)
1143
var comp1 = CreateCompilation([], options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), references: [reference]);
1190
var comp1 = CreateCompilation([], options: TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), references: [reference]);
Symbols\Source\CustomModifierCopyTests.cs (1)
881
options: TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All),
Symbols\Source\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)
789
var compilation = CompileWithCustomPropertiesAssembly(source, TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1503
compilationOptions = compilationOptions.WithMetadataImportOptions(
MetadataImportOptions
.Internal);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (1)
444
var comp = CreateEmptyCompilation("", references, options: TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Metadata\WinMdEventTests.cs (1)
3556
var comp = CreateEmptyCompilation("", WinRtRefs.Concat(new[] { ilRef }), TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All));
Microsoft.CodeAnalysis.Rebuild (2)
CSharpCompilationFactory.cs (1)
119
metadataImportOptions:
MetadataImportOptions
.Public,
VisualBasicCompilationFactory.cs (1)
126
metadataImportOptions:
MetadataImportOptions
.Public);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
367
public void CompilationOptionsExcluded(bool concurrentBuild,
MetadataImportOptions
metaImportOptions)
Microsoft.CodeAnalysis.Test.Utilities (3)
CompilationVerifier.cs (2)
660
_lazyModuleSymbol = GetSymbolFromMetadata(targetReference,
MetadataImportOptions
.All);
688
internal IModuleSymbol GetSymbolFromMetadata(MetadataReference metadataReference,
MetadataImportOptions
importOptions)
ICompilationVerifier.cs (1)
14
IModuleSymbol GetModuleSymbolForEmittedImage(ImmutableArray<byte> peImage,
MetadataImportOptions
importOptions);
Microsoft.CodeAnalysis.VisualBasic (24)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
107
Dim metadataAssembly = metadataCompilation.GetBoundReferenceManager().CreatePEAssemblyForAssemblyMetadata(AssemblyMetadata.Create(originalMetadata),
MetadataImportOptions
.All, assemblyReferenceIdentityMap)
Symbols\Metadata\PE\PEAssemblySymbol.vb (1)
74
isLinked As Boolean, importOptions As
MetadataImportOptions
)
Symbols\Metadata\PE\PEModuleSymbol.vb (5)
73
Friend ReadOnly ImportOptions As
MetadataImportOptions
86
Friend Sub New(assemblySymbol As PEAssemblySymbol, [module] As PEModule, importOptions As
MetadataImportOptions
, ordinal As Integer)
91
Friend Sub New(assemblySymbol As SourceAssemblySymbol, [module] As PEModule, importOptions As
MetadataImportOptions
, ordinal As Integer)
96
Friend Sub New(assemblySymbol As RetargetingAssemblySymbol, [module] As PEModule, importOptions As
MetadataImportOptions
, ordinal As Integer)
101
Private Sub New(assemblySymbol As AssemblySymbol, [module] As PEModule, importOptions As
MetadataImportOptions
, ordinal As Integer)
Symbols\ReferenceManager.vb (7)
100
importOptions As
MetadataImportOptions
,
209
Friend Function CreatePEAssemblyForAssemblyMetadata(metadata As AssemblyMetadata, importOptions As
MetadataImportOptions
, <Out> ByRef assemblyReferenceIdentityMap As ImmutableDictionary(Of AssemblyIdentity, AssemblyIdentity)) As PEAssemblySymbol
813
Private ReadOnly _compilationImportOptions As
MetadataImportOptions
829
compilationImportOptions As
MetadataImportOptions
)
858
Friend ReadOnly Property EffectiveImportOptions As
MetadataImportOptions
860
If InternalsMayBeVisibleToCompilation AndAlso _compilationImportOptions =
MetadataImportOptions
.Public Then
861
Return
MetadataImportOptions
.Internal
Symbols\Source\SourceAssemblySymbol.vb (3)
93
Dim importOptions = If(compilation.Options.MetadataImportOptions =
MetadataImportOptions
.All,
94
MetadataImportOptions
.All,
95
MetadataImportOptions
.Internal)
VisualBasicCompilationOptions.vb (7)
99
Optional metadataImportOptions As
MetadataImportOptions
=
MetadataImportOptions
.Public)
208
MetadataImportOptions
.Public)
247
metadataImportOptions As
MetadataImportOptions
,
827
Protected Overrides Function CommonWithMetadataImportOptions(value As
MetadataImportOptions
) As CompilationOptions
904
Public Shadows Function WithMetadataImportOptions(value As
MetadataImportOptions
) As VisualBasicCompilationOptions
1340
metadataImportOptions:=
MetadataImportOptions
.Public,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (71)
Attributes\AttributeTests_Synthesized.vb (18)
67
Dim comp = VisualBasicCompilation.Create("Name", references:={reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
95
WithMetadataImportOptions(
MetadataImportOptions
.All))
152
WithMetadataImportOptions(
MetadataImportOptions
.All))
220
WithMetadataImportOptions(
MetadataImportOptions
.All))
274
WithMetadataImportOptions(
MetadataImportOptions
.All))
330
WithMetadataImportOptions(
MetadataImportOptions
.All))
417
WithMetadataImportOptions(
MetadataImportOptions
.All))
1457
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1484
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1514
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1544
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1572
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1600
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1625
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1655
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1689
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1719
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1750
Dim comp = CreateCompilationWithMscorlib45AndVBRuntime(<compilation/>, {reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
CodeGen\CodeGenClosureLambdaTests.vb (2)
3489
CompileAndVerify(source, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator:=
3578
CompileAndVerify(source, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator:=
CodeGen\CodeGenLateBound.vb (1)
2395
Dim c = CompileAndVerify(source, expectedOutput:="5", options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), symbolValidator:=
CodeGen\CodeGenSelectCase.vb (1)
3366
Dim comp = VisualBasicCompilation.Create("Name", references:={reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
CodeGen\CodeGenVBCore.vb (7)
126
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
152
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
200
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
254
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
477
options:=TestOptions.DebugExe.WithEmbedVbCoreRuntime(True).WithMetadataImportOptions(
MetadataImportOptions
.Internal))
2495
options:=TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
3303
WithMetadataImportOptions(
MetadataImportOptions
.Internal).
Emit\CompilationEmitTests.vb (11)
652
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1476
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1508
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1542
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1593
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1610
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1629
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1671
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1689
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1709
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1741
options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
Emit\EditAndContinue\EditAndContinueClosureTests.vb (18)
99
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
150
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
202
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
255
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
334
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
418
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
525
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
621
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
690
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
763
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
827
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
893
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
973
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1086
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1331
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, {MscorlibRef, SystemCoreRef}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1458
Dim compilation0 = CreateCompilationWithMscorlib40({source0}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), assemblyName:="A")
1814
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1976
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
Emit\EditAndContinue\EditAndContinuePdbTests.vb (1)
125
Dim compilation0 = CreateCompilationWithMscorlib40({source0.Tree}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All), assemblyName:="EncMethodExtents")
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (6)
4011
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7052
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7417
Dim compilation0 = CreateEmptyCompilationWithReferences(source0, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7552
Dim compilation0 = CreateEmptyCompilationWithReferences(source0.Tree, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
8039
Dim compilation0 = CreateEmptyCompilationWithReferences(source0, references:=LatestVbReferences, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
8172
Dim compilation0 = CreateCompilationWithMscorlib461AndVBRuntime({source0.Tree}, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
Emit\EditAndContinue\EditAndContinueTests.vb (2)
4775
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
4862
Dim compilation0 = CreateCompilationWithMscorlib40(source0.Tree, options:=ComSafeDebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
Emit\EmitMetadata.vb (2)
95
TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
894
CompileAndVerify(sources, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False), options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
Emit\OptionalArgumentsTests.vb (1)
981
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
220
metadataImportOptions:=
MetadataImportOptions
.Public)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
CompilationExtensions.vb (1)
119
WithMetadataImportOptions(
MetadataImportOptions
.All).
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (11)
Compilation\ReferenceManagerTests.vb (9)
1537
Dim cPublic = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Public))
1538
Dim cInternal = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
1539
Dim [cAll] = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1540
Dim cPublic2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Public))
1541
Dim cInternal2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
1542
Dim cAll2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1571
Dim mainAll = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1576
Dim mainInternal = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
1581
Dim mainPublic = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Public))
Compilation\SuppressAccessibilityChecksTests.vb (2)
46
compilationOptions:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
183
]]>.Value}, New MetadataReference() {referenceA}, TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (145)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (1)
343
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.All),
SymbolsTests\DefaultInterfaceImplementationTests.vb (56)
500
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
606
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
715
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
797
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
922
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1118
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1427
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1525
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
1628
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
4248
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions =
MetadataImportOptions
.All, "", "WriteOnly ") + "Property I1.P1 As System.Int32", i1P1.ToTestDisplayString())
4268
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4309
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions =
MetadataImportOptions
.All, "", "WriteOnly ") + "Property I1.P1 As System.String", i1P1.ToTestDisplayString())
4329
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4376
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions =
MetadataImportOptions
.All, "", "ReadOnly ") + "Property I1.P1 As System.Int32", i1P1.ToTestDisplayString())
4396
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4439
Assert.Equal(If(DirectCast(i1P1.ContainingModule, PEModuleSymbol).ImportOptions =
MetadataImportOptions
.All, "", "ReadOnly ") + "Property I1.P1 As System.String", i1P1.ToTestDisplayString())
4459
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4499
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4540
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4580
comp1 = CreateCompilation(source1, options:=TestOptions.DebugExe.WithMetadataImportOptions(
MetadataImportOptions
.All), targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation})
4647
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
4691
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
4732
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
4957
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5002
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5044
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5292
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5336
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5377
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5460
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5505
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5550
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5847
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5892
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
5937
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
6408
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
6453
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
6498
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7500
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7599
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7703
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7783
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
7906
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
8093
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
8759
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
8864
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
8968
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
9048
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
9171
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
9358
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
10088
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
10223
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
10342
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
10433
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
10571
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
10781
Dim comp2 = CreateCompilation(source1, targetFramework:=TargetFramework.NetCoreApp, references:={csCompilation}, options:=TestOptions.DebugDll.WithMetadataImportOptions(
MetadataImportOptions
.All))
SymbolsTests\Metadata\MetadataMemberTests.vb (32)
942
Assert.Equal(
MetadataImportOptions
.Public, options.MetadataImportOptions)
944
options = options.WithMetadataImportOptions(
MetadataImportOptions
.Internal)
945
Assert.Equal(
MetadataImportOptions
.Internal, options.MetadataImportOptions)
947
options = options.WithMetadataImportOptions(
MetadataImportOptions
.All)
948
Assert.Equal(
MetadataImportOptions
.All, options.MetadataImportOptions)
950
options = options.WithMetadataImportOptions(
MetadataImportOptions
.Public)
951
Assert.Equal(
MetadataImportOptions
.Public, options.MetadataImportOptions)
953
options = options.WithMetadataImportOptions(CType(Byte.MaxValue,
MetadataImportOptions
))
954
Assert.Equal(CType(Byte.MaxValue,
MetadataImportOptions
), options.MetadataImportOptions)
959
commonOptions = commonOptions.WithMetadataImportOptions(
MetadataImportOptions
.Internal)
960
Assert.Equal(
MetadataImportOptions
.Internal, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions)
962
commonOptions = commonOptions.WithMetadataImportOptions(
MetadataImportOptions
.All)
963
Assert.Equal(
MetadataImportOptions
.All, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions)
965
commonOptions = commonOptions.WithMetadataImportOptions(
MetadataImportOptions
.Public)
966
Assert.Equal(
MetadataImportOptions
.Public, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions)
968
commonOptions = commonOptions.WithMetadataImportOptions(CType(Byte.MaxValue,
MetadataImportOptions
))
969
Assert.Equal(CType(Byte.MaxValue,
MetadataImportOptions
), DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions)
991
compilation = compilation.WithOptions(options.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
998
compilation = compilation.WithOptions(options.WithMetadataImportOptions(
MetadataImportOptions
.All))
1005
compilation = compilation.WithOptions(options.WithMetadataImportOptions(CType(Byte.MaxValue,
MetadataImportOptions
)))
1023
Assert.Equal(
MetadataImportOptions
.Public, options.MetadataImportOptions)
1025
options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=
MetadataImportOptions
.Internal)
1026
Assert.Equal(
MetadataImportOptions
.Internal, options.MetadataImportOptions)
1028
options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=
MetadataImportOptions
.All)
1029
Assert.Equal(
MetadataImportOptions
.All, options.MetadataImportOptions)
1031
options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=
MetadataImportOptions
.Public)
1032
Assert.Equal(
MetadataImportOptions
.Public, options.MetadataImportOptions)
1034
options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=CType(Byte.MaxValue,
MetadataImportOptions
))
1035
Assert.Equal(CType(Byte.MaxValue,
MetadataImportOptions
), options.MetadataImportOptions)
1049
Dim compilation = CreateCompilationWithMscorlib40("", options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=
MetadataImportOptions
.Internal), references:={compilation0.EmitToImageReference()})
1056
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=
MetadataImportOptions
.All))
1063
compilation = 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)
1402
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
1476
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
1600
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
1684
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
1728
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
1850
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
2852
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
3209
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
3362
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
3515
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
3693
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
3825
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
4139
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
4516
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
4708
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
4900
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
5092
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
5291
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
5507
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
5723
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
5939
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
6162
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
6337
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
6519
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
6648
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
6784
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
6898
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
6978
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
7124
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
7303
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
7500
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
7799
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
7968
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
8076
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
8123
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
8161
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal),
SymbolsTests\Source\ImplementsTests.vb (8)
3875
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
3959
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
4054
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
4112
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
4181
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
4250
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
4335
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
4400
Dim compilation = CreateEmptyCompilationWithReferences(vbSource, {MscorlibRef, MsvbRef, reference}, TestOptions.ReleaseExe.WithMetadataImportOptions(
MetadataImportOptions
.All))
SymbolsTests\Source\PropertyTests.vb (3)
1266
options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
4531
CompileAndVerify(source, symbolValidator:=validator(False), sourceSymbolValidator:=validator(True), options:=TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal))
4700
Dim 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)
56
Dim options = If(importInternals, TestOptions.ReleaseDll.WithMetadataImportOptions(
MetadataImportOptions
.Internal), TestOptions.ReleaseDll)
Microsoft.CodeAnalysis.Workspaces (3)
Serialization\AbstractOptionsSerializationService.cs (3)
96
MetadataImportOptions
metadataImportOptions,
155
var
metadataImportOptions = (
MetadataImportOptions
)reader.ReadByte();