blob: da0f433ede030a4a9c98fa271bb7d3ee977a4d1c [file] [log] [blame]
// Copyright (c) 2016, 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 fasta.kernel_invalid_type_builder;
import 'package:kernel/ast.dart' show DartType, DynamicType;
import '../messages.dart' show warning;
import 'kernel_builder.dart' show InvalidTypeBuilder, KernelTypeBuilder;
class KernelInvalidTypeBuilder
extends InvalidTypeBuilder<KernelTypeBuilder, DartType> {
KernelInvalidTypeBuilder(String name, int charOffset, Uri fileUri)
: super(name, null, charOffset, fileUri);
DartType buildType(List<KernelTypeBuilder> arguments) {
// TODO(ahe): Implement error handling.
warning(fileUri, charOffset, "No type for: '$name'.");
return const DynamicType();
}
/// [Arguments] have already been built.
DartType buildTypesWithBuiltArguments(List<DartType> arguments) {
// TODO(ahe): Implement error handling.
warning(fileUri, charOffset, "No type for: '$name'.");
return const DynamicType();
}
}