Skip to content

Commit 1863b3d

Browse files
committed
fixup getAPrimaryQlClass
1 parent c2c9780 commit 1863b3d

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

javascript/ql/lib/semmle/javascript/JSON.qll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class JsonValue extends @json_value, Locatable {
5656
/** If this is a boolean constant, gets its boolean value. */
5757
boolean getBooleanValue() { result.toString() = this.(JsonBoolean).getValue() }
5858

59-
override string getAPrimaryQlClass() { result = "JSONValue" }
59+
override string getAPrimaryQlClass() { result = "JsonValue" }
6060
}
6161

6262
/** DEPRECATED: Alias for JsonValue */
@@ -96,7 +96,7 @@ deprecated class JSONPrimitiveValue = JsonPrimitiveValue;
9696
* ```
9797
*/
9898
class JsonNull extends @json_null, JsonPrimitiveValue {
99-
override string getAPrimaryQlClass() { result = "JSONNull" }
99+
override string getAPrimaryQlClass() { result = "JsonNull" }
100100
}
101101

102102
/** DEPRECATED: Alias for JsonNull */
@@ -113,7 +113,7 @@ deprecated class JSONNull = JsonNull;
113113
* ```
114114
*/
115115
class JsonBoolean extends @json_boolean, JsonPrimitiveValue {
116-
override string getAPrimaryQlClass() { result = "JSONBoolean" }
116+
override string getAPrimaryQlClass() { result = "JsonBoolean" }
117117
}
118118

119119
/** DEPRECATED: Alias for JsonBoolean */
@@ -130,7 +130,7 @@ deprecated class JSONBoolean = JsonBoolean;
130130
* ```
131131
*/
132132
class JsonNumber extends @json_number, JsonPrimitiveValue {
133-
override string getAPrimaryQlClass() { result = "JSONNumber" }
133+
override string getAPrimaryQlClass() { result = "JsonNumber" }
134134
}
135135

136136
/** DEPRECATED: Alias for JsonNumber */
@@ -146,7 +146,7 @@ deprecated class JSONNumber = JsonNumber;
146146
* ```
147147
*/
148148
class JsonString extends @json_string, JsonPrimitiveValue {
149-
override string getAPrimaryQlClass() { result = "JSONString" }
149+
override string getAPrimaryQlClass() { result = "JsonString" }
150150
}
151151

152152
/** DEPRECATED: Alias for JsonString */
@@ -162,7 +162,7 @@ deprecated class JSONString = JsonString;
162162
* ```
163163
*/
164164
class JsonArray extends @json_array, JsonValue {
165-
override string getAPrimaryQlClass() { result = "JSONArray" }
165+
override string getAPrimaryQlClass() { result = "JsonArray" }
166166

167167
/** Gets the string value of the `i`th element of this array. */
168168
string getElementStringValue(int i) { result = getElementValue(i).getStringValue() }
@@ -181,7 +181,7 @@ deprecated class JSONArray = JsonArray;
181181
* ```
182182
*/
183183
class JsonObject extends @json_object, JsonValue {
184-
override string getAPrimaryQlClass() { result = "JSONObject" }
184+
override string getAPrimaryQlClass() { result = "JsonObject" }
185185

186186
/** Gets the string value of property `name` of this object. */
187187
string getPropStringValue(string name) { result = getPropValue(name).getStringValue() }

javascript/ql/lib/semmle/javascript/JSX.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class JsxNode extends Expr, @jsx_element {
2727
*/
2828
JsxNode getJsxParent() { this = result.getABodyElement() }
2929

30-
override string getAPrimaryQlClass() { result = "JSXNode" }
30+
override string getAPrimaryQlClass() { result = "JsxNode" }
3131
}
3232

3333
/** DEPRECATED: Alias for JsxNode */
@@ -67,7 +67,7 @@ class JsxElement extends JsxNode {
6767
result = getNameExpr().getFirstControlFlowNode()
6868
}
6969

70-
override string getAPrimaryQlClass() { result = "JSXElement" }
70+
override string getAPrimaryQlClass() { result = "JsxElement" }
7171

7272
/**
7373
* Holds if this JSX element is a HTML element.
@@ -100,7 +100,7 @@ class JsxFragment extends JsxNode {
100100
not exists(getABodyElement()) and result = this
101101
}
102102

103-
override string getAPrimaryQlClass() { result = "JSXFragment" }
103+
override string getAPrimaryQlClass() { result = "JsxFragment" }
104104
}
105105

106106
/** DEPRECATED: Alias for JsxFragment */
@@ -149,7 +149,7 @@ class JsxAttribute extends AstNode, @jsx_attribute {
149149

150150
override string toString() { properties(this, _, _, _, result) }
151151

152-
override string getAPrimaryQlClass() { result = "JSXAttribute" }
152+
override string getAPrimaryQlClass() { result = "JsxAttribute" }
153153
}
154154

155155
/** DEPRECATED: Alias for JsxAttribute */
@@ -196,7 +196,7 @@ class JsxQualifiedName extends Expr, @jsx_qualified_name {
196196
result = getNamespace().getFirstControlFlowNode()
197197
}
198198

199-
override string getAPrimaryQlClass() { result = "JSXQualifiedName" }
199+
override string getAPrimaryQlClass() { result = "JsxQualifiedName" }
200200
}
201201

