Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Fix angle brackets in doc comments (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Aug 26, 2024
1 parent 192d720 commit d486627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void analyze(List<StyleSheet> styleSheets,

/// Parse the [input] CSS stylesheet into a tree.
///
/// The [input] can be a [String], or [List<int>] of bytes and returns a
/// The [input] can be a [String], or [List]`<int>` of bytes and returns a
/// [StyleSheet] AST. The optional [errors] list will collect any error
/// encountered.
StyleSheet parse(
Expand All @@ -100,7 +100,7 @@ StyleSheet parse(
}

/// Parse the [input] CSS selector into a tree. The [input] can be a [String],
/// or [List<int>] of bytes and returns a [StyleSheet] AST. The optional
/// or [List]`<int>` of bytes and returns a [StyleSheet] AST. The optional
/// [errors] list will contain each error/warning as a [Message].
// TODO(jmesserly): should rename "parseSelector" and return Selector
StyleSheet selector(Object input, {List<Message>? errors}) {
Expand Down Expand Up @@ -1332,7 +1332,7 @@ class _Parser {

/// Same as [processSelector] but reports an error for each combinator.
///
/// This is a quick fix for parsing <compound-selectors> until the parser
/// This is a quick fix for parsing `<compound-selectors>` until the parser
/// supports Selector Level 4 grammar:
/// https://drafts.csswg.org/selectors-4/#typedef-compound-selector
Selector? processCompoundSelector() {
Expand Down
2 changes: 1 addition & 1 deletion test/compiler_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ void testWildcard() {
expect('foobar', simpleSelector1.name);
}

/// Test List<int> as input to parser.
// Test List<int> as input to parser.
void testArrayOfChars() {
var errors = <Message>[];
var input = '<![CDATA[.foo { '
Expand Down

0 comments on commit d486627

Please sign in to comment.