mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-24 02:19:15 +00:00
different attempt to parse using collapsable text
ranges
This commit is contained in:
@@ -86,14 +86,15 @@ class MTI extends MinifiableInfo {
|
||||
* @param {string[]} modifiers
|
||||
* @param {'class'|'enum'|'interface'|'@interface'} typeKind
|
||||
* @param {string} name
|
||||
* @param {string[]} typeVarNames
|
||||
*/
|
||||
addType(package_name, docs, modifiers, typeKind, name) {
|
||||
addType(package_name, docs, modifiers, typeKind, name, typeVarNames) {
|
||||
const t = {
|
||||
d: docs,
|
||||
p: this.addPackage(package_name),
|
||||
m: getTypeMods(modifiers, typeKind),
|
||||
n: name.replace(/\./g,'$'),
|
||||
v: [],
|
||||
v: typeVarNames.map(name => this.addRefType('', name)),
|
||||
e: /interface/.test(typeKind) ? []
|
||||
: typeKind === 'enum' ? this.addRefType('java.lang', 'Enum')
|
||||
: this.addRefType('java.lang', 'Object'),
|
||||
@@ -353,6 +354,11 @@ class MTITypeBase extends MinifiableInfo {
|
||||
*/
|
||||
get methods() { return [] }
|
||||
|
||||
/**
|
||||
* @type {ReferencedType[]}
|
||||
*/
|
||||
get typevars() { return [] }
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user