blob: 260b17646d5fb0a44275e42f8d38f748cc0b73d1 [file] [log] [blame]
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.naming;
import com.android.tools.r8.graph.DexField;
import com.android.tools.r8.graph.DexMethod;
import com.android.tools.r8.graph.DexReference;
import com.android.tools.r8.graph.DexString;
public interface MemberNamingStrategy {
DexString next(DexMethod method, MemberNamingInternalState internalState);
DexString next(DexField field, MemberNamingInternalState internalState);
boolean breakOnNotAvailable(DexReference source, DexString name);
boolean noObfuscation(DexReference reference);
interface MemberNamingInternalState {
int getDictionaryIndex();
int incrementDictionaryIndex();
int incrementNameIndex(boolean isDirectMethodCall);
}
}