1 write to _captureNumberToSpan
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\RegularExpressions\RegexParser.CaptureInfoAnalyzer.cs (1)
41
_captureNumberToSpan
= ImmutableDictionary.CreateBuilder<int, TextSpan>();
6 references to _captureNumberToSpan
Microsoft.CodeAnalysis.Features (6)
EmbeddedLanguages\RegularExpressions\RegexParser.CaptureInfoAnalyzer.cs (6)
47
_captureNumberToSpan
.Add(0, text.IsEmpty ? default : GetSpan(text));
64
return (_captureNameToSpan.ToImmutable(),
_captureNumberToSpan
.ToImmutable());
178
AddIfMissing(
_captureNumberToSpan
, list: null, _autoNumber++, GetGroupingSpan(node));
187
AddIfMissing(
_captureNumberToSpan
, list: null, (int)token.Value, span);
217
while (
_captureNumberToSpan
.ContainsKey(_autoNumber))
222
_captureNumberToSpan
.Add(_autoNumber, _captureNameToSpan[name]);