mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Tree-sitter: Emit empty_location relation to avoid scan
This commit is contained in:
@@ -64,5 +64,5 @@ class Location extends @location_default {
|
||||
|
||||
/** An entity representing an empty location. */
|
||||
class EmptyLocation extends Location {
|
||||
EmptyLocation() { this.hasLocationInfo("", 0, 0, 0, 0) }
|
||||
EmptyLocation() { empty_location(this) }
|
||||
}
|
||||
|
||||
@@ -36,6 +36,12 @@ containerparent(
|
||||
unique int child: @container ref
|
||||
);
|
||||
|
||||
/*- Empty location -*/
|
||||
|
||||
empty_location(
|
||||
int location: @location_default ref
|
||||
);
|
||||
|
||||
/*- Source location prefix -*/
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user