blob: 069b3c3dc36d695901dcf5560f8fcbbac09aba3f [file] [log] [blame]
// Copyright (c) 2024, 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.shaking.rules;
import com.android.tools.r8.graph.DexReference;
import com.android.tools.r8.shaking.MinimumKeepInfoCollection;
import java.util.List;
public class MaterializedConditionalRule {
private final List<DexReference> preconditions;
private final MinimumKeepInfoCollection consequences;
MaterializedConditionalRule(
List<DexReference> preconditions, MinimumKeepInfoCollection consequences) {
assert !preconditions.isEmpty();
this.preconditions = preconditions;
this.consequences = consequences;
}
PendingConditionalRule asPendingRule() {
return new PendingConditionalRule(preconditions, consequences);
}
}