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