blob: e048e88b7c4cef56536433dac6eb587c8e7611b9 [file] [log] [blame]
// Copyright (c) 2020, 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/comment_referable.dart';
import 'package:dartdoc/src/model/model.dart';
class NeverType extends ModelElement with HasNoPage {
final Element element;
NeverType(this.element, PackageGraph packageGraph)
: super(Library.sentinel, packageGraph);
/// `Never` 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;
/// The `Never` type has no hyperlink.
String? get href => null;
Kind get kind => Kind.never;
String get linkedName => 'Never';
Map<String, CommentReferable> get referenceChildren => const {};
Iterable<CommentReferable> get referenceParents => const [];