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