8 writes to _position
Microsoft.CodeAnalysis.CSharp (8)
Symbols\LexicalSortKey.cs (8)
39
public static readonly LexicalSortKey NotInSource = new LexicalSortKey() { _treeOrdinal = -1,
_position
= 0 };
41
public static readonly LexicalSortKey NotInitialized = new LexicalSortKey() { _treeOrdinal = -1,
_position
= -1 };
44
public static LexicalSortKey GetSynthesizedMemberKey(int offset) => new LexicalSortKey() { _treeOrdinal = int.MaxValue,
_position
= int.MaxValue - 2 - offset };
51
public static readonly LexicalSortKey SynthesizedCtor = new LexicalSortKey() { _treeOrdinal = int.MaxValue,
_position
= int.MaxValue - 1 };
52
public static readonly LexicalSortKey SynthesizedCCtor = new LexicalSortKey() { _treeOrdinal = int.MaxValue,
_position
= int.MaxValue };
59
_position
= position;
131
return Volatile.Read(ref
_position
) >= 0;
139
Volatile.Write(ref
_position
, other._position);
2 references to _position
Microsoft.CodeAnalysis.CSharp (2)
Symbols\LexicalSortKey.cs (2)
36
get { return
_position
; }
139
Volatile.Write(ref _position, other.
_position
);