122 references to Options
Microsoft.CodeAnalysis.VisualBasic (122)
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (2)
77If info.Compilation.Options.OptimizationLevel <> OptimizationLevel.Release Then 145ElseIf compilation.Options.OptimizationLevel = OptimizationLevel.Release Then
Binding\Binder.vb (3)
500Dim rootNamespace = Me.Compilation.Options.RootNamespace 606useSiteInfo = GetUseSiteInfoForWellKnownTypeMember(memberSymbol, member, compilation.Options.EmbedVbCoreRuntime) 1108Dim useSiteInfo As UseSiteInfo(Of AssemblySymbol) = GetUseSiteInfoForWellKnownTypeMember(memberSymbol, attributeCtor, compilation.Options.EmbedVbCoreRuntime)
Binding\Binder_Expressions.vb (1)
2525If IdentifierComparison.Equals(MissingRuntimeMemberDiagnosticHelper.MyVBNamespace, name) AndAlso Me.Compilation.Options.EmbedVbCoreRuntime Then
Binding\Binder_Invocation.vb (1)
3152callerInfoValue = ConstantValue.Create(callerInfoOpt.SyntaxTree.GetDisplayPath(callerInfoOpt.Span, Me.Compilation.Options.SourceReferenceResolver))
Binding\Binder_Lookup.vb (1)
171If Not Me.Compilation.Options.EmbedVbCoreRuntime Then
Binding\Binder_Statements.vb (1)
5322If Not Compilation.Options.OutputKind.IsApplication() Then
Compilation\ClsComplianceChecker.vb (3)
60Return _filterTree Is Nothing AndAlso _compilation.Options.ConcurrentBuild 659Debug.Assert(symbol.Kind <> If(Me._compilation.Options.OutputKind = OutputKind.NetModule, SymbolKind.Assembly, SymbolKind.NetModule) OrElse 799Dim producingNetModule = Me._compilation.Options.OutputKind = OutputKind.NetModule
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
481Dim resolver = _compilation.Options.XmlReferenceResolver 494_includedFileCache = New DocumentationCommentIncludeCache(_compilation.Options.XmlReferenceResolver)
Compilation\DocumentationComments\DocumentationCommentCompiler.Namespace.vb (1)
36If Not Me._compilation.Options.OutputKind.IsNetModule() Then
Compilation\MethodCompiler.vb (5)
108If compilation.Options.ConcurrentBuild Then 282If entryPoint IsNot Nothing AndAlso compilation.Options.OutputKind.IsApplication Then 334Debug.Assert(entryPoint IsNot Nothing OrElse entryPointAndDiagnostics.Diagnostics.HasAnyErrors() OrElse Not compilation.Options.Errors.IsDefaultOrEmpty) 495If Me._compilation.Options.ConcurrentBuild Then 527If Me._compilation.Options.ConcurrentBuild Then
Compilation\VisualBasicCompilation.vb (37)
243Dim compilationOptions = Me.Options 303Dim embedded = If(Options.EmbedVbCoreRuntime, EmbeddedSymbolKind.VbCore, EmbeddedSymbolKind.None) Or 560Me.Options, 602Me.Options, 629If Not String.Equals(Me.Options.RootNamespace, newOptions.RootNamespace, StringComparison.Ordinal) Then 648ElseIf Me.Options.EmbedVbCoreRuntime <> newOptions.EmbedVbCoreRuntime OrElse Me.Options.ParseOptions <> newOptions.ParseOptions Then 691Me.Options, 717Me.Options, 739Me.Options, 760WriteValue(builder, CompilationOptionNames.Checked, Options.CheckOverflow.ToString()) 761WriteValue(builder, CompilationOptionNames.OptionStrict, Options.OptionStrict.ToString()) 762WriteValue(builder, CompilationOptionNames.OptionInfer, Options.OptionInfer.ToString()) 763WriteValue(builder, CompilationOptionNames.OptionCompareText, Options.OptionCompareText.ToString()) 764WriteValue(builder, CompilationOptionNames.OptionExplicit, Options.OptionExplicit.ToString()) 765WriteValue(builder, CompilationOptionNames.EmbedRuntime, Options.EmbedVbCoreRuntime.ToString()) 767If Options.GlobalImports.Length > 0 Then 768WriteValue(builder, CompilationOptionNames.GlobalNamespaces, String.Join(";", Options.GlobalImports.Select(Function(x) x.Name))) 771If Not String.IsNullOrEmpty(Options.RootNamespace) Then 772WriteValue(builder, CompilationOptionNames.RootNamespace, Options.RootNamespace) 775If Options.ParseOptions IsNot Nothing Then 776Dim preprocessorStrings = Options.ParseOptions.PreprocessorSymbols.Select( 1214Return Not Me.Options.SuppressEmbeddedDeclarations AndAlso 1498If Not Me.Options.OutputKind.IsApplication() AndAlso ScriptClass Is Nothing Then 1502If Me.Options.MainTypeName IsNot Nothing AndAlso Not Me.Options.MainTypeName.IsValidClrTypeName() Then 1503Debug.Assert(Not Me.Options.Errors.IsDefaultOrEmpty) 1523Dim mainTypeName As String = Me.Options.MainTypeName 2155If Options.ConcurrentBuild Then 2172If Options.ParseOptions IsNot Nothing Then 2173parseOptionsReported.Add(Options.ParseOptions) ' This is reported in Options.Errors at CompilationStage.Declare 2190builder.AddRange(Options.Errors) 2335Not Me.Options.OutputKind.IsApplication(), 2417If Options.OutputKind.IsNetModule() Then 2426Dim kind = If(Options.OutputKind.IsValid(), Options.OutputKind, OutputKind.DynamicallyLinkedLibrary) 2746Return Options
Emit\EditAndContinue\EmitHelpers.vb (1)
89compilation.Options.OutputKind,
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
91Dim kind = If(compilationState.Compilation.Options.EnableEditAndContinue, TypeKind.Class, TypeKind.Struct)
Lowering\LocalRewriter\LocalRewriter.vb (3)
145Return Me.Compilation.Options.OptimizationLevel = OptimizationLevel.Debug 587Return ReportMissingOrBadRuntimeHelper(node, specialMember, memberSymbol, Me._diagnostics, _compilationState.Compilation.Options.EmbedVbCoreRuntime) 618Return ReportMissingOrBadRuntimeHelper(node, wellKnownMember, memberSymbol, Me._diagnostics, _compilationState.Compilation.Options.EmbedVbCoreRuntime)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
161Dim info = GetDiagnosticForMissingRuntimeHelper(memberDescriptor.DeclaringTypeMetadataName, accessorName, _compilationState.Compilation.Options.EmbedVbCoreRuntime)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (2)
167Dim isDebugBuild As Boolean = F.Compilation.Options.OptimizationLevel = OptimizationLevel.Debug 293If Not local.SynthesizedKind.IsSlotReusable(F.Compilation.Options.OptimizationLevel) Then
Lowering\SyntheticBoundNodeFactory.vb (1)
267useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(GetDiagnosticForMissingRuntimeHelper(memberDescriptor.DeclaringTypeMetadataName, memberDescriptor.Name, CompilationState.Compilation.Options.EmbedVbCoreRuntime))
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
32Dim vbEmbedRuntime = Compilation.Options.EmbedVbCoreRuntime
Symbols\Attributes\AttributeData.vb (3)
390Dim resolver = compilation.Options.XmlReferenceResolver 554target.DeclaringCompilation.Options.OutputKind = OutputKind.NetModule) OrElse 591target.DeclaringCompilation.Options.OutputKind <> OutputKind.NetModule) Then
Symbols\ReferenceManager.vb (3)
295Dim supersedeLowerVersions = compilation.Options.ReferencesSupersedeLowerVersions 334compilation.Options.MetadataReferenceResolver, 335compilation.Options.MetadataImportOptions,
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
196Dim identityComparer = _underlyingModule.DeclaringCompilation.Options.AssemblyIdentityComparer
Symbols\Source\SourceAssemblySymbol.vb (35)
91moduleBuilder.Add(New SourceModuleSymbol(Me, compilation.Declarations, compilation.Options, moduleName)) 93Dim importOptions = If(compilation.Options.MetadataImportOptions = MetadataImportOptions.All, 105If Not compilation.Options.CryptoPublicKey.IsEmpty Then 107_lazyStrongNameKeys = StrongNameKeys.Create(compilation.Options.CryptoPublicKey, privateKey:=Nothing, hasCounterSignature:=False, MessageProvider.Instance) 375If _compilation.Options.OutputKind.IsNetModule() Then 1071If Me.DeclaringCompilation.Options.OutputKind.IsApplication() Then 1251If DeclaringCompilation.Options.PublicSign Then 1264If DeclaringCompilation.Options.OutputKind <> OutputKind.NetModule AndAlso 1265DeclaringCompilation.Options.CryptoPublicKey.IsEmpty AndAlso 1268Not DeclaringCompilation.Options.PublicSign AndAlso 1292If _compilation.Options.PublicSign AndAlso DelaySignAttributeSetting Then 1295NameOf(_compilation.Options.PublicSign)) 1298If _compilation.Options.OutputKind = OutputKind.NetModule Then 1299If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) Then 1311ElseIf String.Compare(_compilation.Options.CryptoKeyContainer, assemblyKeyContainerAttributeSetting, StringComparison.OrdinalIgnoreCase) <> 0 Then 1324If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) Then 1336ElseIf String.Compare(_compilation.Options.CryptoKeyFile, assemblyKeyFileAttributeSetting, StringComparison.OrdinalIgnoreCase) <> 0 Then 1341ElseIf _compilation.Options.PublicSign Then 1368If _modules.Length > 1 AndAlso Not _compilation.Options.OutputKind.IsNetModule() Then 1419If (DeclaringCompilation.Options.DelaySign.HasValue) Then 1420Return DeclaringCompilation.Options.DelaySign.Value 1468Dim compilationOptions As VisualBasicCompilationOptions = compilation.Options 1517Dim options As VisualBasicCompilationOptions = Me.DeclaringCompilation.Options 1614If _compilation.Options.OutputKind = OutputKind.NetModule Then 1618If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyContainer) AndAlso 1623Dim typedConstant = New TypedConstant(stringType, TypedConstantKind.Primitive, _compilation.Options.CryptoKeyContainer) 1627If Not String.IsNullOrEmpty(_compilation.Options.CryptoKeyFile) AndAlso 1632Dim typedConstant = New TypedConstant(stringType, TypedConstantKind.Primitive, _compilation.Options.CryptoKeyFile) 1705Dim keyFile As String = _compilation.Options.CryptoKeyFile 1708If DeclaringCompilation.Options.PublicSign Then 1712Debug.Assert(Not DeclaringCompilation.Options.Errors.IsEmpty) 1732Dim keyContainer As String = _compilation.Options.CryptoKeyContainer 1743keys = StrongNameKeys.Create(DeclaringCompilation.Options.StrongNameProvider, keyFile, keyContainer, hasCounterSignature, MessageProvider.Instance) 1752VersionHelper.GenerateVersionFromPatternAndCurrentTime(_compilation.Options.CurrentLocalTime, AssemblyVersionAttributeSetting), 1778If Not _compilation.Options.OutputKind.IsNetModule() Then
Symbols\Source\SourceModuleSymbol.vb (5)
106Select Case DeclaringCompilation.Options.Platform 123Return DeclaringCompilation.Options.Platform = Platform.X86 607Dim tasks As ConcurrentStack(Of Task) = If(ContainingSourceAssembly.DeclaringCompilation.Options.ConcurrentBuild, New ConcurrentStack(Of Task)(), Nothing) 659If ContainingSourceAssembly.DeclaringCompilation.Options.ConcurrentBuild Then 686Dim tasks As ConcurrentStack(Of Task) = If(ContainingSourceAssembly.DeclaringCompilation.Options.ConcurrentBuild,
Symbols\Source\SourceNamedTypeSymbol.vb (2)
1814For Each globalImport In Me.DeclaringCompilation.Options.GlobalImports 2620Dim mainTypeName As String = DeclaringCompilation.Options.MainTypeName
Symbols\SymbolExtensions.vb (1)
20Return comp IsNot Nothing And comp.Options.OutputKind = OutputKind.WindowsRuntimeMetadata
Symbols\WellKnownMembers.vb (5)
254If Options.OptimizationLevel <> OptimizationLevel.Debug Then 266If Options.OptimizationLevel <> OptimizationLevel.Debug Then 282If Options.OptimizationLevel <> OptimizationLevel.Debug Then 290If Options.OptimizationLevel <> OptimizationLevel.Debug Then 384ignoreCorLibraryDuplicatedTypes:=Me.Options.IgnoreCorLibraryDuplicatedTypes)