rename all occurrences of XML to Xml

This commit is contained in:
erik-krogh
2022-08-16 22:19:14 +02:00
parent 72c204063d
commit ce9f69a639
49 changed files with 407 additions and 287 deletions

View File

@@ -21,14 +21,14 @@ private class KtExpectationComment extends KtComment, ExpectationComment {
override string getContents() { result = this.getText().suffix(2).trim() }
}
private class XmlExpectationComment extends ExpectationComment instanceof XMLComment {
override string getContents() { result = this.(XMLComment).getText().trim() }
private class XmlExpectationComment extends ExpectationComment instanceof XmlComment {
override string getContents() { result = this.(XmlComment).getText().trim() }
override Location getLocation() { result = this.(XMLComment).getLocation() }
override Location getLocation() { result = this.(XmlComment).getLocation() }
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
this.(XMLComment).hasLocationInfo(path, sl, sc, el, ec)
this.(XmlComment).hasLocationInfo(path, sl, sc, el, ec)
}
override string toString() { result = this.(XMLComment).toString() }
override string toString() { result = this.(XmlComment).toString() }
}

View File

@@ -8,7 +8,7 @@ class XmlTest extends InlineExpectationsTest {
override predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasXmlResult" and
exists(XMLAttribute a |
exists(XmlAttribute a |
a.getLocation() = location and
element = a.toString() and
value = ""