38 references to Public
Microsoft.CodeAnalysis (3)
Compilation\CompilationOptions.cs (1)
173/// Default value is <see cref="MetadataImportOptions.Public"/>. The value specified is not going to
MetadataReader\MetadataImportOptions.cs (1)
34return value >= MetadataImportOptions.Public && value <= MetadataImportOptions.All;
MetadataReader\ModuleExtensions.cs (1)
108if (importOptions == MetadataImportOptions.Public)
Microsoft.CodeAnalysis.CSharp (4)
CSharpCompilationOptions.cs (3)
74MetadataImportOptions metadataImportOptions = MetadataImportOptions.Public, 180MetadataImportOptions.Public) 935metadataImportOptions: MetadataImportOptions.Public,
Symbols\ReferenceManager.cs (1)
1006if (InternalsMayBeVisibleToCompilation && _compilationImportOptions == MetadataImportOptions.Public)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
334metadataImportOptions: MetadataImportOptions.Public,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\ReferenceManagerTests.cs (3)
1836var cPublic = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1840var cPublic2 = CreateCompilation("class C { }", options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)); 1878var mainPublic = CreateCompilation(mainSource, new[] { moduleRef }, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public));
Symbols\DefaultInterfaceImplementationTests.cs (2)
18280foreach (var metadataImportOptions in new[] { MetadataImportOptions.All, MetadataImportOptions.Public }) 18376Assert.Equal(MetadataImportOptions.Public, ((PEModuleSymbol)p1.ContainingModule).ImportOptions);
Symbols\Metadata\MetadataMemberTests.cs (7)
693Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 701options = options.WithMetadataImportOptions(MetadataImportOptions.Public); 702Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 716commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.Public); 717Assert.Equal(MetadataImportOptions.Public, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 779options = TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.Public); 780Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions);
Microsoft.CodeAnalysis.Rebuild (2)
CSharpCompilationFactory.cs (1)
119metadataImportOptions: MetadataImportOptions.Public,
VisualBasicCompilationFactory.cs (1)
126metadataImportOptions: MetadataImportOptions.Public);
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\ReferenceManager.vb (1)
860If InternalsMayBeVisibleToCompilation AndAlso _compilationImportOptions = MetadataImportOptions.Public Then
VisualBasicCompilationOptions.vb (3)
99Optional metadataImportOptions As MetadataImportOptions = MetadataImportOptions.Public) 208MetadataImportOptions.Public) 1340metadataImportOptions:=MetadataImportOptions.Public,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
220metadataImportOptions:=MetadataImportOptions.Public)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\ReferenceManagerTests.vb (3)
1537Dim cPublic = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)) 1540Dim cPublic2 = CreateCompilationWithMscorlib40(<code></code>, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public)) 1581Dim mainPublic = CreateCompilationWithMscorlib40AndReferences(mainSource, {moduleRef}, options:=TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.Public))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (8)
SymbolsTests\Metadata\MetadataMemberTests.vb (8)
942Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 950options = options.WithMetadataImportOptions(MetadataImportOptions.Public) 951Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 965commonOptions = commonOptions.WithMetadataImportOptions(MetadataImportOptions.Public) 966Assert.Equal(MetadataImportOptions.Public, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 1023Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 1031options = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, metadataImportOptions:=MetadataImportOptions.Public) 1032Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions)