Skip to content

Commit

Permalink
Fix angle brackets in doc comments (dart-archive/csslib#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Aug 26, 2024
1 parent 9dad4cf commit f715c96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkgs/csslib/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 pkgs/csslib/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 f715c96

Please sign in to comment.