mirror of
https://github.com/github/codeql.git
synced 2026-02-23 10:23:41 +01:00
21 lines
509 B
Plaintext
21 lines
509 B
Plaintext
import codeql.Locations
|
|
private import TreeSitter
|
|
|
|
module AstNode {
|
|
abstract class Range extends @ast_node {
|
|
Generated::AstNode generated;
|
|
|
|
Range() { this = generated }
|
|
|
|
cached
|
|
string toString() { result = "AstNode" }
|
|
|
|
Location getLocation() { result = generated.getLocation() }
|
|
}
|
|
|
|
// TODO: Remove, and when removed make Range::toString() above abstract
|
|
private class RemoveWhenFullCoverage extends Range {
|
|
RemoveWhenFullCoverage() { this instanceof Generated::AstNode }
|
|
}
|
|
}
|