mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
make variable arity parameters an array type
This commit is contained in:
@@ -251,6 +251,10 @@ class SourceParameter extends Parameter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get type() {
|
get type() {
|
||||||
|
if (this.varargs) {
|
||||||
|
// variable arity parameters are automatically an array type
|
||||||
|
return new ArrayType(this._paramType.resolved, 1);
|
||||||
|
}
|
||||||
return this._paramType.resolved;
|
return this._paramType.resolved;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user