Kotlin: Extract an ErrorType if we fail to correctly extract a type

This commit is contained in:
Ian Lynagh
2022-06-30 15:34:45 +01:00
parent 780f5abc67
commit 1730ec22d9
4 changed files with 35 additions and 5 deletions

View File

@@ -332,6 +332,14 @@ modifiers(
string nodeName: string ref
);
/**
* An errortype is used when the extractor is unable to extract a type
* correctly for some reason.
*/
error_type(
unique int id: @errortype
);
classes(
unique int id: @class,
string nodeName: string ref,
@@ -1012,13 +1020,13 @@ javadocText(
@classorinterfaceorpackage = @classorinterface | @package;
@classorinterfaceorcallable = @classorinterface | @callable;
@boundedtype = @typevariable | @wildcard;
@reftype = @classorinterface | @array | @boundedtype;
@reftype = @classorinterface | @array | @boundedtype | @errortype;
@classorarray = @class | @array;
@type = @primitive | @reftype;
@callable = @method | @constructor;
/** A program element that has a name. */
@element = @package | @modifier | @annotation |
@element = @package | @modifier | @annotation | @errortype |
@locatableElement;
@locatableElement = @file | @primitive | @class | @interface | @method | @constructor | @param | @exception | @field |