53 references to ThreeState
Microsoft.CodeAnalysis (45)
InternalUtilities\ThreeState.cs (8)
21
public static
ThreeState
ToThreeState(this bool value)
23
return value ?
ThreeState
.True :
ThreeState
.False;
26
public static bool HasValue(this
ThreeState
value)
28
return value !=
ThreeState
.Unknown;
31
public static bool Value(this
ThreeState
value)
33
Debug.Assert(value !=
ThreeState
.Unknown);
34
return value ==
ThreeState
.True;
MetadataReader\PEAssembly.cs (9)
41
/// Using <see cref="
ThreeState
"/> for atomicity.
43
private
ThreeState
_lazyContainsNoPiaLocalTypes;
45
private
ThreeState
_lazyDeclaresTheObjectClass;
115
if (_lazyContainsNoPiaLocalTypes ==
ThreeState
.Unknown)
121
_lazyContainsNoPiaLocalTypes =
ThreeState
.True;
126
_lazyContainsNoPiaLocalTypes =
ThreeState
.False;
129
return _lazyContainsNoPiaLocalTypes ==
ThreeState
.True;
190
if (_lazyDeclaresTheObjectClass ==
ThreeState
.Unknown)
196
return _lazyDeclaresTheObjectClass ==
ThreeState
.True;
MetadataReader\PEModule.cs (12)
74
/// Using <see cref="
ThreeState
"/> as a type for atomicity.
76
private
ThreeState
_lazyContainsNoPiaLocalTypes;
159
_lazyContainsNoPiaLocalTypes = includeEmbeddedInteropTypes ?
ThreeState
.False :
ThreeState
.Unknown;
2591
if (_lazyContainsNoPiaLocalTypes ==
ThreeState
.False)
2620
_lazyContainsNoPiaLocalTypes =
ThreeState
.True;
3167
Debug.Assert(_lazyContainsNoPiaLocalTypes !=
ThreeState
.True);
3168
_lazyContainsNoPiaLocalTypes =
ThreeState
.False;
3173
if (_lazyContainsNoPiaLocalTypes ==
ThreeState
.Unknown)
3183
_lazyContainsNoPiaLocalTypes =
ThreeState
.True;
3196
_lazyContainsNoPiaLocalTypes =
ThreeState
.False;
3199
return _lazyContainsNoPiaLocalTypes ==
ThreeState
.True;
ReferenceManager\CommonReferenceManager.State.cs (4)
85
private
ThreeState
_lazyHasCircularReference;
219
return _lazyHasCircularReference ==
ThreeState
.True;
352
Debug.Assert(_lazyHasCircularReference ==
ThreeState
.Unknown);
373
Debug.Assert(_lazyHasCircularReference !=
ThreeState
.Unknown);
Symbols\AnonymousTypes\CommonAnonymousTypeManager.cs (4)
13
private
ThreeState
_templatesSealed =
ThreeState
.False;
20
get { return _templatesSealed ==
ThreeState
.True; }
25
_templatesSealed =
ThreeState
.True;
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (2)
39
private
ThreeState
_assemblyDelaySignAttributeSetting;
40
public
ThreeState
AssemblyDelaySignAttributeSetting
Symbols\INamedTypeSymbolInternal.cs (6)
33
public static (
ThreeState
isManaged, bool hasGenerics) IsManagedTypeHelper(INamedTypeSymbolInternal type)
63
return (
ThreeState
.False, false);
65
return (
ThreeState
.True, false);
76
return (
ThreeState
.False, hasGenerics);
78
return (
ThreeState
.Unknown, hasGenerics);
80
return (
ThreeState
.True, hasGenerics);
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (3)
1724
var
contains = ThreeState.False;
2290
var
isByRefLike = ThreeState.False;
2318
var
isReadOnly = ThreeState.False;
Symbols\Source\SourceAssemblySymbol.cs (2)
324
var
defaultValue = ThreeState.Unknown;
325
var
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)
40
''' Actually stores <see cref="
ThreeState
"/>