mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 09:59:25 +00:00
allow AnyValue to be a constant value
This commit is contained in:
@@ -651,6 +651,9 @@ function isConstantValue(v) {
|
|||||||
if (v instanceof Field) {
|
if (v instanceof Field) {
|
||||||
return v.modifiers.includes('final');
|
return v.modifiers.includes('final');
|
||||||
}
|
}
|
||||||
|
if (v instanceof AnyValue) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// Parameters and ArrayElements are never constant
|
// Parameters and ArrayElements are never constant
|
||||||
return v instanceof LiteralValue;
|
return v instanceof LiteralValue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user