mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
ignore unnamed type declarations
This commit is contained in:
@@ -502,6 +502,9 @@ function sourceType(docs, modifiers, tokens, scope_or_pkgname, typeKind, owner,
|
|||||||
scope = scope_or_pkgname;
|
scope = scope_or_pkgname;
|
||||||
}
|
}
|
||||||
const type = typeDeclaration(package_name, scope, docs, modifiers, typeKind, tokens.current, tokens, imports, typemap);
|
const type = typeDeclaration(package_name, scope, docs, modifiers, typeKind, tokens.current, tokens, imports, typemap);
|
||||||
|
if (!type) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
owner.types.push(type);
|
owner.types.push(type);
|
||||||
if (!(owner instanceof MethodDeclarations)) {
|
if (!(owner instanceof MethodDeclarations)) {
|
||||||
typemap.set(type.shortSignature, type);
|
typemap.set(type.shortSignature, type);
|
||||||
|
|||||||
Reference in New Issue
Block a user