[kernel,front_end] Migrate first wave of pkg/kernel and pkg/front_end
Migrates libraries dependent only on already migrated libraries. Change-Id: I0e85ee8dbc2afce031b92e0009e71c206a55af28 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179502 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
04e8aa58ee
commit
34fb48bb8a
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"copyright": [
|
||||
"Copyright (c) 2020, the Dart project authors. Please see the AUTHORS ",
|
||||
"Copyright (c) 2021, 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."
|
||||
],
|
||||
@@ -11,7 +11,7 @@
|
||||
"constraint, update this by running tools/generate_package_config.dart."
|
||||
],
|
||||
"configVersion": 2,
|
||||
"generated": "2020-12-16T11:30:30.799202",
|
||||
"generated": "2021-01-16T20:34:15.774260",
|
||||
"generator": "tools/generate_package_config.dart",
|
||||
"packages": [
|
||||
{
|
||||
@@ -273,7 +273,7 @@
|
||||
"name": "front_end",
|
||||
"rootUri": "../pkg/front_end",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.6"
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "front_end_testcases",
|
||||
@@ -367,7 +367,7 @@
|
||||
"name": "kernel",
|
||||
"rootUri": "../pkg/kernel",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.6"
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "language_versioning_2.7_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
||||
// Copyright (c) 2021, 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.
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart=2.9
|
||||
|
||||
import 'package:compiler/src/dart2js.dart' as dart2js;
|
||||
|
||||
main(args) => dart2js.main(args);
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library front_end.compiler_options;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library front_end.constant_evaluator;
|
||||
|
||||
export '../fasta/kernel/constant_evaluator.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:kernel/kernel.dart' show Version;
|
||||
|
||||
part 'experimental_flags_generated.dart';
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
||||
// Copyright (c) 2021, 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
// NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
|
||||
//
|
||||
// Instead modify 'tools/experimental_features.yaml' and run
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// The Dart Front End contains logic to build summaries and kernel programs
|
||||
/// from Dart sources. The APIs exposed here are designed for tools in the Dart
|
||||
/// ecosystem that need to load sources and convert them to these formats.
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/string_scanner.dart'
|
||||
show StringScanner;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// Defines the front-end API for converting source code to Dart Kernel objects.
|
||||
library front_end.kernel_generator;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:typed_data' show Uint8List;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/scanner.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:kernel/ast.dart';
|
||||
import '../fasta/kernel/late_lowering.dart';
|
||||
import '../fasta/source/source_extension_builder.dart' show extensionThisName;
|
||||
|
||||
@@ -87,7 +87,7 @@ class MemoryFileSystemEntity implements FileSystemEntity {
|
||||
|
||||
@override
|
||||
Future<List<int>> readAsBytes() async {
|
||||
Uint8List contents = _fileSystem._files[uri];
|
||||
Uint8List? contents = _fileSystem._files[uri];
|
||||
if (contents == null) {
|
||||
throw new FileSystemException(uri, 'File $uri does not exist.');
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library front_end.standard_file_system;
|
||||
|
||||
import 'dart:io' as io;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// Defines the front-end API for converting source code to summaries.
|
||||
library front_end.summary_generator;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// API needed by `utils/front_end/summary_worker.dart`, a tool used to compute
|
||||
/// summaries in build systems like bazel, pub-build, and package-build.
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import '../api_prototype/compiler_options.dart' show CompilerOptions;
|
||||
|
||||
import '../base/processed_options.dart' show ProcessedOptions;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/codes.dart'
|
||||
show messageMissingMain;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'
|
||||
show DiagnosticMessageHandler;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:kernel/kernel.dart' show Component, CanonicalName, Library;
|
||||
|
||||
import 'package:kernel/target/targets.dart' show Target;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// 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.
|
||||
|
||||
bool equalLists<T>(List<T> a, List<T> b) {
|
||||
bool equalLists<T>(List<T>? a, List<T>? b) {
|
||||
if (identical(a, b)) return true;
|
||||
if (a == null || b == null) return false;
|
||||
if (a.length != b.length) return false;
|
||||
@@ -12,7 +12,7 @@ bool equalLists<T>(List<T> a, List<T> b) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool equalSets<K>(Set<K> a, Set<K> b) {
|
||||
bool equalSets<K>(Set<K>? a, Set<K>? b) {
|
||||
if (identical(a, b)) return true;
|
||||
if (a == null || b == null) return false;
|
||||
if (a.length != b.length) return false;
|
||||
@@ -22,7 +22,7 @@ bool equalSets<K>(Set<K> a, Set<K> b) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool equalMaps<K, V>(Map<K, V> a, Map<K, V> b) {
|
||||
bool equalMaps<K, V>(Map<K, V>? a, Map<K, V>? b) {
|
||||
if (identical(a, b)) return true;
|
||||
if (a == null || b == null) return false;
|
||||
if (a.length != b.length) return false;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
export 'package:_fe_analyzer_shared/src/messages/diagnostic_message.dart'
|
||||
show DiagnosticMessage, DiagnosticMessageHandler, getMessageUri;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, Member;
|
||||
import 'package:kernel/src/text_util.dart';
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class LibrariesSpecification {
|
||||
/// The library specification for a given [target], or throws if none is
|
||||
/// available.
|
||||
TargetLibrariesSpecification specificationFor(String target) {
|
||||
TargetLibrariesSpecification targetSpec = _targets[target];
|
||||
TargetLibrariesSpecification? targetSpec = _targets[target];
|
||||
if (targetSpec == null) {
|
||||
throw new LibrariesSpecificationException(
|
||||
'No library specification for target "$target"');
|
||||
@@ -119,15 +119,15 @@ class LibrariesSpecification {
|
||||
///
|
||||
/// May throw an exception if [json] is not properly formatted or contains
|
||||
/// invalid values.
|
||||
static LibrariesSpecification parse(Uri baseUri, String json) {
|
||||
static LibrariesSpecification parse(Uri baseUri, String? json) {
|
||||
if (json == null) return const LibrariesSpecification();
|
||||
Map<String, dynamic> jsonData;
|
||||
try {
|
||||
dynamic data = jsonDecode(json);
|
||||
if (data is! Map) {
|
||||
if (data is! Map<String, dynamic>) {
|
||||
return _reportError('top-level specification is not a map');
|
||||
}
|
||||
jsonData = data as Map;
|
||||
jsonData = data;
|
||||
} on FormatException catch (e) {
|
||||
throw new LibrariesSpecificationException(e);
|
||||
}
|
||||
@@ -145,11 +145,11 @@ class LibrariesSpecification {
|
||||
"for '$targetName' doesn't have a libraries entry");
|
||||
}
|
||||
dynamic librariesData = targetData["libraries"];
|
||||
if (librariesData is! Map) {
|
||||
if (librariesData is! Map<String, dynamic>) {
|
||||
return _reportError("libraries entry for '$targetName' is not a map");
|
||||
}
|
||||
librariesData.forEach((String name, data) {
|
||||
if (data is! Map) {
|
||||
if (data is! Map<String, dynamic>) {
|
||||
return _reportError(
|
||||
"library data for '$name' in target '$targetName' is not a map");
|
||||
}
|
||||
@@ -233,7 +233,7 @@ class TargetLibrariesSpecification {
|
||||
[this._libraries = const <String, LibraryInfo>{}]);
|
||||
|
||||
/// Details about a library whose import is `dart:$name`.
|
||||
LibraryInfo libraryInfoFor(String name) => _libraries[name];
|
||||
LibraryInfo? libraryInfoFor(String name) => _libraries[name];
|
||||
|
||||
Iterable<LibraryInfo> get allLibraries => _libraries.values;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// A bit flag used by [LibraryInfo] indicating that a library is used by
|
||||
/// dart2js.
|
||||
///
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:io' show exitCode;
|
||||
|
||||
import 'dart:typed_data' show Uint8List;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import "dart:io" show File, Platform;
|
||||
|
||||
import 'package:kernel/ast.dart' show Source;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.declaration;
|
||||
|
||||
import '../problems.dart' show unsupported;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.builtin_type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, Nullability;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.class_builder;
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/token.dart' show Token;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.constructor_reference_builder;
|
||||
|
||||
import '../messages.dart' show noLength, templateConstructorNotFound;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:kernel/ast.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.dynamic_type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.enum_builder;
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:kernel/ast.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.field_builder;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/scanner.dart' show Token;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:kernel/ast.dart' hide MapEntry;
|
||||
|
||||
import '../problems.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.formal_parameter_builder;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/parser/formal_parameter_kind.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.procedure_builder;
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.function_type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.future_or_type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, FutureOrType, Nullability;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.invalid_type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, InvalidType, Nullability;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.library_builder;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.member_builder;
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.metadata_builder;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/scanner.dart' show Token;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.mixin_application_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show InterfaceType, Supertype, TypedefType;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.modifier_builder;
|
||||
|
||||
import '../modifier.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.name_iterator;
|
||||
|
||||
import 'builder.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.named_type_builder;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/severity.dart' show Severity;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.never_type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, NullType, Nullability;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.null_type_declaration_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, Nullability;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:kernel/ast.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.prefix_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show LibraryDependency;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:front_end/src/fasta/dill/dill_member_builder.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.function_type_alias_builder;
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, Supertype, TypedefType;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.type_declaration_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, Nullability;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.type_variable_builder;
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.unresolved_type;
|
||||
|
||||
import '../scope.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.kernel_variable_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show VariableDeclaration;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.void_type_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.builder_graph;
|
||||
|
||||
import 'package:kernel/kernel.dart' show LibraryDependency, LibraryPart;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// Provides a default implementation of the report and format methods of
|
||||
/// [CompilerContext] that are suitable for command-line tools. The methods in
|
||||
/// this library aren't intended to be called directly, instead, one should use
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.compiler_context;
|
||||
|
||||
import 'dart:async' show Zone, runZoned;
|
||||
|
||||
@@ -9,6 +9,7 @@ class Configuration {
|
||||
final String dottedName;
|
||||
final String condition;
|
||||
final String importUri;
|
||||
|
||||
Configuration(
|
||||
this.charOffset, this.dottedName, this.condition, this.importUri);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.crash;
|
||||
|
||||
import 'dart:convert' show jsonEncode;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.dill_class_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' hide MapEntry;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:kernel/ast.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:kernel/ast.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.dill_library_builder;
|
||||
|
||||
import 'dart:convert' show jsonDecode;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.dill_loader;
|
||||
|
||||
import 'package:kernel/ast.dart' show Class, Component, DartType, Library;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.dill_member_builder;
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.dill_target;
|
||||
|
||||
import 'package:front_end/src/fasta/builder/library_builder.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.dill_typedef_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' show DartType, InvalidType, NullType, Typedef;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.export;
|
||||
|
||||
import 'builder/builder.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.codes;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/messages/codes.dart'
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
||||
// Copyright (c) 2021, 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
// NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
|
||||
//
|
||||
// Instead modify 'pkg/front_end/messages.yaml' and run
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.get_dependencies;
|
||||
|
||||
import 'package:kernel/kernel.dart' show Component, loadComponentFromBytes;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// A memory + physical file system used to mock input for tests but provide
|
||||
/// sdk sources from disk.
|
||||
library front_end.src.hybrid_file_system;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.qualified_name;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/scanner.dart' show Token;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.ignored_parser_errors;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/parser/parser.dart' show optional;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.import;
|
||||
|
||||
import 'package:kernel/ast.dart' show LibraryDependency;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.incremental_compiler;
|
||||
|
||||
import 'package:front_end/src/api_prototype/experimental_flags.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.incremental_serializer;
|
||||
|
||||
import 'dart:typed_data' show Uint8List;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.body_builder;
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.class_hierarchy_builder;
|
||||
|
||||
import 'package:kernel/ast.dart' hide MapEntry;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
// Copyright (c) 2019, 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.collections;
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'package:kernel/ast.dart' hide MapEntry;
|
||||
|
||||
import 'package:kernel/class_hierarchy.dart' show ClassHierarchyBase;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
part of 'constant_evaluator.dart';
|
||||
|
||||
abstract class _ListOrSetConstantBuilder<L extends Expression> {
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// This library implements a kernel2kernel constant evaluation transformation.
|
||||
///
|
||||
/// Even though it is expected that the frontend does not emit kernel AST which
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:kernel/ast.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// A library to help generate expression.
|
||||
library fasta.expression_generator;
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.expression_generator_helper;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/token.dart' show Token;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.fangorn;
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import "package:kernel/ast.dart"
|
||||
show
|
||||
Arguments,
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.implicit_type;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/scanner/token.dart' show Token;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
library fasta.implicit_type_argument;
|
||||
|
||||
import 'package:kernel/ast.dart'
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:_fe_analyzer_shared/src/util/link.dart';
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
// @dart = 2.9
|
||||
|
||||
/// This file declares a "shadow hierarchy" of concrete classes which extend
|
||||
/// the kernel class hierarchy, adding methods and fields needed by the
|
||||
/// BodyBuilder.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user