Skip to content

Change language feature wording based on review in #3401 #3405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions lib/src/model/language_feature.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import 'package:dartdoc/src/render/language_feature_renderer.dart';

const Map<String, String> _featureDescriptions = {
'sealed': 'All direct subtypes must be defined in the same library.',
'sealed':
'The direct subtypes of this class will be checked for exhaustiveness in switches.',
'abstract': 'This type can not be directly constructed.',
'base': 'This type can only be extended (not implemented or mixed in).',
'interface': 'This type can only be implemented (not extended or mixed in).',
'final': 'This type can neither be extended, implemented, nor mixed in.',
'mixin': 'This type can be used as a class and a mixin.',
'base':
'This class or mixin can only be extended (not implemented or mixed in).',
'interface': 'This class can only be implemented (not extended or mixed in).',
'final': 'This class can neither be extended, implemented, nor mixed in.',
'mixin': 'This class can be used as a class and a mixin.',
};

const Map<String, String> _featureUrls = {
Expand Down