Skip to content

Commit 4b06bca

Browse files
committed
fixup getAPrimaryQlClass
1 parent ebb1106 commit 4b06bca

File tree

1 file changed

+6
-6
lines changed
  • javascript/ql/lib/semmle/javascript

1 file changed

+6
-6
lines changed

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 */

0 commit comments

Comments
 (0)