public static (ImmutableDictionary <string, TextSpan>, ImmutableDictionary <int, TextSpan>) Analyze( VirtualCharSequence text, RegexCompilationUnit root, RegexOptions options) { var analyzer = new CaptureInfoAnalyzer(text); return(analyzer.Analyze(root, options)); }
>) Analyze(RegexCompilationUnit root, RegexOptions options) { CollectCaptures(root, options); AssignNumbersToCaptureNames(); _captureNames.Free(); return(_captureNameToSpan.ToImmutable(), _captureNumberToSpan.ToImmutable()); }
private (ImmutableDictionary <string, TextSpan>, ImmutableDictionary <int, TextSpan>) Analyze( RegexCompilationUnit root, RegexOptions options) { CollectCaptures(root, options); AssignNumbersToCaptureNames(); _captureNames.Free(); return(_captureNameToSpan.ToImmutable(), _captureNumberToSpan.ToImmutable()); }
public void Visit(RegexCompilationUnit node) { // Nothing to highlight. }
>) Analyze(VirtualCharSequence text, RegexCompilationUnit root, RegexOptions options) { var analyzer = new CaptureInfoAnalyzer(text); return(analyzer.Analyze(root, options)); }