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