blob: 5a74165a1b516a4efa1a48549a4798159b7126d5 [file] [log] [blame]
// Copyright (c) 2017, 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.dynamic_type_builder;
import 'builder.dart' show LibraryBuilder, TypeBuilder, TypeDeclarationBuilder;
class DynamicTypeBuilder<T extends TypeBuilder, R>
extends TypeDeclarationBuilder<T, R> {
final R type;
DynamicTypeBuilder(this.type, LibraryBuilder compilationUnit, int charOffset)
: super(null, 0, "dynamic", compilationUnit, charOffset);
R buildType(List<T> arguments) => type;
R buildTypesWithBuiltArguments(List<R> arguments) => type;
}