mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
JS: TypeAnnotation.getType() for backwards compatibility
This commit is contained in:
@@ -98,4 +98,11 @@ class TypeAnnotation extends @type_annotation, Locatable {
|
||||
* Gets the top-level containing this type annotation.
|
||||
*/
|
||||
TopLevel getTopLevel() { none() }
|
||||
|
||||
/**
|
||||
* Gets the static type denoted by this type annotation, if one is provided by the extractor.
|
||||
*
|
||||
* Note that this has no result for JSDoc type annotations.
|
||||
*/
|
||||
Type getType() { none() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user