45 references to ToThreeState
Microsoft.CodeAnalysis (2)
MetadataReader\PEAssembly.cs (1)
179_lazyDeclaresTheObjectClass = value.ToThreeState();
ReferenceManager\CommonReferenceManager.State.cs (1)
446_lazyHasCircularReference = containsCircularReferences.ToThreeState();
Microsoft.CodeAnalysis.CSharp (25)
Binder\NameofBinder.cs (1)
41_lazyIsNameofOperator = ThreeStateHelpers.ToThreeState(!NextRequired.InvocableNameofInScope());
Compilation\CSharpCompilation.cs (1)
4383_lazyEmitNullablePublicOnly = value.ToThreeState();
Symbols\Attributes\AttributeData.cs (1)
143_lazyIsSecurityAttribute = AttributeClass.IsDerivedFrom(wellKnownType, TypeCompareKind.ConsiderEverything, useSiteInfo: ref discardedUseSiteInfo).ToThreeState();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (8)
432uncommon.lazyHasInterpolatedStringHandlerAttribute = ContainingPEModule.Module.HasInterpolatedStringHandlerAttribute(_handle).ToThreeState(); 451uncommon.lazyHasEmbeddedAttribute = ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(_handle).ToThreeState(); 717uncommon.lazyHasRequiredMembers = (!requiredHandle.IsNil).ToThreeState(); 881uncommon.lazyHasRequiredMembers = hasRequiredMemberAttribute.ToThreeState(); 1727&& containingAssembly.MightContainExtensionMethods).ToThreeState(); 1731contains = moduleHasExtension.ToThreeState(); 2254isByRefLike = module.HasIsByRefLikeAttribute(_handle).ToThreeState(); 2282isReadOnly = module.HasIsReadOnlyAttribute(_handle).ToThreeState();
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
984_lazyIsParams = _moduleSymbol.Module.HasParamsAttribute(_handle).ToThreeState(); 1083_lazyIsParams = (!paramArrayAttribute.IsNil).ToThreeState();
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
242_lazyHasIsUnmanagedConstraint = hasUnmanagedModreqPattern.ToThreeState();
Symbols\Source\SourceAssemblySymbol.cs (1)
2036_lazyContainsExtensionMethods = ContainsExtensionMethods(_modules).ToThreeState();
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1449_lazyHasOptionalAttribute = copyFrom.HasOptionalAttribute.ToThreeState();
Symbols\Source\SourceEventSymbol.cs (1)
650_lazyIsWindowsRuntimeEvent = ComputeIsWindowsRuntimeEvent().ToThreeState();
Symbols\Source\SourceMemberContainerSymbol.cs (3)
2252var value = (int)CheckStructCircularity(diagnostics).ToThreeState(); 5097_lazyContainsExtensionMethods = containsExtensionMethods.ToThreeState(); 5111_lazyAnyMemberHasAttributes = anyMemberHasAttributes.ToThreeState();
Symbols\Source\SourceModuleSymbol.cs (3)
157_lazyContainsExplicitDefinitionOfNoPiaLocalTypes = NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes(GlobalNamespace).ToThreeState(); 545_lazyRequiresRefSafetyRulesAttribute = value.ToThreeState(); 650_lazyUseUpdatedEscapeRules = value.ToThreeState();
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
253_lazyIsNullableAnalysisEnabled = value.ToThreeState();
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
392_lazyShouldEmit = shouldEmit.ToThreeState();
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommonMemberFilter.cs (1)
23if (method.DeclaringType?.FullName.StartsWith("Submission#0").ToThreeState() == ThreeState.True)
Microsoft.CodeAnalysis.VisualBasic (17)
Symbols\Attributes\AttributeData.vb (1)
185_lazyIsSecurityAttribute = Me.AttributeClass.IsOrDerivedFromWellKnownClass(WellKnownType.System_Security_Permissions_SecurityAttribute, comp, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded).ToThreeState()
Symbols\Metadata\PE\PENamedTypeSymbol.vb (3)
945Me.ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(Me._handle).ToThreeState(), 957Me.ContainingPEModule.Module.HasVisualBasicEmbeddedAttribute(Me._handle).ToThreeState(), 1472_lazyIsExtensibleInterface = DecodeIsExtensibleInterface().ToThreeState()
Symbols\Metadata\PE\PEParameterSymbol.vb (8)
123_lazyIsParamArray = isParamArray.ToThreeState() 407_lazyIsParamArray = (Not paramArrayAttribute.IsNil).ToThreeState() 448_lazyIsParamArray = Me.PEModule.HasParamsAttribute(_handle).ToThreeState() 562HasAttribute(_handle, AttributeDescription.IDispatchConstantAttribute).ToThreeState() 575HasAttribute(_handle, AttributeDescription.IUnknownConstantAttribute).ToThreeState() 588HasAttribute(_handle, AttributeDescription.CallerLineNumberAttribute).ToThreeState() 601HasAttribute(_handle, AttributeDescription.CallerMemberNameAttribute).ToThreeState() 614HasAttribute(_handle, AttributeDescription.CallerFilePathAttribute).ToThreeState()
Symbols\Source\ImplementsHelper.vb (1)
137firstImplementedMemberIsWindowsRuntimeEvent = TryCast(implementedMember, EventSymbol).IsWindowsRuntimeEvent.ToThreeState()
Symbols\Source\SourceAssemblySymbol.vb (1)
1716Me._lazyIsVbRuntime = CheckForRuntime().ToThreeState
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
4039Me._lazyAnyMemberHasAttributes = Me._declaration.AnyMemberHasAttributes.ToThreeState()
Symbols\Source\SourceModuleSymbol.vb (1)
299_lazyContainsExplicitDefinitionOfNoPiaLocalTypes = NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes(GlobalNamespace).ToThreeState()
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1878_lazyIsExtensibleInterface = DecodeIsExtensibleInterface().ToThreeState()