Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions actions/ql/lib/codeql/actions/ast/internal/Ast.qll
Original file line number Diff line number Diff line change
Expand Up @@ -1920,3 +1920,5 @@ private YamlMappingLikeNode resolveMatrixAccessPath(
else result = resolveMatrixAccessPath(newRoot, rest)
)
}

class Comment = YamlComment;
6 changes: 6 additions & 0 deletions actions/ql/lib/codeql/actions/ast/internal/Yaml.qll
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ private module YamlSig implements LibYaml::InputSig {
class ParseErrorBase extends LocatableBase, @yaml_error {
string getMessage() { yaml_errors(this, result) }
}

class CommentBase extends LocatableBase, @yaml_comment {
string getText() { yaml_comments(this, result, _) }

override string toString() { yaml_comments(this, _, result) }
}
}

import LibYaml::Make<YamlSig>
Loading
Loading