33 references to ToThreeState
Microsoft.CodeAnalysis (2)
MetadataReader\PEAssembly.cs (1)
195_lazyDeclaresTheObjectClass = value.ToThreeState();
ReferenceManager\CommonReferenceManager.State.cs (1)
446_lazyHasCircularReference = containsCircularReferences.ToThreeState();
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Invocation.cs (1)
1410return result.ToThreeState();
Binder\NameofBinder.cs (1)
49_lazyIsNameofOperator = ThreeStateHelpers.ToThreeState(!NextRequired.InvocableNameofInScope());
Compilation\CSharpCompilation.cs (1)
4909_lazyEmitNullablePublicOnly = value.ToThreeState();
Symbols\Attributes\AttributeData.cs (1)
116_lazyIsSecurityAttribute = AttributeClass.IsDerivedFrom(wellKnownType, TypeCompareKind.ConsiderEverything, useSiteInfo: ref discardedUseSiteInfo).ToThreeState();
Symbols\Metadata\PE\PEEventSymbol.cs (2)
376_lazyRequiresUnsafe = (byte)ComputeRequiresUnsafe(hasRequiresUnsafeAttribute).ToThreeState(); 558_lazyRequiresUnsafe = (byte)requiresUnsafe.ToThreeState();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (12)
658uncommon.lazyHasInterpolatedStringHandlerAttribute = ContainingPEModule.Module.HasInterpolatedStringHandlerAttribute(_handle).ToThreeState(); 677uncommon.lazyHasEmbeddedAttribute = ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(_handle).ToThreeState(); 696uncommon.lazyHasCompilerLoweringPreserveAttribute = ContainingPEModule.Module.HasCompilerLoweringPreserveAttribute(_handle).ToThreeState(); 715uncommon.lazyHasUnionAttribute = ContainingPEModule.Module.FindTargetAttribute(_handle, AttributeDescription.UnionAttribute).HasValue.ToThreeState(); 965uncommon.lazyHasRequiredMembers = hasRequiredMembers.ToThreeState(); 971uncommon.lazyIsClosed = isClosed.ToThreeState(); 1195uncommon.lazyHasRequiredMembers = hasRequiredMemberAttribute.ToThreeState(); 1216uncommon.lazyIsClosed = hasIsClosedTypeAttribute.ToThreeState(); 2214&& containingAssembly.MightContainExtensions).ToThreeState(); 2218contains = moduleHasExtension.ToThreeState(); 2904isByRefLike = module.HasIsByRefLikeAttribute(_handle).ToThreeState(); 2953isReadOnly = module.HasIsReadOnlyAttribute(_handle).ToThreeState();
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
243_lazyHasIsUnmanagedConstraint = hasUnmanagedModreqPattern.ToThreeState();
Symbols\Source\SourceAssemblySymbol.cs (1)
2054_lazyContainsExtensions = ContainsExtensions(_modules).ToThreeState();
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1522_lazyHasOptionalAttribute = copyFrom.HasOptionalAttribute.ToThreeState();
Symbols\Source\SourceEventSymbol.cs (1)
775_lazyIsWindowsRuntimeEvent = ComputeIsWindowsRuntimeEvent().ToThreeState();
Symbols\Source\SourceMemberContainerSymbol.cs (3)
2749var value = (int)CheckStructCircularity(diagnostics).ToThreeState(); 6234_lazyContainsExtensions = containsExtensions.ToThreeState(); 6248_lazyAnyMemberHasAttributes = anyMemberHasAttributes.ToThreeState();
Symbols\Source\SourceModuleSymbol.cs (3)
158_lazyContainsExplicitDefinitionOfNoPiaLocalTypes = NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes(GlobalNamespace).ToThreeState(); 633_lazyRequiresRefSafetyRulesAttribute = value.ToThreeState(); 744_lazyUseUpdatedEscapeRules = value.ToThreeState();
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
253_lazyIsNullableAnalysisEnabled = value.ToThreeState();
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
396_lazyShouldEmit = shouldEmit.ToThreeState();
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommonMemberFilter.cs (1)
23if (method.DeclaringType?.FullName.StartsWith("Submission#0").ToThreeState() == ThreeState.True)