JS: TypeAnnotation.getType() for backwards compatibility

This commit is contained in:
Asger F
2019-04-17 12:40:37 +01:00
parent e9fcb670ff
commit 9086dfdc6f

View File

@@ -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() }
}