7 instantiations of DefaultValueDictionary
ILLink.RoslynAnalyzer (7)
DataFlow\LocalStateLattice.cs (3)
49
: this(new
DefaultValueDictionary
<LocalKey, TValue>(defaultValue),
50
new
DefaultValueDictionary
<CaptureId, ValueSet<CapturedReferenceValue>>(default(ValueSet<CapturedReferenceValue>)))
61
: this(dictionary, new
DefaultValueDictionary
<CaptureId, ValueSet<CapturedReferenceValue>>(default(ValueSet<CapturedReferenceValue>)))
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (2)
99
return new
DefaultValueDictionary
<TKey, TValue>(defaultValue);
108
return new
DefaultValueDictionary
<TKey, TValue>(defaultValue, dict);
src\tools\illink\src\ILLink.Shared\DataFlow\DictionaryLattice.cs (2)
24
Top = new
DefaultValueDictionary
<TKey, TValue>(valueLattice.Top);
29
var met = new
DefaultValueDictionary
<TKey, TValue>(left);
24 references to DefaultValueDictionary
ILLink.RoslynAnalyzer (24)
DataFlow\InterproceduralState.cs (2)
25
public
DefaultValueDictionary
<LocalKey, Maybe<TValue>> HoistedLocals;
31
DefaultValueDictionary
<LocalKey, Maybe<TValue>> hoistedLocals,
DataFlow\LocalStateLattice.cs (7)
41
public
DefaultValueDictionary
<LocalKey, TValue> Dictionary;
46
public
DefaultValueDictionary
<CaptureId, ValueSet<CapturedReferenceValue>> CapturedReferences;
54
public LocalState(
DefaultValueDictionary
<LocalKey, TValue> dictionary,
DefaultValueDictionary
<CaptureId, ValueSet<CapturedReferenceValue>> capturedReferences)
60
public LocalState(
DefaultValueDictionary
<LocalKey, TValue> dictionary)
99
var
dictionary = Lattice.Meet(left.Dictionary, right.Dictionary);
100
var
capturedProperties = CapturedReferenceLattice.Meet(left.CapturedReferences, right.CapturedReferences);
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (9)
19
public struct DefaultValueDictionary<TKey, TValue> : IEquatable<
DefaultValueDictionary
<TKey, TValue>>,
31
public DefaultValueDictionary(
DefaultValueDictionary
<TKey, TValue> other)
47
public bool Equals(
DefaultValueDictionary
<TKey, TValue> other)
70
public override bool Equals(object? obj) => obj is
DefaultValueDictionary
<TKey, TValue> other && Equals(other);
95
public
DefaultValueDictionary
<TKey, TValue> Clone()
115
public static bool operator ==(
DefaultValueDictionary
<TKey, TValue> left,
DefaultValueDictionary
<TKey, TValue> right) => left.Equals(right);
116
public static bool operator !=(
DefaultValueDictionary
<TKey, TValue> left,
DefaultValueDictionary
<TKey, TValue> right) => !(left == right);
src\tools\illink\src\ILLink.Shared\DataFlow\DictionaryLattice.cs (6)
12
public readonly struct DictionaryLattice<TKey, TValue, TValueLattice> : ILattice<
DefaultValueDictionary
<TKey, TValue>>
19
public
DefaultValueDictionary
<TKey, TValue> Top { get; }
27
public
DefaultValueDictionary
<TKey, TValue> Meet(
DefaultValueDictionary
<TKey, TValue> left,
DefaultValueDictionary
<TKey, TValue> right)
29
var
met = new DefaultValueDictionary<TKey, TValue>(left);