mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Renamed character class operators lists to elements.
This commit is contained in:
@@ -4,11 +4,11 @@ import com.semmle.js.ast.SourceLocation;
|
||||
import java.util.List;
|
||||
|
||||
public class CharacterClassIntersection extends RegExpTerm {
|
||||
private final List<RegExpTerm> intersections;
|
||||
private final List<RegExpTerm> elements;
|
||||
|
||||
public CharacterClassIntersection(SourceLocation loc, List<RegExpTerm> intersections) {
|
||||
public CharacterClassIntersection(SourceLocation loc, List<RegExpTerm> elements) {
|
||||
super(loc, "CharacterClassIntersection");
|
||||
this.intersections = intersections;
|
||||
this.elements = elements;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -16,7 +16,7 @@ public class CharacterClassIntersection extends RegExpTerm {
|
||||
v.visit(this);
|
||||
}
|
||||
|
||||
public List<RegExpTerm> getIntersections() {
|
||||
return intersections;
|
||||
public List<RegExpTerm> getElements() {
|
||||
return elements;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@ import com.semmle.js.ast.SourceLocation;
|
||||
import java.util.List;
|
||||
|
||||
public class CharacterClassSubtraction extends RegExpTerm {
|
||||
private final List<RegExpTerm> subtraction;
|
||||
private final List<RegExpTerm> elements;
|
||||
|
||||
public CharacterClassSubtraction(SourceLocation loc, List<RegExpTerm> subtraction) {
|
||||
public CharacterClassSubtraction(SourceLocation loc, List<RegExpTerm> elements) {
|
||||
super(loc, "CharacterClassSubtraction");
|
||||
this.subtraction = subtraction;
|
||||
this.elements = elements;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -16,7 +16,7 @@ public class CharacterClassSubtraction extends RegExpTerm {
|
||||
v.visit(this);
|
||||
}
|
||||
|
||||
public List<RegExpTerm> getSubtraction() {
|
||||
return subtraction;
|
||||
public List<RegExpTerm> getElements() {
|
||||
return elements;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@ import com.semmle.js.ast.SourceLocation;
|
||||
import java.util.List;
|
||||
|
||||
public class CharacterClassUnion extends RegExpTerm {
|
||||
private final List<RegExpTerm> union;
|
||||
private final List<RegExpTerm> elements;
|
||||
|
||||
public CharacterClassUnion(SourceLocation loc, List<RegExpTerm> union) {
|
||||
public CharacterClassUnion(SourceLocation loc, List<RegExpTerm> elements) {
|
||||
super(loc, "CharacterClassUnion");
|
||||
this.union = union;
|
||||
this.elements = elements;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -16,7 +16,7 @@ public class CharacterClassUnion extends RegExpTerm {
|
||||
v.visit(this);
|
||||
}
|
||||
|
||||
public List<RegExpTerm> getUnion() {
|
||||
return union;
|
||||
public List<RegExpTerm> getElements() {
|
||||
return elements;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ public class RegExpExtractor {
|
||||
public void visit(CharacterClassIntersection nd) {
|
||||
Label lbl = extractTerm(nd, parent, idx);
|
||||
int i = 0;
|
||||
for (RegExpTerm element : nd.getIntersections())
|
||||
for (RegExpTerm element : nd.getElements())
|
||||
visit(element, lbl, i++);
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ public class RegExpExtractor {
|
||||
public void visit(CharacterClassSubtraction nd) {
|
||||
Label lbl = extractTerm(nd, parent, idx);
|
||||
int i = 0;
|
||||
for (RegExpTerm element : nd.getSubtraction())
|
||||
for (RegExpTerm element : nd.getElements())
|
||||
visit(element, lbl, i++);
|
||||
}
|
||||
|
||||
@@ -379,7 +379,7 @@ public class RegExpExtractor {
|
||||
public void visit(CharacterClassUnion nd) {
|
||||
Label lbl = extractTerm(nd, parent, idx);
|
||||
int i = 0;
|
||||
for (RegExpTerm element : nd.getUnion())
|
||||
for (RegExpTerm element : nd.getElements())
|
||||
visit(element, lbl, i++);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user