Skip to content

Commit 0d4c0d0

Browse files
authored
Recategorize selectors as "AST" for Dartdoc (#1752)
This more closely matches the categorization of other AST nodes, which aren't broken down into fine-grained categories. This also adds the "Parsing" category to selector classes that have `parse()` methods.
1 parent 3e7c9dd commit 0d4c0d0

16 files changed

+20
-16
lines changed

lib/src/ast/selector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export 'selector/universal.dart';
3737
///
3838
/// Selectors have structural equality semantics.
3939
///
40-
/// {@category Selector}
40+
/// {@category AST}
4141
abstract class Selector {
4242
/// Whether this selector, and complex selectors containing it, should not be
4343
/// emitted.

lib/src/ast/selector/attribute.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import '../selector.dart';
1212
/// This selects for elements with the given attribute, and optionally with a
1313
/// value matching certain conditions as well.
1414
///
15-
/// {@category Selector}
15+
/// {@category AST}
1616
@sealed
1717
class AttributeSelector extends SimpleSelector {
1818
/// The name of the attribute being selected for.

lib/src/ast/selector/class.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import '../selector.dart';
1212
/// This selects elements whose `class` attribute contains an identifier with
1313
/// the given name.
1414
///
15-
/// {@category Selector}
15+
/// {@category AST}
1616
@sealed
1717
class ClassSelector extends SimpleSelector {
1818
/// The class name this selects for.

lib/src/ast/selector/combinator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:meta/meta.dart';
77
/// A combinator that defines the relationship between selectors in a
88
/// [ComplexSelector].
99
///
10-
/// {@category Selector}
10+
/// {@category AST}
1111
@sealed
1212
class Combinator {
1313
/// Matches the right-hand selector if it's immediately adjacent to the

lib/src/ast/selector/complex.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import '../selector.dart';
1616
/// A complex selector is composed of [CompoundSelector]s separated by
1717
/// [Combinator]s. It selects elements based on their parent selectors.
1818
///
19-
/// {@category Selector}
19+
/// {@category AST}
20+
/// {@category Parsing}
2021
@sealed
2122
class ComplexSelector extends Selector {
2223
/// This selector's leading combinators.

lib/src/ast/selector/complex_component.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import '../selector.dart';
1111
///
1212
/// This a [CompoundSelector] with one or more trailing [Combinator]s.
1313
///
14-
/// {@category Selector}
14+
/// {@category AST}
1515
@sealed
1616
class ComplexSelectorComponent {
1717
/// This component's compound selector.

lib/src/ast/selector/compound.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import '../selector.dart';
1616
/// A compound selector is composed of [SimpleSelector]s. It matches an element
1717
/// that matches all of the component simple selectors.
1818
///
19-
/// {@category Selector}
19+
/// {@category AST}
20+
/// {@category Parsing}
2021
@sealed
2122
class CompoundSelector extends Selector {
2223
/// The components of this selector.

lib/src/ast/selector/id.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import '../selector.dart';
1313
///
1414
/// This selects elements whose `id` attribute exactly matches the given name.
1515
///
16-
/// {@category Selector}
16+
/// {@category AST}
1717
@sealed
1818
class IDSelector extends SimpleSelector {
1919
/// The ID name this selects for.

lib/src/ast/selector/list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import '../selector.dart';
1818
/// A selector list is composed of [ComplexSelector]s. It matches any element
1919
/// that matches any of the component selectors.
2020
///
21-
/// {@category Selector}
21+
/// {@category AST}
22+
/// {@category Parsing}
2223
@sealed
2324
class SelectorList extends Selector {
2425
/// The components of this selector.

lib/src/ast/selector/parent.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import '../selector.dart';
1212
/// This is not a plain CSS selector—it should be removed before emitting a CSS
1313
/// document.
1414
///
15-
/// {@category Selector}
15+
/// {@category AST}
1616
@sealed
1717
class ParentSelector extends SimpleSelector {
1818
/// The suffix that will be added to the parent selector after it's been

lib/src/ast/selector/placeholder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import '../selector.dart';
1414
/// `@extend`. It's not a plain CSS selector—it should be removed before
1515
/// emitting a CSS document.
1616
///
17-
/// {@category Selector}
17+
/// {@category AST}
1818
@sealed
1919
class PlaceholderSelector extends SimpleSelector {
2020
/// The name of the placeholder.

lib/src/ast/selector/pseudo.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import '../selector.dart';
1818
/// logic for each pseudo selector that takes a selector as an argument, to
1919
/// ensure that extension and other selector operations work properly.
2020
///
21-
/// {@category Selector}
21+
/// {@category AST}
2222
@sealed
2323
class PseudoSelector extends SimpleSelector {
2424
/// The name of this selector.

lib/src/ast/selector/qualified_name.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:meta/meta.dart';
88
///
99
/// [qualified name]: https://www.w3.org/TR/css3-namespace/#css-qnames
1010
///
11-
/// {@category Selector}
11+
/// {@category AST}
1212
@sealed
1313
class QualifiedName {
1414
/// The identifier name.

lib/src/ast/selector/simple.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import '../selector.dart';
1111

1212
/// An abstract superclass for simple selectors.
1313
///
14-
/// {@category Selector}
14+
/// {@category AST}
15+
/// {@category Parsing}
1516
abstract class SimpleSelector extends Selector {
1617
/// The minimum possible specificity that this selector can have.
1718
///

lib/src/ast/selector/type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import '../selector.dart';
1212
///
1313
/// This selects elements whose name equals the given name.
1414
///
15-
/// {@category Selector}
15+
/// {@category AST}
1616
@sealed
1717
class TypeSelector extends SimpleSelector {
1818
/// The element name being selected.

lib/src/ast/selector/universal.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import '../selector.dart';
1010

1111
/// Matches any element in the given namespace.
1212
///
13-
/// {@category Selector}
13+
/// {@category AST}
1414
@sealed
1515
class UniversalSelector extends SimpleSelector {
1616
/// The selector namespace.

0 commit comments

Comments
 (0)