202202
/** DEPRECATED: Alias for JsxQualifiedName */
@@ -255,7 +255,7 @@ deprecated class JSXName = JsxName;
255255
* </pre>
256256
*/
257257
class JsxEmptyExpr extends Expr, @jsx_empty_expr {
258-
override string getAPrimaryQlClass() { result = "JSXEmptyExpr" }
258+
override string getAPrimaryQlClass() { result = "JsxEmptyExpr" }
259259
}
260260

261261
/** DEPRECATED: Alias for JsxEmptyExpr */

javascript/ql/lib/semmle/javascript/YAML.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class YamlNode extends @yaml_node, Locatable {
8686
*/
8787
YamlValue eval() { result = this }
8888

89-
override string getAPrimaryQlClass() { result = "YAMLNode" }
89+
override string getAPrimaryQlClass() { result = "YamlNode" }
9090
}
9191

9292
/** DEPRECATED: Alias for YamlNode */
@@ -153,7 +153,7 @@ class YamlScalar extends YamlValue, @yaml_scalar_node {
153153
*/
154154
string getValue() { yaml_scalars(this, _, result) }
155155

156-
override string getAPrimaryQlClass() { result = "YAMLScalar" }
156+
override string getAPrimaryQlClass() { result = "YamlScalar" }
157157
}
158158

159159
/** DEPRECATED: Alias for YamlScalar */
@@ -344,7 +344,7 @@ deprecated class YAMLInclude = YamlInclude;
344344
* ```
345345
*/
346346
class YamlCollection extends YamlValue, @yaml_collection_node {
347-
override string getAPrimaryQlClass() { result = "YAMLCollection" }
347+
override string getAPrimaryQlClass() { result = "YamlCollection" }
348348
}
349349

350350
/** DEPRECATED: Alias for YamlCollection */
@@ -401,7 +401,7 @@ class YamlMapping extends YamlCollection, @yaml_mapping_node {
401401
*/
402402
YamlValue lookup(string key) { exists(YamlScalar s | s.getValue() = key | this.maps(s, result)) }
403403

404-
override string getAPrimaryQlClass() { result = "YAMLMapping" }
404+
override string getAPrimaryQlClass() { result = "YamlMapping" }
405405
}
406406

407407
/** DEPRECATED: Alias for YamlMapping */
@@ -429,7 +429,7 @@ class YamlSequence extends YamlCollection, @yaml_sequence_node {
429429
*/
430430
YamlValue getElement(int i) { result = this.getElementNode(i).eval() }
431431

432-
override string getAPrimaryQlClass() { result = "YAMLSequence" }
432+
override string getAPrimaryQlClass() { result = "YamlSequence" }
433433
}
434434

435435
/** DEPRECATED: Alias for YamlSequence */
@@ -455,7 +455,7 @@ class YamlAliasNode extends YamlNode, @yaml_alias_node {
455455
*/
456456
string getTarget() { yaml_aliases(this, result) }
457457

458-
override string getAPrimaryQlClass() { result = "YAMLAliasNode" }
458+
override string getAPrimaryQlClass() { result = "YamlAliasNode" }
459459
}
460460

461461
/** DEPRECATED: Alias for YamlAliasNode */

ql/ql/src/codeql_ql/ast/Ast.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ module YAML {
23132313

23142314
YamlComment() { this = TYamlCommemt(yamlcomment) }
23152315

2316-
override string getAPrimaryQlClass() { result = "YAMLComment" }
2316+
override string getAPrimaryQlClass() { result = "YamlComment" }
23172317
}
23182318

23192319
/** DEPRECATED: Alias for YamlComment */
@@ -2343,7 +2343,7 @@ module YAML {
23432343
)
23442344
}
23452345

2346-
override string getAPrimaryQlClass() { result = "YAMLEntry" }
2346+
override string getAPrimaryQlClass() { result = "YamlEntry" }
23472347
}
23482348

23492349
/** DEPRECATED: Alias for YamlEntry */
@@ -2364,7 +2364,7 @@ module YAML {
23642364
)
23652365
}
23662366

2367-
override string getAPrimaryQlClass() { result = "YAMLKey" }
2367+
override string getAPrimaryQlClass() { result = "YamlKey" }
23682368

23692369
/** Gets the value of this YAML value. */
23702370
string getNamePart(int i) {
@@ -2399,7 +2399,7 @@ module YAML {
23992399
*/
24002400
YamlValue getValue() { result = TYamlValue(yamllistitem.getChild()) }
24012401

2402-
override string getAPrimaryQlClass() { result = "YAMLListItem" }
2402+
override string getAPrimaryQlClass() { result = "YamlListItem" }
24032403
}
24042404

24052405
/** DEPRECATED: Alias for YamlListItem */
@@ -2411,7 +2411,7 @@ module YAML {
24112411

24122412
YamlValue() { this = TYamlValue(yamlvalue) }
24132413

2414-
override string getAPrimaryQlClass() { result = "YAMLValue" }
2414+
override string getAPrimaryQlClass() { result = "YamlValue" }
24152415

24162416
/** Gets the value of this YAML value. */
24172417
string getValue() { result = yamlvalue.getValue() }

0 commit comments

Comments
 (0)