| Index: pkg/front_end/lib/src/fasta/source/source_library_builder.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
|
| index 23757503121072d6e69dae3b356501f4fe82b349..d31ba60859ca1760e475c29e1c9e44beca51b328 100644
|
| --- a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
|
| +++ b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
|
| @@ -4,22 +4,11 @@
|
|
|
| library fasta.source_library_builder;
|
|
|
| -import 'package:front_end/src/scanner/token.dart' show Token;
|
| -
|
| import 'package:kernel/ast.dart' show ProcedureKind;
|
|
|
| import '../../base/resolve_relative_uri.dart' show resolveRelativeUri;
|
|
|
| -import '../combinator.dart' show Combinator;
|
| -
|
| -import '../deprecated_problems.dart'
|
| - show deprecated_inputError, deprecated_internalProblem;
|
| -
|
| -import '../export.dart' show Export;
|
| -
|
| -import '../import.dart' show Import;
|
| -
|
| -import 'source_loader.dart' show SourceLoader;
|
| +import '../../scanner/token.dart' show Token;
|
|
|
| import '../builder/builder.dart'
|
| show
|
| @@ -40,6 +29,18 @@ import '../builder/builder.dart'
|
| TypeVariableBuilder,
|
| Unhandled;
|
|
|
| +import '../combinator.dart' show Combinator;
|
| +
|
| +import '../deprecated_problems.dart' show deprecated_inputError;
|
| +
|
| +import '../export.dart' show Export;
|
| +
|
| +import '../import.dart' show Import;
|
| +
|
| +import '../problems.dart' show unhandled;
|
| +
|
| +import 'source_loader.dart' show SourceLoader;
|
| +
|
| abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
|
| extends LibraryBuilder<T, R> {
|
| final SourceLoader loader;
|
| @@ -283,7 +284,8 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
|
| } else if (builder is PrefixBuilder) {
|
| assert(builder.parent == this);
|
| } else {
|
| - return deprecated_internalProblem("Unhandled: ${builder.runtimeType}");
|
| + return unhandled(
|
| + "${builder.runtimeType}", "addBuilder", charOffset, fileUri);
|
| }
|
| } else {
|
| assert(currentDeclaration.parent == libraryDeclaration);
|
|
|