| // Copyright (c) 2018, 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.experimental.graphinfo; |
| public class GraphEdgeInfo { |
| // TODO(b/120959039): Simplify these. Most of the information is present in the source node. |
| // Prioritized list of edge types. |
| InvokedFromLambdaCreatedIn, |
| private final EdgeKind kind; |
| public GraphEdgeInfo(EdgeKind kind) { |
| public EdgeKind edgeKind() { |
| public String toString() { |
| return "{edge-type:" + kind.toString() + "}"; |
| public boolean equals(Object o) { |
| return this == o || (o instanceof GraphEdgeInfo && ((GraphEdgeInfo) o).kind == kind); |