Skip to content

Commit 8ced7d6

Browse files
committed
spelling: comment
Signed-off-by: Josh Soref <[email protected]>
1 parent 8689a94 commit 8ced7d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,10 +2507,10 @@ module YAML {
25072507
deprecated class YAMLNode = YamlNode;
25082508

25092509
/** A YAML comment. */
2510-
class YamlComment extends TYamlCommemt, YamlNode {
2510+
class YamlComment extends TYamlComment, YamlNode {
25112511
Yaml::Comment yamlcomment;
25122512

2513-
YamlComment() { this = TYamlCommemt(yamlcomment) }
2513+
YamlComment() { this = TYamlComment(yamlcomment) }
25142514

25152515
override string getAPrimaryQlClass() { result = "YamlComment" }
25162516
}

ql/ql/src/codeql_ql/ast/internal/AstNodes.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ newtype TAstNode =
6060
TPredicateExpr(QL::PredicateExpr pe) or
6161
TAnnotation(QL::Annotation annot) or
6262
TAnnotationArg(QL::AnnotArg arg) or
63-
TYamlCommemt(Yaml::Comment yc) or
63+
TYamlComment(Yaml::Comment yc) or
6464
TYamlEntry(Yaml::Entry ye) or
6565
TYamlKey(Yaml::Key yk) or
6666
TYamlListitem(Yaml::Listitem yli) or
@@ -86,7 +86,7 @@ class TCall = TPredicateCall or TMemberCall or TNoneCall or TAnyCall;
8686

8787
class TTypeRef = TImport or TModuleExpr or TType;
8888

89-
class TYamlNode = TYamlCommemt or TYamlEntry or TYamlKey or TYamlListitem or TYamlValue;
89+
class TYamlNode = TYamlComment or TYamlEntry or TYamlKey or TYamlListitem or TYamlValue;
9090

9191
class TSignatureExpr = TPredicateExpr or TType or TModuleExpr;
9292

@@ -125,7 +125,7 @@ private QL::AstNode toQLExpr(AST::AstNode n) {
125125
}
126126

127127
Yaml::AstNode toGenerateYaml(AST::AstNode n) {
128-
n = TYamlCommemt(result) or
128+
n = TYamlComment(result) or
129129
n = TYamlEntry(result) or
130130
n = TYamlKey(result) or
131131
n = TYamlListitem(result) or

0 commit comments

Comments
 (0)