public MatchContext AddUstIfSuccess(Ust ust) { if (Success && !IgnoreLocations && !ust.TextSpan.IsZero) { Locations.AddRange(ust.GetRealTextSpans()); } return(this); }
public MatchContext AddMatch(Ust ust) { Success = true; if (!IgnoreLocations && !ust.TextSpan.IsZero) { Locations.AddRange(ust.GetRealTextSpans()); } return(this); }