mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +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) {
|
||||
return v.modifiers.includes('final');
|
||||
}
|
||||
if (v instanceof AnyValue) {
|
||||
return true;
|
||||
}
|
||||
// Parameters and ArrayElements are never constant
|
||||
return v instanceof LiteralValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user