C++: Add QLDoc comments.

This commit is contained in:
Geoffrey White
2024-01-30 17:54:28 +00:00
parent c29d0b78ce
commit 1b433c7af3

View File

@@ -62,14 +62,26 @@ class PreprocessorBlock extends @element {
endcolumn = 0
}
/**
* Gets a textual representation of this element.
*/
string toString() { result = mkElement(this).toString() }
/**
* Gets the file this `PreprocessorBlock` is located in.
*/
cached
File getFile() { result = mkElement(this).getFile() }
/**
* Gets the start line number of this `PreprocessorBlock`.
*/
cached
int getStartLine() { result = mkElement(this).getLocation().getStartLine() }
/**
* Gets the end line number of this `PreprocessorBlock`.
*/
cached
int getEndLine() {
result = mkElement(this).(File).getMetrics().getNumberOfLines() or