3 writes to MetadataImportOptions
Microsoft.CodeAnalysis (1)
Compilation\CompilationOptions.cs (1)
322this.MetadataImportOptions = metadataImportOptions;
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
549return new CSharpCompilationOptions(this) { MetadataImportOptions = value };
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicCompilationOptions.vb (1)
909Return New VisualBasicCompilationOptions(Me) With {.MetadataImportOptions = value}
49 references to MetadataImportOptions
Microsoft.CodeAnalysis (6)
Compilation\CompilationOptions.cs (5)
340return this.MetadataImportOptions == other.MetadataImportOptions 634this.MetadataImportOptions == other.MetadataImportOptions && 681Hash.Combine((int)this.MetadataImportOptions,
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
356compilation.Options.MetadataImportOptions,
Microsoft.CodeAnalysis.CSharp (7)
CSharpCompilationOptions.cs (5)
258metadataImportOptions: other.MetadataImportOptions, 544if (value == this.MetadataImportOptions) 720if (!MetadataImportOptions.IsValid()) 722builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadCompilationOptionValue, nameof(MetadataImportOptions), MetadataImportOptions.ToString()));
Symbols\ReferenceManager.cs (1)
388compilation.Options.MetadataImportOptions,
Symbols\Source\SourceAssemblySymbol.cs (1)
133var importOptions = (compilation.Options.MetadataImportOptions == MetadataImportOptions.All) ?
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Compilation\CSharpCompilationOptionsTests.cs (1)
139TestProperty((old, value) => old.WithMetadataImportOptions(value), opt => opt.MetadataImportOptions, MetadataImportOptions.Internal);
Symbols\Metadata\MetadataMemberTests.cs (13)
693Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 696Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions); 699Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions); 702Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 705Assert.Equal((MetadataImportOptions)byte.MaxValue, options.MetadataImportOptions); 711Assert.Equal(MetadataImportOptions.Internal, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 714Assert.Equal(MetadataImportOptions.All, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 717Assert.Equal(MetadataImportOptions.Public, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 720Assert.Equal((MetadataImportOptions)byte.MaxValue, ((CSharpCompilationOptions)commonOptions).MetadataImportOptions); 774Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions); 777Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions); 780Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions); 783Assert.Equal((MetadataImportOptions)byte.MaxValue, options.MetadataImportOptions);
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
170var moduleSymbol = verifier.GetSymbolFromMetadata(reference, verifier.Compilation.Options.MetadataImportOptions);
Microsoft.CodeAnalysis.VisualBasic (6)
Symbols\ReferenceManager.vb (1)
335compilation.Options.MetadataImportOptions,
Symbols\Source\SourceAssemblySymbol.vb (1)
93Dim importOptions = If(compilation.Options.MetadataImportOptions = MetadataImportOptions.All,
VisualBasicCompilationOptions.vb (4)
331metadataImportOptions:=other.MetadataImportOptions, 905If value = Me.MetadataImportOptions Then 1071If Not MetadataImportOptions.IsValid() Then 1072builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(MetadataImportOptions), MetadataImportOptions.ToString()))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (14)
SymbolsTests\Metadata\MetadataMemberTests.vb (14)
942Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 945Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions) 948Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions) 951Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 954Assert.Equal(CType(Byte.MaxValue, MetadataImportOptions), options.MetadataImportOptions) 960Assert.Equal(MetadataImportOptions.Internal, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 963Assert.Equal(MetadataImportOptions.All, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 966Assert.Equal(MetadataImportOptions.Public, DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 969Assert.Equal(CType(Byte.MaxValue, MetadataImportOptions), DirectCast(commonOptions, VisualBasicCompilationOptions).MetadataImportOptions) 1023Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 1026Assert.Equal(MetadataImportOptions.Internal, options.MetadataImportOptions) 1029Assert.Equal(MetadataImportOptions.All, options.MetadataImportOptions) 1032Assert.Equal(MetadataImportOptions.Public, options.MetadataImportOptions) 1035Assert.Equal(CType(Byte.MaxValue, MetadataImportOptions), options.MetadataImportOptions)
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
65writer.WriteByte((byte)options.MetadataImportOptions);