From f715c96eab87166893d3f44dd3550942ec4cce93 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Mon, 26 Aug 2024 08:57:42 -0700 Subject: [PATCH] Fix angle brackets in doc comments (dart-lang/csslib#206) --- pkgs/csslib/lib/parser.dart | 6 +++--- pkgs/csslib/test/compiler_test.dart | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/csslib/lib/parser.dart b/pkgs/csslib/lib/parser.dart index 837007d96..446929823 100644 --- a/pkgs/csslib/lib/parser.dart +++ b/pkgs/csslib/lib/parser.dart @@ -83,7 +83,7 @@ void analyze(List styleSheets, /// Parse the [input] CSS stylesheet into a tree. /// -/// The [input] can be a [String], or [List] of bytes and returns a +/// The [input] can be a [String], or [List]`` of bytes and returns a /// [StyleSheet] AST. The optional [errors] list will collect any error /// encountered. StyleSheet parse( @@ -100,7 +100,7 @@ StyleSheet parse( } /// Parse the [input] CSS selector into a tree. The [input] can be a [String], -/// or [List] of bytes and returns a [StyleSheet] AST. The optional +/// or [List]`` 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? errors}) { @@ -1332,7 +1332,7 @@ class _Parser { /// Same as [processSelector] but reports an error for each combinator. /// - /// This is a quick fix for parsing until the parser + /// This is a quick fix for parsing `` until the parser /// supports Selector Level 4 grammar: /// https://drafts.csswg.org/selectors-4/#typedef-compound-selector Selector? processCompoundSelector() { diff --git a/pkgs/csslib/test/compiler_test.dart b/pkgs/csslib/test/compiler_test.dart index f43c1ea2b..ba0c71e00 100644 --- a/pkgs/csslib/test/compiler_test.dart +++ b/pkgs/csslib/test/compiler_test.dart @@ -505,7 +505,7 @@ void testWildcard() { expect('foobar', simpleSelector1.name); } -/// Test List as input to parser. +// Test List as input to parser. void testArrayOfChars() { var errors = []; var input = '