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

Commit d486627

Browse files
authored
Fix angle brackets in doc comments (#206)
1 parent 192d720 commit d486627

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/parser.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void analyze(List<StyleSheet> styleSheets,
8383

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

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

13331333
/// Same as [processSelector] but reports an error for each combinator.
13341334
///
1335-
/// This is a quick fix for parsing <compound-selectors> until the parser
1335+
/// This is a quick fix for parsing `<compound-selectors>` until the parser
13361336
/// supports Selector Level 4 grammar:
13371337
/// https://drafts.csswg.org/selectors-4/#typedef-compound-selector
13381338
Selector? processCompoundSelector() {

test/compiler_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void testWildcard() {
505505
expect('foobar', simpleSelector1.name);
506506
}
507507

508-
/// Test List<int> as input to parser.
508+
// Test List<int> as input to parser.
509509
void testArrayOfChars() {
510510
var errors = <Message>[];
511511
var input = '<![CDATA[.foo { '

0 commit comments

Comments
 (0)