use of org.dartlang.analysis.server.protocol.Location in project intellij-plugins by JetBrains.
the class DartHierarchyUtil method findDartClass.
@Nullable
public static DartClass findDartClass(@NotNull final Project project, @NotNull final TypeHierarchyItem item) {
final Element classElement = item.getClassElement();
final Location location = classElement.getLocation();
final DartComponent component = findDartComponent(project, location);
return component instanceof DartClass ? (DartClass) component : null;
}
Aggregations