4 instantiations of Index
Microsoft.CodeAnalysis.CodeStyle (4)
Index.cs (4)
48public static Index Start => new Index(0); 51public static Index End => new Index(~0); 63return new Index(value); 76return new Index(~value);
25 references to Index
Microsoft.CodeAnalysis.CodeStyle (24)
EmbeddedSyntaxNode.cs (1)
54public EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode> this[Index index] => this[index.GetOffset(this.ChildCount)];
Index.cs (9)
17internal readonly struct Index : IEquatable<Index> 48public static Index Start => new Index(0); 51public static Index End => new Index(~0); 56public static Index FromStart(int value) 69public static Index FromEnd(int value) 119public override bool Equals(object? value) => value is Index && _value == ((Index)value)._value; 123public bool Equals(Index other) => _value == other._value; 129public static implicit operator Index(int value) => FromStart(value);
Range.cs (14)
22public Index Start { get; } 25public Index End { get; } 30public Range(Index start, Index end) 58static string getFromEndSpecifier(Index index) => index.IsFromEnd ? "^" : string.Empty; 59static string toString(Index index) => ((uint)index.Value).ToString(); 63public static Range StartAt(Index start) => new Range(start, Index.End); 66public static Range EndAt(Index end) => new Range(Index.Start, end); 69public static Range All => new Range(Index.Start, Index.End); 82Index startIndex = Start; 89Index endIndex = End;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
45var indexType = compilation.GetBestTypeByMetadataName(typeof(Index).FullName!);