blob: ea7dc30896a7d5d88b4ac2c88115fec558a64f27 [file] [log] [blame]
// 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.
import 'package:analyzer/dart/element/element.dart';
import 'package:dartdoc/src/model/model.dart';
class Dynamic extends ModelElement {
Dynamic(Element element, PackageGraph packageGraph)
: super(element, null, packageGraph, null);
/// [dynamic] is not a real object, and so we can't document it, so there
/// can be nothing canonical for it.
@override
ModelElement get canonicalModelElement => null;
@override
ModelElement get enclosingElement => throw UnsupportedError('');
/// And similiarly, even if someone references it directly it can have
/// no hyperlink.
@override
String get href => null;
@override
String get kind => 'dynamic';
@override
String get linkedName => 'dynamic';
@override
String get filePath => null;
}