renamed "isGreedy" to "is_greedy"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:52:05 +02:00
parent 37432232b8
commit 0962af51d2
10 changed files with 31 additions and 24 deletions

View File

@@ -225,3 +225,8 @@ deprecated predicate jsParseErrors(JSParseError id, TopLevel toplevel, string me
* Use the `RegExpParseError` class instead.
*/
deprecated predicate regexpParseErrors(RegExpParseError id, RegExpTerm regexp, string message) { regexp_parse_errors(id, regexp, message) }
/**
* Alias for the predicate `is_greedy` defined in the .dbscheme.
* Use `RegExpQuantifier#isGreedy` instead.
*/
deprecated predicate isGreedy(RegExpQuantifier id) { is_greedy(id) }

View File

@@ -188,7 +188,7 @@ class RegExpTerm extends Locatable, @regexpterm {
*/
class RegExpQuantifier extends RegExpTerm, @regexp_quantifier {
/** Holds if the quantifier of this term is a greedy quantifier. */
predicate isGreedy() { isGreedy(this) }
predicate isGreedy() { is_greedy(this) }
}
/**

View File

@@ -877,7 +877,7 @@ regexp_parse_errors (unique int id: @regexp_parse_error,
@regexp_subpattern = @regexp_lookahead | @regexp_lookbehind;
@regexp_anchor = @regexp_dollar | @regexp_caret;
isGreedy (int id: @regexp_quantifier ref);
is_greedy (int id: @regexp_quantifier ref);
rangeQuantifierLowerBound (unique int id: @regexp_range ref, int lo: int ref);
rangeQuantifierUpperBound (unique int id: @regexp_range ref, int hi: int ref);
isCapture (unique int id: @regexp_group ref, int number: int ref);

View File

@@ -20061,7 +20061,7 @@
</dependencies>
</relation>
<relation>
<name>isGreedy</name>
<name>is_greedy</name>
<cardinality>2629</cardinality>
<columnsizes>
<e>