mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
[cfe] Include import paths in error for unavailable dart: libraries
This special-cases the error for importing/exporting dart: libraries that are not available on the current platform and includes a detail description of how the unavailable library was imported in the context of the error message. Currently there is no special casing of the message depending on the unavailable library and the current platform, as this is meant as a catch-all message. In a follow-up I'll add special casing of the message for some of these cases. In response to https://github.com/dart-lang/sdk/issues/47260 Change-Id: Ia296f9ca1b03bf664e12241a139970ef31c8a2d3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/261821 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
This commit is contained in:
parent
0fbdddfe4e
commit
6a249fdcb0
|
@ -5534,6 +5534,76 @@ const MessageCode messageImportAfterPart = const MessageCode("ImportAfterPart",
|
|||
correctionMessage:
|
||||
r"""Try moving the import directives before the part directives.""");
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Template<
|
||||
Message Function(
|
||||
Uri uri_,
|
||||
String string,
|
||||
String
|
||||
string2)> templateImportChainContext = const Template<
|
||||
Message Function(Uri uri_, String string, String string2)>(
|
||||
problemMessageTemplate:
|
||||
r"""The unavailable library '#uri' is imported through these packages:
|
||||
|
||||
#string
|
||||
Detailed import paths for (some of) the these imports:
|
||||
|
||||
#string2""",
|
||||
withArguments: _withArgumentsImportChainContext);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Message Function(Uri uri_, String string, String string2)>
|
||||
codeImportChainContext =
|
||||
const Code<Message Function(Uri uri_, String string, String string2)>(
|
||||
"ImportChainContext",
|
||||
severity: Severity.context);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
Message _withArgumentsImportChainContext(
|
||||
Uri uri_, String string, String string2) {
|
||||
String? uri = relativizeUri(uri_);
|
||||
if (string.isEmpty) throw 'No string provided';
|
||||
if (string2.isEmpty) throw 'No string provided';
|
||||
return new Message(codeImportChainContext,
|
||||
problemMessage:
|
||||
"""The unavailable library '${uri}' is imported through these packages:
|
||||
|
||||
${string}
|
||||
Detailed import paths for (some of) the these imports:
|
||||
|
||||
${string2}""",
|
||||
arguments: {'uri': uri_, 'string': string, 'string2': string2});
|
||||
}
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Template<Message Function(Uri uri_, String string)>
|
||||
templateImportChainContextSimple =
|
||||
const Template<Message Function(Uri uri_, String string)>(
|
||||
problemMessageTemplate:
|
||||
r"""The unavailable library '#uri' is imported through these paths:
|
||||
|
||||
#string""",
|
||||
withArguments: _withArgumentsImportChainContextSimple);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Message Function(Uri uri_, String string)>
|
||||
codeImportChainContextSimple =
|
||||
const Code<Message Function(Uri uri_, String string)>(
|
||||
"ImportChainContextSimple",
|
||||
severity: Severity.context);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
Message _withArgumentsImportChainContextSimple(Uri uri_, String string) {
|
||||
String? uri = relativizeUri(uri_);
|
||||
if (string.isEmpty) throw 'No string provided';
|
||||
return new Message(codeImportChainContextSimple,
|
||||
problemMessage:
|
||||
"""The unavailable library '${uri}' is imported through these paths:
|
||||
|
||||
${string}""",
|
||||
arguments: {'uri': uri_, 'string': string});
|
||||
}
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Null> codeIncorrectTypeArgumentVariable =
|
||||
messageIncorrectTypeArgumentVariable;
|
||||
|
@ -11517,6 +11587,27 @@ const MessageCode messageTypedefUnaliasedTypeCause = const MessageCode(
|
|||
severity: Severity.context,
|
||||
problemMessage: r"""This is the type denoted by the type alias.""");
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Template<Message Function(Uri uri_)> templateUnavailableDartLibrary =
|
||||
const Template<Message Function(Uri uri_)>(
|
||||
problemMessageTemplate:
|
||||
r"""Dart library '#uri' is not available on this platform.""",
|
||||
withArguments: _withArgumentsUnavailableDartLibrary);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Message Function(Uri uri_)> codeUnavailableDartLibrary =
|
||||
const Code<Message Function(Uri uri_)>("UnavailableDartLibrary",
|
||||
analyzerCodes: <String>["URI_DOES_NOT_EXIST"]);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
Message _withArgumentsUnavailableDartLibrary(Uri uri_) {
|
||||
String? uri = relativizeUri(uri_);
|
||||
return new Message(codeUnavailableDartLibrary,
|
||||
problemMessage:
|
||||
"""Dart library '${uri}' is not available on this platform.""",
|
||||
arguments: {'uri': uri_});
|
||||
}
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
const Code<Null> codeUnexpectedDollarInString = messageUnexpectedDollarInString;
|
||||
|
||||
|
|
|
@ -231,6 +231,10 @@ class CompilerOptions {
|
|||
/// diagnostic, but do not stop the compilation.
|
||||
int skipForDebugging = 0;
|
||||
|
||||
/// If `true`, messages from the OS will be omitted from error messages in
|
||||
/// order to ensure a stable output for testing.
|
||||
bool omitOsMessageForTesting = false;
|
||||
|
||||
/// Whether to write a file (e.g. a dill file) when reporting a crash.
|
||||
bool writeFileOnCrashReport = true;
|
||||
|
||||
|
|
|
@ -266,6 +266,15 @@ class ProcessedOptions {
|
|||
(_raw.onDiagnostic ?? _defaultDiagnosticMessageHandler)(message);
|
||||
}
|
||||
|
||||
/// Returns [error] as a message from the OS.
|
||||
///
|
||||
/// If `CompilerOptions.omitOsMessageForTesting` is `true, the message will
|
||||
/// be a fixed string, otherwise the toString of [error] will be returned.
|
||||
String osErrorMessage(Object? error) {
|
||||
if (_raw.omitOsMessageForTesting) return '<os-message>';
|
||||
return '$error';
|
||||
}
|
||||
|
||||
void _defaultDiagnosticMessageHandler(DiagnosticMessage message) {
|
||||
if (Verbosity.shouldPrint(_raw.verbosity, message)) {
|
||||
printDiagnosticMessage(message, print);
|
||||
|
@ -573,7 +582,8 @@ class ProcessedOptions {
|
|||
}
|
||||
} on FileSystemException catch (e) {
|
||||
reportWithoutLocation(
|
||||
templateCantReadFile.withArguments(uri, e.message), Severity.error);
|
||||
templateCantReadFile.withArguments(uri, osErrorMessage(e.message)),
|
||||
Severity.error);
|
||||
} catch (e) {
|
||||
Message message = templateExceptionReadingFile.withArguments(uri, '$e');
|
||||
reportWithoutLocation(message, Severity.error);
|
||||
|
@ -608,7 +618,8 @@ class ProcessedOptions {
|
|||
Severity.error);
|
||||
} else {
|
||||
reportWithoutLocation(
|
||||
templateCantReadFile.withArguments(requestedUri, "$error"),
|
||||
templateCantReadFile.withArguments(
|
||||
requestedUri, osErrorMessage(error)),
|
||||
Severity.error);
|
||||
}
|
||||
};
|
||||
|
@ -786,7 +797,7 @@ class ProcessedOptions {
|
|||
} on FileSystemException catch (error) {
|
||||
report(
|
||||
templateCantReadFile
|
||||
.withArguments(error.uri, error.message)
|
||||
.withArguments(error.uri, osErrorMessage(error.message))
|
||||
.withoutLocation(),
|
||||
Severity.error);
|
||||
return null;
|
||||
|
|
|
@ -63,6 +63,10 @@ abstract class LibraryBuilder implements ModifierBuilder {
|
|||
@override
|
||||
Uri get fileUri;
|
||||
|
||||
/// Returns the [Uri]s for the libraries that this library depend upon, either
|
||||
/// through import or export.
|
||||
Iterable<Uri> get dependencies;
|
||||
|
||||
/// Returns the import uri for the library.
|
||||
///
|
||||
/// This is the canonical uri for the library, for instance 'dart:core'.
|
||||
|
@ -145,7 +149,8 @@ abstract class LibraryBuilder implements ModifierBuilder {
|
|||
|
||||
Builder? lookup(String name, int charOffset, Uri fileUri);
|
||||
|
||||
void recordAccess(int charOffset, int length, Uri fileUri);
|
||||
void recordAccess(
|
||||
LibraryBuilder accessor, int charOffset, int length, Uri fileUri);
|
||||
|
||||
bool get isNonNullableByDefault;
|
||||
|
||||
|
@ -342,7 +347,8 @@ abstract class LibraryBuilderImpl extends ModifierBuilderImpl
|
|||
}
|
||||
|
||||
@override
|
||||
void recordAccess(int charOffset, int length, Uri fileUri) {}
|
||||
void recordAccess(
|
||||
LibraryBuilder accessor, int charOffset, int length, Uri fileUri) {}
|
||||
|
||||
@override
|
||||
Nullability get nullable {
|
||||
|
|
|
@ -91,6 +91,10 @@ class DillLibraryBuilder extends LibraryBuilderImpl {
|
|||
@override
|
||||
LibraryBuilder get origin => this;
|
||||
|
||||
@override
|
||||
Iterable<Uri> get dependencies => library.dependencies.map(
|
||||
(LibraryDependency dependency) => dependency.targetLibrary.importUri);
|
||||
|
||||
void ensureLoaded() {
|
||||
if (!isReadyToBuild) throw new StateError("Not ready to build.");
|
||||
if (isBuilt && !isBuiltAndMarked) {
|
||||
|
|
|
@ -143,7 +143,8 @@ class DillLoader extends Loader {
|
|||
_unparsedLibraries.addLast(libraryBuilder);
|
||||
}
|
||||
if (accessor != null) {
|
||||
libraryBuilder.recordAccess(charOffset, noLength, accessor.fileUri);
|
||||
libraryBuilder.recordAccess(
|
||||
accessor, charOffset, noLength, accessor.fileUri);
|
||||
if (!accessor.isPatch &&
|
||||
!accessor.isPart &&
|
||||
!target.backendTarget
|
||||
|
|
267
pkg/front_end/lib/src/fasta/import_chains.dart
Normal file
267
pkg/front_end/lib/src/fasta/import_chains.dart
Normal file
|
@ -0,0 +1,267 @@
|
|||
// Copyright (c) 2022, 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.md file.
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/util/link.dart';
|
||||
import 'package:_fe_analyzer_shared/src/util/relativize.dart' as uri_extras;
|
||||
import 'builder/library_builder.dart';
|
||||
|
||||
/// Compute the set of distinct import chains to the library at [uri] within
|
||||
/// [loadedLibraries].
|
||||
///
|
||||
/// The chains are strings of the form
|
||||
///
|
||||
/// <main-uri> => <intermediate-uri1> => <intermediate-uri2> => <uri>
|
||||
///
|
||||
Set<String> computeImportChainsFor(
|
||||
Uri entryPoint, LoadedLibraries loadedLibraries, Uri uri,
|
||||
{required bool verbose}) {
|
||||
// TODO(johnniwinther): Move computation of dependencies to the library
|
||||
// loader.
|
||||
Set<String> importChains = new Set<String>();
|
||||
// The maximum number of full imports chains to process.
|
||||
final int chainLimit = 10000;
|
||||
// The maximum number of imports chains to show.
|
||||
final int compactChainLimit = verbose ? 20 : 10;
|
||||
int chainCount = 0;
|
||||
loadedLibraries.forEachImportChain(uri,
|
||||
callback: (Link<Uri> importChainReversed) {
|
||||
// The import chain is provided in reverse order, from the target to the
|
||||
// entry point. To reverse it, we create a new chain, prepending the uris
|
||||
// of the reversed chain.
|
||||
Link<CodeLocation> compactImportChain = const Link<CodeLocation>();
|
||||
CodeLocation currentCodeLocation =
|
||||
new UriLocation(importChainReversed.head);
|
||||
compactImportChain = compactImportChain.prepend(currentCodeLocation);
|
||||
for (Link<Uri> link = importChainReversed.tail!;
|
||||
!link.isEmpty;
|
||||
link = link.tail!) {
|
||||
Uri uri = link.head;
|
||||
if (!currentCodeLocation.inSameLocation(uri)) {
|
||||
// When [verbose] is `false` we use the [CodeLocation] of the [uri]
|
||||
// rather than the [UriLocation], which means that we group all
|
||||
// libraries with the same package into one location, thereby shortening
|
||||
// the path from, for instance,
|
||||
//
|
||||
// package:foo/foo1.dart => package:foo/foo2.dart =>
|
||||
// package:bar/bar1.dart => package:bar/bar2.dart =>
|
||||
// package:baz/baz1.dart => package:baz/baz2.dart
|
||||
//
|
||||
// to
|
||||
//
|
||||
// package:foo => package:bar => package:baz
|
||||
//
|
||||
currentCodeLocation =
|
||||
verbose ? new UriLocation(uri) : new CodeLocation(uri);
|
||||
compactImportChain = compactImportChain.prepend(currentCodeLocation);
|
||||
}
|
||||
}
|
||||
String importChain = compactImportChain.map((CodeLocation codeLocation) {
|
||||
return codeLocation.relativize(entryPoint);
|
||||
}).join(' => ');
|
||||
|
||||
if (!importChains.contains(importChain)) {
|
||||
if (importChains.length > compactChainLimit) {
|
||||
importChains.add('...');
|
||||
return false;
|
||||
} else {
|
||||
importChains.add(importChain);
|
||||
}
|
||||
}
|
||||
|
||||
chainCount++;
|
||||
if (chainCount > chainLimit) {
|
||||
// Assume there are more import chains.
|
||||
importChains.add('...');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
return importChains;
|
||||
}
|
||||
|
||||
/// Interface for computing import chains on a set of libraries.
|
||||
abstract class LoadedLibraries {
|
||||
/// Applies all imports chains of [uri] with the set of libraries to
|
||||
/// [callback].
|
||||
///
|
||||
/// The argument [importChainReversed] to [callback] contains the chain of
|
||||
/// imports uris that lead to importing [uri] starting in [uri] and ending in
|
||||
/// the entry point uri.
|
||||
///
|
||||
/// [callback] is called once for each chain of imports leading to [uri] until
|
||||
/// [callback] returns `false`.
|
||||
void forEachImportChain(Uri uri,
|
||||
{required bool callback(Link<Uri> importChainReversed)});
|
||||
}
|
||||
|
||||
class LoadedLibrariesImpl implements LoadedLibraries {
|
||||
/// The library of the compilation entry point.
|
||||
final LibraryBuilder rootLibrary;
|
||||
final Map<Uri, LibraryBuilder> libraryBuilders = <Uri, LibraryBuilder>{};
|
||||
|
||||
// TODO(johnniwinther): Support multiple entry-points.
|
||||
LoadedLibrariesImpl(this.rootLibrary, Iterable<LibraryBuilder> libraries) {
|
||||
libraries.forEach((LibraryBuilder libraryBuilder) {
|
||||
libraryBuilders[libraryBuilder.importUri] = libraryBuilder;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
void forEachImportChain(Uri targetUri,
|
||||
{required bool callback(Link<Uri> importChainReversed)}) {
|
||||
bool aborted = false;
|
||||
|
||||
/// Map from libraries to the set of (unreversed) paths to [targetUri].
|
||||
Map<LibraryBuilder, Iterable<Link<Uri>>> suffixChainMap =
|
||||
<LibraryBuilder, Iterable<Link<Uri>>>{};
|
||||
|
||||
/// Computes the set of (unreversed) paths to [targetUri].
|
||||
///
|
||||
/// Finds all paths (suffixes) from the current [library] to [targetUri] and
|
||||
/// stores it in [suffixChainMap].
|
||||
///
|
||||
/// For every found suffix it prepends the given [prefix] and the [library]
|
||||
/// and invokes the [callback] with the concatenated chain.
|
||||
void computeSuffixes(LibraryBuilder library, Link<Uri> prefix) {
|
||||
if (aborted) return;
|
||||
|
||||
Uri canonicalUri = library.importUri;
|
||||
prefix = prefix.prepend(canonicalUri);
|
||||
suffixChainMap[library] = const <Link<Uri>>[];
|
||||
List<Link<Uri>> suffixes = [];
|
||||
if (targetUri != canonicalUri) {
|
||||
/// Process the import (or export) of [importedLibrary].
|
||||
void processLibrary(LibraryBuilder importedLibrary) {
|
||||
bool suffixesArePrecomputed =
|
||||
suffixChainMap.containsKey(importedLibrary);
|
||||
|
||||
if (!suffixesArePrecomputed) {
|
||||
computeSuffixes(importedLibrary, prefix);
|
||||
if (aborted) return;
|
||||
}
|
||||
|
||||
for (Link<Uri> suffix in suffixChainMap[importedLibrary]!) {
|
||||
suffixes.add(suffix.prepend(canonicalUri));
|
||||
|
||||
if (suffixesArePrecomputed) {
|
||||
// Only report chains through [importedLibrary] if the suffixes
|
||||
// had already been computed, otherwise [computeSuffixes] have
|
||||
// reported the paths through [prefix].
|
||||
Link<Uri> chain = prefix.reversePrependAll(suffix);
|
||||
if (!callback(chain)) {
|
||||
aborted = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (Uri dependency in library.dependencies) {
|
||||
LibraryBuilder? libraryBuilder = libraryBuilders[dependency];
|
||||
if (libraryBuilder != null) {
|
||||
// Library builder is only available if the dependency has been
|
||||
// loaded.
|
||||
processLibrary(libraryBuilder);
|
||||
}
|
||||
if (aborted) return;
|
||||
}
|
||||
} else {
|
||||
// Here `targetUri == canonicalUri`.
|
||||
if (!callback(prefix)) {
|
||||
aborted = true;
|
||||
return;
|
||||
}
|
||||
suffixes.add(const Link<Uri>().prepend(canonicalUri));
|
||||
}
|
||||
suffixChainMap[library] = suffixes;
|
||||
return;
|
||||
}
|
||||
|
||||
computeSuffixes(rootLibrary, const Link<Uri>());
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() => 'root=$rootLibrary,libraries=${libraryBuilders.keys}';
|
||||
}
|
||||
|
||||
/// [CodeLocation] divides uris into different classes.
|
||||
///
|
||||
/// These are used to group uris from user code, platform libraries and
|
||||
/// packages.
|
||||
abstract class CodeLocation {
|
||||
/// Returns `true` if [uri] is in this code location.
|
||||
bool inSameLocation(Uri uri);
|
||||
|
||||
/// Returns the uri of this location relative to [baseUri].
|
||||
String relativize(Uri baseUri);
|
||||
|
||||
factory CodeLocation(Uri uri) {
|
||||
if (uri.isScheme('package')) {
|
||||
int slashPos = uri.path.indexOf('/');
|
||||
if (slashPos != -1) {
|
||||
String packageName = uri.path.substring(0, slashPos);
|
||||
return new PackageLocation(packageName);
|
||||
} else {
|
||||
// This is an invalid import uri, like "package:foo.dart".
|
||||
return new UriLocation(uri);
|
||||
}
|
||||
} else {
|
||||
return new SchemeLocation(uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A code location defined by the scheme of the uri.
|
||||
///
|
||||
/// Used for non-package uris, such as 'dart', 'file', and 'http'.
|
||||
class SchemeLocation implements CodeLocation {
|
||||
final Uri uri;
|
||||
|
||||
SchemeLocation(this.uri);
|
||||
|
||||
@override
|
||||
bool inSameLocation(Uri uri) {
|
||||
return this.uri.scheme == uri.scheme;
|
||||
}
|
||||
|
||||
@override
|
||||
String relativize(Uri baseUri) {
|
||||
return uri_extras.relativizeUri(baseUri, uri, false);
|
||||
}
|
||||
}
|
||||
|
||||
/// A code location defined by the package name.
|
||||
///
|
||||
/// Used for package uris, separated by their `package names`, that is, the
|
||||
/// 'foo' of 'package:foo/bar.dart'.
|
||||
class PackageLocation implements CodeLocation {
|
||||
final String packageName;
|
||||
|
||||
PackageLocation(this.packageName);
|
||||
|
||||
@override
|
||||
bool inSameLocation(Uri uri) {
|
||||
return uri.scheme == 'package' && uri.path.startsWith('$packageName/');
|
||||
}
|
||||
|
||||
@override
|
||||
String relativize(Uri baseUri) => 'package:$packageName';
|
||||
}
|
||||
|
||||
/// A code location defined by the whole uri.
|
||||
///
|
||||
/// Used for package uris with no package name. For instance 'package:foo.dart'.
|
||||
class UriLocation implements CodeLocation {
|
||||
final Uri uri;
|
||||
|
||||
UriLocation(this.uri);
|
||||
|
||||
@override
|
||||
bool inSameLocation(Uri uri) => this.uri == uri;
|
||||
|
||||
@override
|
||||
String relativize(Uri baseUri) {
|
||||
return uri_extras.relativizeUri(baseUri, uri, false);
|
||||
}
|
||||
}
|
|
@ -150,7 +150,7 @@ class SourceLibraryBuilder extends LibraryBuilderImpl {
|
|||
@override
|
||||
final bool isUnsupported;
|
||||
|
||||
final List<Object> accessors = <Object>[];
|
||||
final List<LibraryAccess> accessors = [];
|
||||
|
||||
@override
|
||||
String? name;
|
||||
|
@ -716,6 +716,19 @@ class SourceLibraryBuilder extends LibraryBuilderImpl {
|
|||
return suffix;
|
||||
}
|
||||
|
||||
@override
|
||||
Iterable<Uri> get dependencies sync* {
|
||||
for (Export export in exports) {
|
||||
yield export.exported.importUri;
|
||||
}
|
||||
for (Import import in imports) {
|
||||
LibraryBuilder? imported = import.imported;
|
||||
if (imported != null) {
|
||||
yield imported.importUri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void addExport(
|
||||
List<MetadataBuilder>? metadata,
|
||||
String uri,
|
||||
|
@ -1589,15 +1602,15 @@ class SourceLibraryBuilder extends LibraryBuilderImpl {
|
|||
}
|
||||
|
||||
@override
|
||||
void recordAccess(int charOffset, int length, Uri fileUri) {
|
||||
accessors.add(fileUri);
|
||||
accessors.add(charOffset);
|
||||
accessors.add(length);
|
||||
void recordAccess(
|
||||
LibraryBuilder accessor, int charOffset, int length, Uri fileUri) {
|
||||
accessors.add(new LibraryAccess(accessor, fileUri, charOffset, length));
|
||||
if (accessProblem != null) {
|
||||
addProblem(accessProblem!, charOffset, length, fileUri);
|
||||
}
|
||||
}
|
||||
|
||||
/// Reports [message] on all libraries that access this library.
|
||||
void addProblemAtAccessors(Message message) {
|
||||
if (accessProblem == null) {
|
||||
if (accessors.isEmpty && this == loader.first) {
|
||||
|
@ -1605,11 +1618,10 @@ class SourceLibraryBuilder extends LibraryBuilderImpl {
|
|||
// we need to report a problem.
|
||||
loader.addProblem(message, -1, 1, null);
|
||||
}
|
||||
for (int i = 0; i < accessors.length; i += 3) {
|
||||
Uri accessor = accessors[i] as Uri;
|
||||
int charOffset = accessors[i + 1] as int;
|
||||
int length = accessors[i + 2] as int;
|
||||
addProblem(message, charOffset, length, accessor);
|
||||
for (int i = 0; i < accessors.length; i++) {
|
||||
LibraryAccess access = accessors[i];
|
||||
access.accessor.addProblem(
|
||||
message, access.charOffset, access.length, access.fileUri);
|
||||
}
|
||||
accessProblem = message;
|
||||
}
|
||||
|
@ -5443,3 +5455,12 @@ class GenericFunctionTypeCheck {
|
|||
|
||||
GenericFunctionTypeCheck(this.type, this.fileUri, this.charOffset);
|
||||
}
|
||||
|
||||
class LibraryAccess {
|
||||
final LibraryBuilder accessor;
|
||||
final Uri fileUri;
|
||||
final int charOffset;
|
||||
final int length;
|
||||
|
||||
LibraryAccess(this.accessor, this.fileUri, this.charOffset, this.length);
|
||||
}
|
||||
|
|
|
@ -66,6 +66,7 @@ import '../denylisted_classes.dart'
|
|||
import '../dill/dill_library_builder.dart';
|
||||
import '../export.dart' show Export;
|
||||
import '../fasta_codes.dart';
|
||||
import '../import_chains.dart';
|
||||
import '../kernel/body_builder.dart' show BodyBuilder;
|
||||
import '../kernel/hierarchy/class_member.dart';
|
||||
import '../kernel/hierarchy/delayed.dart';
|
||||
|
@ -104,6 +105,7 @@ import 'source_library_builder.dart'
|
|||
ImplicitLanguageVersion,
|
||||
InvalidLanguageVersion,
|
||||
LanguageVersion,
|
||||
LibraryAccess,
|
||||
SourceLibraryBuilder;
|
||||
import 'source_procedure_builder.dart';
|
||||
import 'stack_listener_impl.dart' show offsetForToken;
|
||||
|
@ -580,7 +582,8 @@ class SourceLoader extends Loader {
|
|||
referencesFrom: referencesFrom,
|
||||
referenceIsPartOwner: referenceIsPartOwner,
|
||||
isAugmentation: isAugmentation);
|
||||
libraryBuilder.recordAccess(charOffset, noLength, accessor.fileUri);
|
||||
libraryBuilder.recordAccess(
|
||||
accessor, charOffset, noLength, accessor.fileUri);
|
||||
if (!_hasLibraryAccess(imported: uri, importer: accessor.importUri) &&
|
||||
!accessor.isPatch) {
|
||||
accessor.addProblem(messagePlatformPrivateLibraryAccess, charOffset,
|
||||
|
@ -606,7 +609,8 @@ class SourceLoader extends Loader {
|
|||
// the first library is the accessor of itself.
|
||||
LibraryBuilder? firstLibrary = first;
|
||||
if (firstLibrary != null) {
|
||||
libraryBuilder.recordAccess(-1, noLength, firstLibrary.fileUri);
|
||||
libraryBuilder.recordAccess(
|
||||
firstLibrary, -1, noLength, firstLibrary.fileUri);
|
||||
}
|
||||
if (!_hasLibraryAccess(imported: uri, importer: firstLibrary?.importUri)) {
|
||||
if (firstLibrary != null) {
|
||||
|
@ -831,6 +835,14 @@ severity: $severity
|
|||
Template<SummaryTemplate> get outlineSummaryTemplate =>
|
||||
templateSourceOutlineSummary;
|
||||
|
||||
/// The [SourceLibraryBuilder]s for the `dart:` libraries that are not
|
||||
/// available.
|
||||
///
|
||||
/// We special-case the errors for accessing these libraries and report
|
||||
/// it at the end of [buildOutlines] to ensure that all import paths are
|
||||
/// part of the error message.
|
||||
Set<SourceLibraryBuilder> _unavailableDartLibraries = {};
|
||||
|
||||
Future<Token> tokenize(SourceLibraryBuilder libraryBuilder,
|
||||
{bool suppressLexicalErrors = false}) async {
|
||||
target.benchmarker?.beginSubdivide(BenchmarkSubdivides.tokenize);
|
||||
|
@ -842,10 +854,15 @@ severity: $severity
|
|||
if (bytes == null) {
|
||||
// Error recovery.
|
||||
if (fileUri.isScheme(untranslatableUriScheme)) {
|
||||
Message message =
|
||||
templateUntranslatableUri.withArguments(libraryBuilder.importUri);
|
||||
libraryBuilder.addProblemAtAccessors(message);
|
||||
bytes = synthesizeSourceForMissingFile(libraryBuilder.importUri, null);
|
||||
Uri importUri = libraryBuilder.importUri;
|
||||
if (importUri.isScheme('dart')) {
|
||||
// We report this error later in [buildOutlines].
|
||||
_unavailableDartLibraries.add(libraryBuilder);
|
||||
} else {
|
||||
libraryBuilder.addProblemAtAccessors(
|
||||
templateUntranslatableUri.withArguments(importUri));
|
||||
}
|
||||
bytes = synthesizeSourceForMissingFile(importUri, null);
|
||||
} else if (!fileUri.hasScheme) {
|
||||
target.benchmarker?.endSubdivide();
|
||||
return internalProblem(
|
||||
|
@ -871,8 +888,8 @@ severity: $severity
|
|||
try {
|
||||
rawBytes = await fileSystem.entityForUri(fileUri).readAsBytes();
|
||||
} on FileSystemException catch (e) {
|
||||
Message message =
|
||||
templateCantReadFile.withArguments(fileUri, e.message);
|
||||
Message message = templateCantReadFile.withArguments(
|
||||
fileUri, target.context.options.osErrorMessage(e.message));
|
||||
libraryBuilder.addProblemAtAccessors(message);
|
||||
rawBytes =
|
||||
synthesizeSourceForMissingFile(libraryBuilder.importUri, message);
|
||||
|
@ -1056,6 +1073,75 @@ severity: $severity
|
|||
}
|
||||
_nnbdMismatchLibraries = null;
|
||||
}
|
||||
if (_unavailableDartLibraries.isNotEmpty) {
|
||||
LibraryBuilder? rootLibrary = first;
|
||||
LoadedLibraries? loadedLibraries;
|
||||
for (SourceLibraryBuilder libraryBuilder in _unavailableDartLibraries) {
|
||||
List<LocatedMessage>? context;
|
||||
Uri importUri = libraryBuilder.importUri;
|
||||
Message message =
|
||||
templateUnavailableDartLibrary.withArguments(importUri);
|
||||
if (rootLibrary != null) {
|
||||
loadedLibraries ??=
|
||||
new LoadedLibrariesImpl(rootLibrary, libraryBuilders);
|
||||
Set<String> importChain = computeImportChainsFor(
|
||||
rootLibrary.importUri, loadedLibraries, importUri,
|
||||
verbose: false);
|
||||
Set<String> verboseImportChain = computeImportChainsFor(
|
||||
rootLibrary.importUri, loadedLibraries, importUri,
|
||||
verbose: true);
|
||||
if (importChain.isNotEmpty) {
|
||||
if (importChain.containsAll(verboseImportChain)) {
|
||||
context = [
|
||||
templateImportChainContextSimple
|
||||
.withArguments(libraryBuilder.importUri,
|
||||
importChain.map((part) => ' $part\n').join())
|
||||
.withoutLocation(),
|
||||
];
|
||||
} else {
|
||||
context = [
|
||||
templateImportChainContext
|
||||
.withArguments(
|
||||
libraryBuilder.importUri,
|
||||
importChain.map((part) => ' $part\n').join(),
|
||||
verboseImportChain.map((part) => ' $part\n').join())
|
||||
.withoutLocation(),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
// We only include the [context] on the first library access.
|
||||
if (libraryBuilder.accessors.isEmpty) {
|
||||
// This is the entry point library, and nobody access it directly. So
|
||||
// we need to report a problem.
|
||||
addProblem(message, -1, 1, null, context: context);
|
||||
} else {
|
||||
LibraryAccess access = libraryBuilder.accessors.first;
|
||||
access.accessor.addProblem(
|
||||
message, access.charOffset, access.length, access.fileUri,
|
||||
context: context);
|
||||
}
|
||||
}
|
||||
// All subsequent library accesses are reported here without the context
|
||||
// message.
|
||||
for (SourceLibraryBuilder libraryBuilder in _unavailableDartLibraries) {
|
||||
Uri importUri = libraryBuilder.importUri;
|
||||
Message message =
|
||||
templateUnavailableDartLibrary.withArguments(importUri);
|
||||
|
||||
if (libraryBuilder.accessors.length > 1) {
|
||||
for (int i = 1; i < libraryBuilder.accessors.length; i++) {
|
||||
LibraryAccess access = libraryBuilder.accessors[i];
|
||||
access.accessor.addProblem(
|
||||
message, access.charOffset, access.length, access.fileUri);
|
||||
}
|
||||
}
|
||||
// Mark the library with an access problem so that it will be marked
|
||||
// as synthetic and so that subsequent accesses will be reported.
|
||||
libraryBuilder.accessProblem ??= message;
|
||||
}
|
||||
_unavailableDartLibraries.clear();
|
||||
}
|
||||
}
|
||||
|
||||
FormattedMessage? giveCombinedErrorForNonStrongLibraries(
|
||||
|
|
|
@ -921,6 +921,7 @@ TypedefNotType/example: Fail # Feature not yet enabled by default.
|
|||
TypedefNullableType/analyzerCode: Fail
|
||||
TypedefTypeVariableNotConstructor/analyzerCode: Fail # Feature not yet enabled by default.
|
||||
TypedefTypeVariableNotConstructor/example: Fail # Feature not yet enabled by default.
|
||||
UnavailableDartLibrary/part_wrapped_script: Fail # Uses imports
|
||||
UndefinedExtensionGetter/analyzerCode: Fail
|
||||
UndefinedExtensionGetter/example: Fail
|
||||
UndefinedExtensionMethod/analyzerCode: Fail
|
||||
|
@ -963,7 +964,6 @@ UnterminatedString/script7: Fail
|
|||
UnterminatedString/script8: Fail
|
||||
UnterminatedToken/analyzerCode: Fail
|
||||
UnterminatedToken/example: Fail
|
||||
UntranslatableUri/part_wrapped_script: Fail # Importing file in the (now) part.
|
||||
ValueForRequiredParameterNotProvidedError/analyzerCode: Fail
|
||||
ValueForRequiredParameterNotProvidedError/example: Fail
|
||||
ValueForRequiredParameterNotProvidedWarning/analyzerCode: Fail
|
||||
|
|
|
@ -4436,11 +4436,32 @@ DefaultValueInRedirectingFactoryConstructor:
|
|||
UntranslatableUri:
|
||||
problemMessage: "Not found: '#uri'"
|
||||
analyzerCode: URI_DOES_NOT_EXIST
|
||||
exampleAllowMoreCodes: true # PackageNotFound will precede this message.
|
||||
script: |
|
||||
import "package:expect/non_existing_file";
|
||||
|
||||
UnavailableDartLibrary:
|
||||
problemMessage: "Dart library '#uri' is not available on this platform."
|
||||
analyzerCode: URI_DOES_NOT_EXIST
|
||||
script: |
|
||||
import "dart:non_existing_library";
|
||||
|
||||
main() {
|
||||
}
|
||||
ImportChainContext:
|
||||
problemMessage: |
|
||||
The unavailable library '#uri' is imported through these packages:
|
||||
|
||||
#string
|
||||
Detailed import paths for (some of) the these imports:
|
||||
|
||||
#string2
|
||||
severity: CONTEXT
|
||||
|
||||
ImportChainContextSimple:
|
||||
problemMessage: |
|
||||
The unavailable library '#uri' is imported through these paths:
|
||||
|
||||
#string
|
||||
severity: CONTEXT
|
||||
|
||||
CantReadFile:
|
||||
problemMessage: "Error when reading '#uri': #string"
|
||||
|
@ -4449,9 +4470,6 @@ CantReadFile:
|
|||
script: |
|
||||
import "non_existing_file.dart";
|
||||
|
||||
main() {
|
||||
}
|
||||
|
||||
ExceptionReadingFile:
|
||||
problemMessage: "Exception when reading '#uri': #string"
|
||||
|
||||
|
|
|
@ -1125,6 +1125,7 @@ CompilationSetup createCompilationSetup(
|
|||
..experimentReleasedVersionForTesting = experimentReleasedVersion
|
||||
..skipPlatformVerification = true
|
||||
..omitPlatform = true
|
||||
..omitOsMessageForTesting = true
|
||||
..target = createTarget(folderOptions, context);
|
||||
if (folderOptions.overwriteCurrentSdkVersion != null) {
|
||||
compilerOptions.currentSdkVersion =
|
||||
|
|
|
@ -397,6 +397,7 @@ dispatched
|
|||
distribute
|
||||
diverged
|
||||
divided
|
||||
divides
|
||||
dm
|
||||
doc
|
||||
docs
|
||||
|
@ -493,6 +494,7 @@ ext
|
|||
extenders
|
||||
extracted
|
||||
extracts
|
||||
extras
|
||||
f
|
||||
faced
|
||||
factor
|
||||
|
@ -1025,6 +1027,7 @@ precompilations
|
|||
precompile
|
||||
precompiled
|
||||
precompiling
|
||||
precomputed
|
||||
preexisted
|
||||
preexisting
|
||||
preferably
|
||||
|
@ -1274,6 +1277,7 @@ shas
|
|||
shelf
|
||||
shifts
|
||||
shl
|
||||
shortening
|
||||
showing
|
||||
shr
|
||||
shrinking
|
||||
|
@ -1452,6 +1456,7 @@ tex
|
|||
textualize
|
||||
textualized
|
||||
th
|
||||
thereby
|
||||
therein
|
||||
thereof
|
||||
they'll
|
||||
|
@ -1512,6 +1517,7 @@ un
|
|||
unaffected
|
||||
unaligned
|
||||
unaltered
|
||||
unavailable
|
||||
unbound
|
||||
uncategorized
|
||||
uncomment
|
||||
|
@ -1563,6 +1569,7 @@ unreachable
|
|||
unregister
|
||||
unregistered
|
||||
unregisters
|
||||
unreversed
|
||||
unseen
|
||||
unset
|
||||
unshadowed
|
||||
|
|
|
@ -97,6 +97,7 @@ this.x
|
|||
trusttypes
|
||||
type3.#name
|
||||
u
|
||||
unavailable
|
||||
unsound
|
||||
v
|
||||
x
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"configVersion": 2,
|
||||
"packages": [
|
||||
{
|
||||
"name": "vm_package",
|
||||
"rootUri": "../vm_package/",
|
||||
"packageUri": "lib/"
|
||||
},
|
||||
{
|
||||
"name": "web_package",
|
||||
"rootUri": "../web_package/",
|
||||
"packageUri": "lib/"
|
||||
},
|
||||
{
|
||||
"name": "flutter_package",
|
||||
"rootUri": "../flutter_package/",
|
||||
"packageUri": "lib/"
|
||||
},
|
||||
{
|
||||
"name": "user_package",
|
||||
"rootUri": "../user_package/",
|
||||
"packageUri": "lib/"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports flutter-specific dart: libraries.
|
||||
|
||||
export 'dart:ui';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports flutter-specific dart: libraries.
|
||||
|
||||
import 'dart:ui';
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,118 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,152 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,152 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,152 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,153 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright (c) 2022, 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:flutter_package/export_flutter_lib.dart';
|
||||
import 'package:flutter_package/import_flutter_lib.dart';
|
||||
|
||||
import 'package:vm_package/export_vm_lib.dart';
|
||||
import 'package:vm_package/import_vm_lib.dart';
|
||||
|
||||
import 'package:web_package/export_web_lib.dart';
|
||||
import 'package:web_package/import_web_lib.dart';
|
||||
|
||||
import 'package:user_package/export_flutter_lib1.dart';
|
||||
import 'package:user_package/export_flutter_lib2.dart';
|
||||
import 'package:user_package/import_flutter_lib1.dart';
|
||||
import 'package:user_package/import_flutter_lib2.dart';
|
||||
import 'package:user_package/import_flutter_lib3.dart';
|
||||
|
||||
import 'package:user_package/export_vm_lib1.dart';
|
||||
import 'package:user_package/export_vm_lib2.dart';
|
||||
import 'package:user_package/import_vm_lib1.dart';
|
||||
import 'package:user_package/import_vm_lib2.dart';
|
||||
import 'package:user_package/import_vm_lib3.dart';
|
||||
|
||||
import 'package:user_package/export_web_lib1.dart';
|
||||
import 'package:user_package/export_web_lib2.dart';
|
||||
import 'package:user_package/import_web_lib1.dart';
|
||||
import 'package:user_package/import_web_lib2.dart';
|
||||
import 'package:user_package/import_web_lib3.dart';
|
||||
|
||||
import 'dart:ui';
|
||||
import 'dart:cli';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:html';
|
||||
import 'dart:js';
|
|
@ -0,0 +1,5 @@
|
|||
// Copyright (c) 2022, 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 'main_lib3.dart';
|
|
@ -0,0 +1,10 @@
|
|||
// Copyright (c) 2022, 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 'dart:ui';
|
||||
import 'dart:cli';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:html';
|
||||
import 'dart:js';
|
|
@ -0,0 +1,21 @@
|
|||
package:flutter_package/export_flutter_lib.dart
|
||||
package:flutter_package/import_flutter_lib.dart
|
||||
package:vm_package/export_vm_lib.dart
|
||||
package:vm_package/import_vm_lib.dart
|
||||
package:web_package/export_web_lib.dart
|
||||
package:web_package/import_web_lib.dart
|
||||
package:user_package/export_flutter_lib1.dart
|
||||
package:user_package/export_flutter_lib2.dart
|
||||
package:user_package/import_flutter_lib1.dart
|
||||
package:user_package/import_flutter_lib2.dart
|
||||
package:user_package/import_flutter_lib3.dart
|
||||
package:user_package/export_vm_lib1.dart
|
||||
package:user_package/export_vm_lib2.dart
|
||||
package:user_package/import_vm_lib1.dart
|
||||
package:user_package/import_vm_lib2.dart
|
||||
package:user_package/import_vm_lib3.dart
|
||||
package:user_package/export_web_lib1.dart
|
||||
package:user_package/export_web_lib2.dart
|
||||
package:user_package/import_web_lib1.dart
|
||||
package:user_package/import_web_lib2.dart
|
||||
package:user_package/import_web_lib3.dart
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports vm-specific dart: libraries.
|
||||
|
||||
export 'dart:ui';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports flutter-specific dart: libraries through export.
|
||||
|
||||
export 'package:flutter_package/export_flutter_lib.dart';
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports vm-specific dart: libraries.
|
||||
|
||||
export 'dart:isolate';
|
||||
export 'dart:io';
|
||||
export 'dart:cli';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports vm-specific dart: libraries through export.
|
||||
|
||||
export 'package:vm_package/export_vm_lib.dart';
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports web-specific dart: libraries.
|
||||
|
||||
export 'dart:html';
|
||||
export 'dart:js';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports web-specific dart: libraries through export.
|
||||
|
||||
export 'package:web_package/export_web_lib.dart';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports flutter-specific dart: libraries.
|
||||
|
||||
import 'dart:ui';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports flutter-specific dart: libraries indirectly.
|
||||
|
||||
import 'package:flutter_package/import_flutter_lib.dart';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports flutter-specific dart: libraries indirectly.
|
||||
|
||||
import 'package:flutter_package/export_flutter_lib.dart';
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports vm-specific dart: libraries.
|
||||
|
||||
import 'dart:isolate';
|
||||
import 'dart:io';
|
||||
import 'dart:cli';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports vm-specific dart: libraries indirectly.
|
||||
|
||||
import 'package:vm_package/import_vm_lib.dart';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports vm-specific dart: libraries indirectly.
|
||||
|
||||
import 'package:vm_package/export_vm_lib.dart';
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports web-specific dart: libraries.
|
||||
|
||||
import 'dart:html';
|
||||
import 'dart:js';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports web-specific dart: libraries indirectly.
|
||||
|
||||
import 'package:web_package/import_web_lib.dart';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports web-specific dart: libraries indirectly.
|
||||
|
||||
import 'package:web_package/export_web_lib.dart';
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports vm-specific dart: libraries.
|
||||
|
||||
export 'dart:isolate';
|
||||
export 'dart:io';
|
||||
export 'dart:cli';
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports vm-specific dart: libraries.
|
||||
|
||||
import 'dart:isolate';
|
||||
import 'dart:io';
|
||||
import 'dart:cli';
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports web-specific dart: libraries.
|
||||
|
||||
export 'dart:html';
|
||||
export 'dart:js';
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports web-specific dart: libraries.
|
||||
|
||||
import 'dart:html';
|
||||
import 'dart:js';
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"configVersion": 2,
|
||||
"packages": [
|
||||
{
|
||||
"name": "existing_package",
|
||||
"rootUri": "..",
|
||||
"packageUri": "lib/"
|
||||
}
|
||||
]
|
||||
}
|
12
pkg/front_end/testcases/dart2js/unresolved_imports/main.dart
Normal file
12
pkg/front_end/testcases/dart2js/unresolved_imports/main.dart
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Copyright (c) 2022, 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 'dart:html';
|
||||
import 'dart:js';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:ui';
|
||||
import 'non_existing_file';
|
||||
import 'package:existing_package/non_existing_package_file.dart';
|
||||
import 'package:non_existing_package/file.dart';
|
|
@ -0,0 +1,43 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// Error: Couldn't resolve the package 'non_existing_package' in 'package:non_existing_package/file.dart'.
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:10:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/non_existing_file': <os-message>
|
||||
// import 'non_existing_file';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:11:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/lib/non_existing_package_file.dart': <os-message>
|
||||
// import 'package:existing_package/non_existing_package_file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:12:8: Error: Not found: 'package:non_existing_package/file.dart'
|
||||
// import 'package:non_existing_package/file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these paths:
|
||||
//
|
||||
// main.dart => dart:ui
|
||||
//
|
||||
//
|
||||
import self as self;
|
||||
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:ui";
|
||||
import "org-dartlang-testcase:///non_existing_file";
|
||||
import "package:existing_package/non_existing_package_file.dart";
|
||||
import "package:non_existing_package/file.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self2;
|
|
@ -0,0 +1,38 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:10:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/non_existing_file': <os-message>
|
||||
// import 'non_existing_file';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:11:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/lib/non_existing_package_file.dart': <os-message>
|
||||
// import 'package:existing_package/non_existing_package_file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:12:8: Error: Not found: 'package:non_existing_package/file.dart'
|
||||
// import 'package:non_existing_package/file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these paths:
|
||||
//
|
||||
// main.dart => dart:ui
|
||||
//
|
||||
//
|
||||
import self as self;
|
||||
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:ui";
|
||||
import "org-dartlang-testcase:///non_existing_file";
|
||||
import "package:existing_package/non_existing_package_file.dart";
|
||||
import "package:non_existing_package/file.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self2;
|
|
@ -0,0 +1,8 @@
|
|||
import 'dart:html';
|
||||
import 'dart:js';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:ui';
|
||||
import 'non_existing_file';
|
||||
import 'package:existing_package/non_existing_package_file.dart';
|
||||
import 'package:non_existing_package/file.dart';
|
|
@ -0,0 +1,8 @@
|
|||
import 'dart:html';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:js';
|
||||
import 'dart:ui';
|
||||
import 'non_existing_file';
|
||||
import 'package:existing_package/non_existing_package_file.dart';
|
||||
import 'package:non_existing_package/file.dart';
|
|
@ -0,0 +1,43 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// Error: Couldn't resolve the package 'non_existing_package' in 'package:non_existing_package/file.dart'.
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:10:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/non_existing_file': <os-message>
|
||||
// import 'non_existing_file';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:11:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/lib/non_existing_package_file.dart': <os-message>
|
||||
// import 'package:existing_package/non_existing_package_file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:12:8: Error: Not found: 'package:non_existing_package/file.dart'
|
||||
// import 'package:non_existing_package/file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these paths:
|
||||
//
|
||||
// main.dart => dart:ui
|
||||
//
|
||||
//
|
||||
import self as self;
|
||||
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:ui";
|
||||
import "org-dartlang-testcase:///non_existing_file";
|
||||
import "package:existing_package/non_existing_package_file.dart";
|
||||
import "package:non_existing_package/file.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self2;
|
|
@ -0,0 +1,43 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// Error: Couldn't resolve the package 'non_existing_package' in 'package:non_existing_package/file.dart'.
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:10:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/non_existing_file': <os-message>
|
||||
// import 'non_existing_file';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:11:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/lib/non_existing_package_file.dart': <os-message>
|
||||
// import 'package:existing_package/non_existing_package_file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:12:8: Error: Not found: 'package:non_existing_package/file.dart'
|
||||
// import 'package:non_existing_package/file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these paths:
|
||||
//
|
||||
// main.dart => dart:ui
|
||||
//
|
||||
//
|
||||
import self as self;
|
||||
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:ui";
|
||||
import "org-dartlang-testcase:///non_existing_file";
|
||||
import "package:existing_package/non_existing_package_file.dart";
|
||||
import "package:non_existing_package/file.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self2;
|
|
@ -0,0 +1,43 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// Error: Couldn't resolve the package 'non_existing_package' in 'package:non_existing_package/file.dart'.
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:10:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/non_existing_file': <os-message>
|
||||
// import 'non_existing_file';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:11:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/lib/non_existing_package_file.dart': <os-message>
|
||||
// import 'package:existing_package/non_existing_package_file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:12:8: Error: Not found: 'package:non_existing_package/file.dart'
|
||||
// import 'package:non_existing_package/file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these paths:
|
||||
//
|
||||
// main.dart => dart:ui
|
||||
//
|
||||
//
|
||||
import self as self;
|
||||
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:ui";
|
||||
import "org-dartlang-testcase:///non_existing_file";
|
||||
import "package:existing_package/non_existing_package_file.dart";
|
||||
import "package:non_existing_package/file.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self2;
|
|
@ -0,0 +1,38 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:10:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/non_existing_file': <os-message>
|
||||
// import 'non_existing_file';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:11:8: Error: Error when reading 'pkg/front_end/testcases/dart2js/unresolved_imports/lib/non_existing_package_file.dart': <os-message>
|
||||
// import 'package:existing_package/non_existing_package_file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:12:8: Error: Not found: 'package:non_existing_package/file.dart'
|
||||
// import 'package:non_existing_package/file.dart';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dart2js/unresolved_imports/main.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these paths:
|
||||
//
|
||||
// main.dart => dart:ui
|
||||
//
|
||||
//
|
||||
import self as self;
|
||||
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:ui";
|
||||
import "org-dartlang-testcase:///non_existing_file";
|
||||
import "package:existing_package/non_existing_package_file.dart";
|
||||
import "package:non_existing_package/file.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self2;
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"configVersion": 2,
|
||||
"packages": [
|
||||
{
|
||||
"name": "vm_package",
|
||||
"rootUri": "../vm_package/",
|
||||
"packageUri": "lib/"
|
||||
},
|
||||
{
|
||||
"name": "web_package",
|
||||
"rootUri": "../web_package/",
|
||||
"packageUri": "lib/"
|
||||
},
|
||||
{
|
||||
"name": "flutter_package",
|
||||
"rootUri": "../flutter_package/",
|
||||
"packageUri": "lib/"
|
||||
},
|
||||
{
|
||||
"name": "user_package",
|
||||
"rootUri": "../user_package/",
|
||||
"packageUri": "lib/"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports flutter-specific dart: libraries.
|
||||
|
||||
export 'dart:ui';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports flutter-specific dart: libraries.
|
||||
|
||||
import 'dart:ui';
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,118 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.dart => main_lib.dart => dart:ui
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.dart => main_lib.dart => dart:cli
|
||||
// main.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,152 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,4 @@
|
|||
import 'main_lib.dart';
|
||||
import 'main_lib2.dart';
|
||||
|
||||
main() {}
|
|
@ -0,0 +1,152 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,152 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,153 @@
|
|||
//
|
||||
// Problems outside component:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/export_flutter_lib.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/flutter_package/lib/import_flutter_lib.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_flutter_lib1.dart:7:1: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// export 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_flutter_lib1.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/export_vm_lib.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/vm_package/lib/import_vm_lib.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/export_vm_lib1.dart:9:1: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// export 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/user_package/lib/import_vm_lib1.dart:9:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic
|
||||
;
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,117 @@
|
|||
library /*isNonNullableByDefault*/;
|
||||
import self as self;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib.dart";
|
||||
import "org-dartlang-testcase:///main_lib2.dart";
|
||||
|
||||
static method main() → dynamic {}
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:32:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:ui' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:flutter_package => dart:ui
|
||||
// main_lib.dart => package:user_package => dart:ui
|
||||
// main_lib.dart => package:user_package => package:flutter_package => dart:ui
|
||||
// main_lib.dart => dart:ui
|
||||
// main_lib3.dart => dart:ui
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_flutter_lib2.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib1.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib2.dart => package:flutter_package/import_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_flutter_lib3.dart => package:flutter_package/export_flutter_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib.dart => dart:ui
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:ui
|
||||
//
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib.dart:33:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
// Context: The unavailable library 'dart:cli' is imported through these packages:
|
||||
//
|
||||
// main_lib.dart => package:vm_package => dart:cli
|
||||
// main_lib.dart => package:user_package => dart:cli
|
||||
// main_lib.dart => package:user_package => package:vm_package => dart:cli
|
||||
// main_lib.dart => dart:cli
|
||||
// main_lib3.dart => dart:cli
|
||||
//
|
||||
// Detailed import paths for (some of) the these imports:
|
||||
//
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/export_vm_lib2.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib1.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib2.dart => package:vm_package/import_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => package:user_package/import_vm_lib3.dart => package:vm_package/export_vm_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib.dart => dart:cli
|
||||
// main.no_link.dart => main_lib2.dart => main_lib3.dart => dart:cli
|
||||
//
|
||||
//
|
||||
import self as self2;
|
||||
|
||||
import "package:flutter_package/export_flutter_lib.dart";
|
||||
import "package:flutter_package/import_flutter_lib.dart";
|
||||
import "package:vm_package/export_vm_lib.dart";
|
||||
import "package:vm_package/import_vm_lib.dart";
|
||||
import "package:web_package/export_web_lib.dart";
|
||||
import "package:web_package/import_web_lib.dart";
|
||||
import "package:user_package/export_flutter_lib1.dart";
|
||||
import "package:user_package/export_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib1.dart";
|
||||
import "package:user_package/import_flutter_lib2.dart";
|
||||
import "package:user_package/import_flutter_lib3.dart";
|
||||
import "package:user_package/export_vm_lib1.dart";
|
||||
import "package:user_package/export_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib1.dart";
|
||||
import "package:user_package/import_vm_lib2.dart";
|
||||
import "package:user_package/import_vm_lib3.dart";
|
||||
import "package:user_package/export_web_lib1.dart";
|
||||
import "package:user_package/export_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib1.dart";
|
||||
import "package:user_package/import_web_lib2.dart";
|
||||
import "package:user_package/import_web_lib3.dart";
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
import self as self3;
|
||||
|
||||
import "org-dartlang-testcase:///main_lib3.dart";
|
||||
|
||||
|
||||
library /*isNonNullableByDefault*/;
|
||||
//
|
||||
// Problems in library:
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform.
|
||||
// import 'dart:ui';
|
||||
// ^
|
||||
//
|
||||
// pkg/front_end/testcases/dartdevc/unresolved_dart_library/main_lib3.dart:6:8: Error: Dart library 'dart:cli' is not available on this platform.
|
||||
// import 'dart:cli';
|
||||
// ^
|
||||
//
|
||||
import self as self4;
|
||||
|
||||
import "dart:ui";
|
||||
import "dart:cli";
|
||||
import "dart:io";
|
||||
import "dart:isolate";
|
||||
import "dart:html";
|
||||
import "dart:js";
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright (c) 2022, 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:flutter_package/export_flutter_lib.dart';
|
||||
import 'package:flutter_package/import_flutter_lib.dart';
|
||||
|
||||
import 'package:vm_package/export_vm_lib.dart';
|
||||
import 'package:vm_package/import_vm_lib.dart';
|
||||
|
||||
import 'package:web_package/export_web_lib.dart';
|
||||
import 'package:web_package/import_web_lib.dart';
|
||||
|
||||
import 'package:user_package/export_flutter_lib1.dart';
|
||||
import 'package:user_package/export_flutter_lib2.dart';
|
||||
import 'package:user_package/import_flutter_lib1.dart';
|
||||
import 'package:user_package/import_flutter_lib2.dart';
|
||||
import 'package:user_package/import_flutter_lib3.dart';
|
||||
|
||||
import 'package:user_package/export_vm_lib1.dart';
|
||||
import 'package:user_package/export_vm_lib2.dart';
|
||||
import 'package:user_package/import_vm_lib1.dart';
|
||||
import 'package:user_package/import_vm_lib2.dart';
|
||||
import 'package:user_package/import_vm_lib3.dart';
|
||||
|
||||
import 'package:user_package/export_web_lib1.dart';
|
||||
import 'package:user_package/export_web_lib2.dart';
|
||||
import 'package:user_package/import_web_lib1.dart';
|
||||
import 'package:user_package/import_web_lib2.dart';
|
||||
import 'package:user_package/import_web_lib3.dart';
|
||||
|
||||
import 'dart:ui';
|
||||
import 'dart:cli';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:html';
|
||||
import 'dart:js';
|
|
@ -0,0 +1,5 @@
|
|||
// Copyright (c) 2022, 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 'main_lib3.dart';
|
|
@ -0,0 +1,10 @@
|
|||
// Copyright (c) 2022, 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 'dart:ui';
|
||||
import 'dart:cli';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:html';
|
||||
import 'dart:js';
|
|
@ -0,0 +1,21 @@
|
|||
package:flutter_package/export_flutter_lib.dart
|
||||
package:flutter_package/import_flutter_lib.dart
|
||||
package:vm_package/export_vm_lib.dart
|
||||
package:vm_package/import_vm_lib.dart
|
||||
package:web_package/export_web_lib.dart
|
||||
package:web_package/import_web_lib.dart
|
||||
package:user_package/export_flutter_lib1.dart
|
||||
package:user_package/export_flutter_lib2.dart
|
||||
package:user_package/import_flutter_lib1.dart
|
||||
package:user_package/import_flutter_lib2.dart
|
||||
package:user_package/import_flutter_lib3.dart
|
||||
package:user_package/export_vm_lib1.dart
|
||||
package:user_package/export_vm_lib2.dart
|
||||
package:user_package/import_vm_lib1.dart
|
||||
package:user_package/import_vm_lib2.dart
|
||||
package:user_package/import_vm_lib3.dart
|
||||
package:user_package/export_web_lib1.dart
|
||||
package:user_package/export_web_lib2.dart
|
||||
package:user_package/import_web_lib1.dart
|
||||
package:user_package/import_web_lib2.dart
|
||||
package:user_package/import_web_lib3.dart
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports vm-specific dart: libraries.
|
||||
|
||||
export 'dart:ui';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports flutter-specific dart: libraries through export.
|
||||
|
||||
export 'package:flutter_package/export_flutter_lib.dart';
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports vm-specific dart: libraries.
|
||||
|
||||
export 'dart:isolate';
|
||||
export 'dart:io';
|
||||
export 'dart:cli';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports vm-specific dart: libraries through export.
|
||||
|
||||
export 'package:vm_package/export_vm_lib.dart';
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports web-specific dart: libraries.
|
||||
|
||||
export 'dart:html';
|
||||
export 'dart:js';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that exports web-specific dart: libraries through export.
|
||||
|
||||
export 'package:web_package/export_web_lib.dart';
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright (c) 2022, 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.
|
||||
|
||||
// Library that imports flutter-specific dart: libraries.
|
||||
|
||||
import 'dart:ui';
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue