mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
renamed "isNamedCapture" to "is_named_capture"
This commit is contained in:
@@ -245,3 +245,8 @@ deprecated predicate rangeQuantifierUpperBound(RegExpRange id, int hi) { range_q
|
||||
* Use `RegExpGroup#isCapture()` instead.
|
||||
*/
|
||||
deprecated predicate isCapture(RegExpGroup id, int number) { is_capture(id, number) }
|
||||
/**
|
||||
* Alias for the predicate `is_named_capture` defined in the .dbscheme.
|
||||
* Use `RegExpGroup#isNamed()` instead.
|
||||
*/
|
||||
deprecated predicate isNamedCapture(RegExpGroup id, string name) { is_named_capture(id, name) }
|
||||
|
||||
@@ -579,10 +579,10 @@ class RegExpGroup extends RegExpTerm, @regexp_group {
|
||||
int getNumber() { is_capture(this, result) }
|
||||
|
||||
/** Holds if this is a named capture group. */
|
||||
predicate isNamed() { isNamedCapture(this, _) }
|
||||
predicate isNamed() { is_named_capture(this, _) }
|
||||
|
||||
/** Gets the name of this capture group, if any. */
|
||||
string getName() { isNamedCapture(this, result) }
|
||||
string getName() { is_named_capture(this, result) }
|
||||
|
||||
override predicate isNullable() { getAChild().isNullable() }
|
||||
|
||||
|
||||
@@ -881,7 +881,7 @@ is_greedy (int id: @regexp_quantifier ref);
|
||||
range_quantifier_lower_bound (unique int id: @regexp_range ref, int lo: int ref);
|
||||
range_quantifier_upper_bound (unique int id: @regexp_range ref, int hi: int ref);
|
||||
is_capture (unique int id: @regexp_group ref, int number: int ref);
|
||||
isNamedCapture (unique int id: @regexp_group ref, string name: string ref);
|
||||
is_named_capture (unique int id: @regexp_group ref, string name: string ref);
|
||||
isInverted (int id: @regexp_char_class ref);
|
||||
regexpConstValue (unique int id: @regexp_constant ref, varchar(1) value: string ref);
|
||||
charClassEscape (unique int id: @regexp_char_class_escape ref, varchar(1) value: string ref);
|
||||
|
||||
@@ -20338,7 +20338,7 @@
|
||||
</dependencies>
|
||||
</relation>
|
||||
<relation>
|
||||
<name>isNamedCapture</name>
|
||||
<name>is_named_capture</name>
|
||||
<cardinality>1280</cardinality>
|
||||
<columnsizes>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user