mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
JS: Add getters for DeclarationSpace members
This commit is contained in:
@@ -873,6 +873,18 @@ class DeclarationSpace extends string {
|
||||
DeclarationSpace() { this = "variable" or this = "type" or this = "namespace" }
|
||||
}
|
||||
|
||||
/** Module containing the `DeclarationSpace` constants. */
|
||||
module DeclarationSpace {
|
||||
/** Gets the declaration space for variables/values. */
|
||||
DeclarationSpace variable() { result = "variable" }
|
||||
|
||||
/** Gets the declaration space for types. */
|
||||
DeclarationSpace type() { result = "type" }
|
||||
|
||||
/** Gets the declaration space for namespaces. */
|
||||
DeclarationSpace namespace() { result = "namespace" }
|
||||
}
|
||||
|
||||
/**
|
||||
* A name that is declared in a particular scope.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user