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)
432
uncommon.lazyHasInterpolatedStringHandlerAttribute = ContainingPEModule.Module.HasInterpolatedStringHandlerAttribute(_handle).
ToThreeState
();
451
uncommon.lazyHasEmbeddedAttribute = ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(_handle).
ToThreeState
();
717
uncommon.lazyHasRequiredMembers = (!requiredHandle.IsNil).
ToThreeState
();
881
uncommon.lazyHasRequiredMembers = hasRequiredMemberAttribute.
ToThreeState
();
1727
&& containingAssembly.MightContainExtensionMethods).
ToThreeState
();
1731
contains = moduleHasExtension.
ToThreeState
();
2254
isByRefLike = module.HasIsByRefLikeAttribute(_handle).
ToThreeState
();
2282
isReadOnly = 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)
2252
var 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)
23
if (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)
945
Me.ContainingPEModule.Module.HasCodeAnalysisEmbeddedAttribute(Me._handle).
ToThreeState
(),
957
Me.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
()
562
HasAttribute(_handle, AttributeDescription.IDispatchConstantAttribute).
ToThreeState
()
575
HasAttribute(_handle, AttributeDescription.IUnknownConstantAttribute).
ToThreeState
()
588
HasAttribute(_handle, AttributeDescription.CallerLineNumberAttribute).
ToThreeState
()
601
HasAttribute(_handle, AttributeDescription.CallerMemberNameAttribute).
ToThreeState
()
614
HasAttribute(_handle, AttributeDescription.CallerFilePathAttribute).
ToThreeState
()
Symbols\Source\ImplementsHelper.vb (1)
137
firstImplementedMemberIsWindowsRuntimeEvent = TryCast(implementedMember, EventSymbol).IsWindowsRuntimeEvent.
ToThreeState
()
Symbols\Source\SourceAssemblySymbol.vb (1)
1716
Me._lazyIsVbRuntime = CheckForRuntime().
ToThreeState
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
4039
Me._lazyAnyMemberHasAttributes = Me._declaration.AnyMemberHasAttributes.
ToThreeState
()
Symbols\Source\SourceModuleSymbol.vb (1)
299
_lazyContainsExplicitDefinitionOfNoPiaLocalTypes = NamespaceContainsExplicitDefinitionOfNoPiaLocalTypes(GlobalNamespace).
ToThreeState
()
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1878
_lazyIsExtensibleInterface = DecodeIsExtensibleInterface().
ToThreeState
()