blob: 7a1f072659506188904e8323f488b57934d2af80 [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/element_type.dart';
import 'package:dartdoc/src/model/comment_referable.dart';
import 'package:dartdoc/src/model/model.dart';
class Dynamic extends ModelElement with HasNoPage {
final Element element;
Dynamic(this.element, PackageGraph packageGraph)
: super(Library.sentinel, packageGraph);
UndefinedElementType get modelType =>
throw UnimplementedError('(${element.runtimeType}) $element');
/// `dynamic` is not a real object, and so we can't document it, so there
/// can be nothing canonical for it.
ModelElement? get canonicalModelElement => null;
ModelElement? get enclosingElement => null;
/// `dynamic` has no hyperlink.
String? get href => null;
Kind get kind => Kind.dynamic;
String get linkedName => 'dynamic';
Map<String, CommentReferable> get referenceChildren => const {};
Iterable<CommentReferable> get referenceParents => const [];
bool operator ==(Object other) => other is Dynamic;
int get hashCode => 31415;