1 write to _tokens
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (1)
62_tokens = new SegmentedList<SyntaxToken>(sizeOfList);
26 references to _tokens
Microsoft.CodeAnalysis.CodeStyle (26)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (26)
63_tokens.AddRange(_treeData.GetApplicableTokens(spanToFormat)); 83var previousToken = _tokens[0]; 84for (var i = 1; i < _tokens.Count; i++) 86var currentToken = _tokens[i]; 122return new TokenData(this, 0, _tokens[0]); 130return new TokenData(this, this.TokenCount - 1, _tokens[this.TokenCount - 1]); 134public int TokenCount => _tokens.Count; 139return _tokens[index]; 152return new TokenData(this, tokenData.IndexInStream - 1, _tokens[tokenData.IndexInStream - 1]); 158if (_tokens[lastIndex].Equals(previousToken)) 160return new TokenData(this, lastIndex, _tokens[lastIndex]); 170return new TokenData(this, tokenData.IndexInStream + 1, _tokens[tokenData.IndexInStream + 1]); 175if (_tokens[0].Equals(nextToken)) 177return new TokenData(this, 0, _tokens[0]); 363yield return ValueTuple.Create(ValueTuple.Create(_tokens[pairIndex], _tokens[pairIndex + 1]), trivia); 469var info = _factory.Create(_tokens[pairIndex], _tokens[pairIndex + 1]); 503var tokenIndex = _tokens.BinarySearch(token, TokenOrderComparer.Instance); 513return _tokens[tokenIndex] == token ? tokenIndex : -1; 520for (var i = tokenIndex; i < _tokens.Count; i++) 522if (!_tokens[i].FullSpan.IsEmpty) 529if (_tokens[i] == token) 537if (!_tokens[i].FullSpan.IsEmpty) 544if (_tokens[i] == token) 554=> new(_tokens);