540efbbb5d
Fixes https://github.com/dart-lang/sdk/issues/60725 Change-Id: I63e79075d6538810ddc518e96b5bb7430e55496b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/428564 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
22 lines
753 B
Dart
22 lines
753 B
Dart
// Copyright (c) 2025, the Dart 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.
|
|
|
|
import 'package:analyzer/file_system/file_system.dart';
|
|
import 'package:analyzer/source/source.dart';
|
|
|
|
abstract class WorkspacePackage {
|
|
/// Whether this package can have public APIs, that is, the package has marker
|
|
/// files like 'pubspec.yaml' or 'BUILD'.
|
|
bool get canHavePublicApi;
|
|
|
|
/// The path to the root of this package.
|
|
Folder get root;
|
|
|
|
/// Whether this package contains [source].
|
|
bool contains(Source source);
|
|
|
|
/// Whether [file] is in a "test" directory of this package.
|
|
bool isInTestDirectory(File file);
|
|
}
|