79 references to WithEmitMetadataOnly
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (29)
Emit\CompilationEmitTests.cs (28)
907var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 928var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 950var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 1206var image1 = comp1.EmitToStream(EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers)); 1210var image2 = comp2.EmitToStream(EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers)); 1325var refonlyOptions = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 1334var refoutOptions = EmitOptions.Default.WithEmitMetadataOnly(false).WithIncludePrivateMembers(false); 1816var image2 = comp2.EmitToImageReference(EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)); 1868EmitOptions.Default.WithEmitMetadataOnly(false)); 1874EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(true)); 1880EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)); 1985var options = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2088verifyIgnoresDiagnostics(EmitOptions.Default.WithEmitMetadataOnly(false).WithTolerateErrors(false), success: false); 2089verifyIgnoresDiagnostics(EmitOptions.Default.WithEmitMetadataOnly(true).WithTolerateErrors(false), success: expectSuccess); 2187var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2216var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2275var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2287var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2342var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2354var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2409var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2421var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2460var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2505var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2530options: EmitOptions.Default.WithEmitMetadataOnly(true))); 2544options: EmitOptions.Default.WithEmitMetadataOnly(true))); 2599options: EmitOptions.Default.WithEmitMetadataOnly(true))); 2638options: EmitOptions.Default.WithEmitMetadataOnly(true)
Emit\DeterministicTests.cs (1)
173var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
FieldKeywordTests.cs (1)
8297Microsoft.CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers));
RefStructInterfacesTests.cs (1)
4371emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true)).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\InterceptorsTests.cs (2)
1107var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true)); 1145comp.VerifyEmitDiagnostics(EmitOptions.Default.WithEmitMetadataOnly(true),
Semantics\NullableReferenceTypesTests.cs (2)
138692emitOptions: CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(metadataOnly), 138733emitOptions: CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(metadataOnly),
Semantics\RefFieldTests.cs (1)
2228var emitOptions = Microsoft.CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\StaticAbstractMembersInInterfacesTests.cs (16)
16066emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 16128emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19300emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19381emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19473emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19572emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19655emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19747emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19836emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 22928emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 23023emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 23114emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 25706emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 25801emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 28657emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 28785emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics();
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (27)
Emit\CompilationEmitTests.vb (27)
660Dim emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 683Dim emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 700Dim emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1004Dim options = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1063Dim image1 As ImmutableArray(Of Byte) = comp1.EmitToArray(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(includePrivateMembers)) 1068Dim image2 As ImmutableArray(Of Byte) = comp2.EmitToArray(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(includePrivateMembers)) 1169Dim refonlyOptions = EmitOptions.[Default].WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1175Dim refoutOptions = EmitOptions.[Default].WithEmitMetadataOnly(False).WithIncludePrivateMembers(False) 1301Dim image2 = comp2.EmitToImageReference(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False)) 1363Dim options = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1383EmitOptions.Default.WithEmitMetadataOnly(False)) 1387EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(True)) 1391EmitOptions.Default.WithEmitMetadataOnly(False).WithIncludePrivateMembers(False)) 1434Dim EmitResult = comp.Emit(output, options:=EmitOptions.Default.WithEmitMetadataOnly(True)) 1471Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1503Dim emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(True) 1537Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1588Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1605Dim emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(True) 1624Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1666Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1684Dim emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(True) 1704Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1733Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1736Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1761options:=EmitOptions.Default.WithEmitMetadataOnly(True))) 1774options:=EmitOptions.Default.WithEmitMetadataOnly(True)))