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

Fix angle brackets in doc comments #206

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
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
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