108 references to Internal
Microsoft.CodeAnalysis (1)
MetadataReader\ModuleExtensions.cs (1)
48
return importOptions >= MetadataImportOptions.
Internal
;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ReferenceManager.cs (1)
1008
return MetadataImportOptions.
Internal
;
Symbols\Source\SourceAssemblySymbol.cs (1)
134
MetadataImportOptions.All : MetadataImportOptions.
Internal
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
962
var comp = CreateCompilationWithMscorlib461("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
CodeGen\SwitchTests.cs (1)
3040
var comp = CSharpCompilation.Create("Name", references: new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
Emit\EmitMetadataTests.cs (7)
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
));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Synthesized.cs (2)
125
var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
146
var comp = CreateEmptyCompilation("", new[] { reference }, options: TestOptions.UnsafeReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Compilation\CSharpCompilationOptionsTests.cs (1)
139
TestProperty((old, value) => old.WithMetadataImportOptions(value), opt => opt.MetadataImportOptions, MetadataImportOptions.
Internal
);
Compilation\ReferenceManagerTests.cs (3)
1837
var cInternal = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
1841
var cInternal2 = CreateCompilation("class D { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
1873
var mainInternal = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
Symbols\AnonymousTypesSymbolTests.cs (1)
1452
var compilation = CreateCompilationWithMscorlib40(new string[] { source1, source2, source3 }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
), parseOptions: TestOptions.Regular);
Symbols\ExtensionMethodTests.cs (3)
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
));
Symbols\IndexerTests.cs (1)
70
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
Symbols\Metadata\MetadataMemberTests.cs (8)
695
options = options.WithMetadataImportOptions(MetadataImportOptions.
Internal
);
696
Assert.Equal(MetadataImportOptions.
Internal
, options.MetadataImportOptions);
710
commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.
Internal
);
711
Assert.Equal(MetadataImportOptions.
Internal
, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions);
741
compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
773
var options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
);
774
Assert.Equal(MetadataImportOptions.
Internal
, options.MetadataImportOptions);
796
var compilation = CreateCompilation("", options: TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
), references: new[] { compilation0.EmitToImageReference() });
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\LoadingFields.cs (1)
29
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
Symbols\Metadata\PE\LoadingMethods.cs (1)
36
options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
Symbols\Source\ExpressionBodiedMethodTests.cs (2)
340
}", options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
369
}", options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
Symbols\Source\ExpressionBodiedPropertyTests.cs (1)
444
}", options: TestOptions.ReleaseExe.WithMetadataImportOptions(MetadataImportOptions.
Internal
));
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.VisualBasic (2)
Symbols\ReferenceManager.vb (1)
861
Return MetadataImportOptions.
Internal
Symbols\Source\SourceAssemblySymbol.vb (1)
95
MetadataImportOptions.
Internal
)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Attributes\AttributeTests_Synthesized.vb (1)
67
Dim comp = VisualBasicCompilation.Create("Name", references:={reference}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
))
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\EmitMetadata.vb (2)
95
TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
))
894
CompileAndVerify(sources, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False), options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\ReferenceManagerTests.vb (3)
1538
Dim cInternal = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
))
1541
Dim cInternal2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
))
1576
Dim mainInternal = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (50)
SymbolsTests\Metadata\MetadataMemberTests.vb (8)
944
options = options.WithMetadataImportOptions(MetadataImportOptions.
Internal
)
945
Assert.Equal(MetadataImportOptions.
Internal
, options.MetadataImportOptions)
959
commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.
Internal
)
960
Assert.Equal(MetadataImportOptions.
Internal
, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions)
991
compilation = compilation.WithOptions(options.WithMetadataImportOptions(MetadataImportOptions.
Internal
))
1025
options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.
Internal
)
1026
Assert.Equal(MetadataImportOptions.
Internal
, options.MetadataImportOptions)
1049
Dim compilation = CreateCompilationWithMscorlib40("", options:=New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.
Internal
), references:={compilation0.EmitToImageReference()})
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\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
))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MetadataHelpers.vb (1)
56
Dim options = If(importInternals, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.
Internal
), TestOptions.ReleaseDll)