53 references to ThreeState
Microsoft.CodeAnalysis (45)
InternalUtilities\ThreeState.cs (8)
21public static ThreeState ToThreeState(this bool value) 23return value ? ThreeState.True : ThreeState.False; 26public static bool HasValue(this ThreeState value) 28return value != ThreeState.Unknown; 31public static bool Value(this ThreeState value) 33Debug.Assert(value != ThreeState.Unknown); 34return value == ThreeState.True;
MetadataReader\PEAssembly.cs (9)
41/// Using <see cref="ThreeState"/> for atomicity. 43private ThreeState _lazyContainsNoPiaLocalTypes; 45private ThreeState _lazyDeclaresTheObjectClass; 115if (_lazyContainsNoPiaLocalTypes == ThreeState.Unknown) 121_lazyContainsNoPiaLocalTypes = ThreeState.True; 126_lazyContainsNoPiaLocalTypes = ThreeState.False; 129return _lazyContainsNoPiaLocalTypes == ThreeState.True; 190if (_lazyDeclaresTheObjectClass == ThreeState.Unknown) 196return _lazyDeclaresTheObjectClass == ThreeState.True;
MetadataReader\PEModule.cs (12)
74/// Using <see cref="ThreeState"/> as a type for atomicity. 76private ThreeState _lazyContainsNoPiaLocalTypes; 159_lazyContainsNoPiaLocalTypes = includeEmbeddedInteropTypes ? ThreeState.False : ThreeState.Unknown; 2586if (_lazyContainsNoPiaLocalTypes == ThreeState.False) 2615_lazyContainsNoPiaLocalTypes = ThreeState.True; 3162Debug.Assert(_lazyContainsNoPiaLocalTypes != ThreeState.True); 3163_lazyContainsNoPiaLocalTypes = ThreeState.False; 3168if (_lazyContainsNoPiaLocalTypes == ThreeState.Unknown) 3178_lazyContainsNoPiaLocalTypes = ThreeState.True; 3191_lazyContainsNoPiaLocalTypes = ThreeState.False; 3194return _lazyContainsNoPiaLocalTypes == ThreeState.True;
ReferenceManager\CommonReferenceManager.State.cs (4)
85private ThreeState _lazyHasCircularReference; 219return _lazyHasCircularReference == ThreeState.True; 352Debug.Assert(_lazyHasCircularReference == ThreeState.Unknown); 373Debug.Assert(_lazyHasCircularReference != ThreeState.Unknown);
Symbols\AnonymousTypes\CommonAnonymousTypeManager.cs (4)
13private ThreeState _templatesSealed = ThreeState.False; 20get { return _templatesSealed == ThreeState.True; } 25_templatesSealed = ThreeState.True;
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (2)
39private ThreeState _assemblyDelaySignAttributeSetting; 40public ThreeState AssemblyDelaySignAttributeSetting
Symbols\INamedTypeSymbolInternal.cs (6)
33public static (ThreeState isManaged, bool hasGenerics) IsManagedTypeHelper(INamedTypeSymbolInternal type) 63return (ThreeState.False, false); 65return (ThreeState.True, false); 76return (ThreeState.False, hasGenerics); 78return (ThreeState.Unknown, hasGenerics); 80return (ThreeState.True, hasGenerics);
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (3)
1723var contains = ThreeState.False; 2289var isByRefLike = ThreeState.False; 2317var isReadOnly = ThreeState.False;
Symbols\Source\SourceAssemblySymbol.cs (2)
324var defaultValue = ThreeState.Unknown; 325var fieldValue = defaultValue;
Symbols\Symbol.cs (2)
1400/// This property returns <see cref="ThreeState.Unknown"/> if the <see cref="ObsoleteAttribute"/> attribute hasn't been cracked yet. 1422/// This property returns <see cref="ThreeState.Unknown"/> if the attribute hasn't been cracked yet.
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
39''' Actually stores <see cref="ThreeState"/>