Skip to content

Commit 983b7e6

Browse files
committed
Removed obsolete/unplanned TODO statements
1 parent d38bbc0 commit 983b7e6

5 files changed

Lines changed: 0 additions & 7 deletions

File tree

rusty_parser/src/core/comment.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ pub fn comment_p() -> impl Parser<StringView, Output = Statement, Error = Parser
1414
/// Parses a comment as a [String].
1515
/// Does not consume the EOL token.
1616
pub fn comment_as_string_p() -> impl Parser<StringView, Output = String, Error = ParserError> {
17-
// TODO support ignoring tokens to avoid allocation
1817
any_symbol_of!('\'').and_keep_right(
1918
any_token_of!(TokenType::Eol ; mode = MatchMode::Exclude)
2019
.many_allow_none(StringManyCombiner),

rusty_parser/src/core/param_name.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ fn parameter_p() -> impl Parser<StringView, Output = Parameter, Error = ParserEr
9292

9393
fn array_indicator() -> impl Parser<StringView, Output = Option<(Token, Token)>, Error = ParserError>
9494
{
95-
// TODO support ignoring token to avoid allocation
9695
seq2(any_symbol_of!('('), any_symbol_of!(')'), |l, r| (l, r)).to_option()
9796
}
9897

rusty_parser/src/core/print.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ fn any_print_arg() -> impl Parser<StringView, Output = PrintArg, Error = ParserE
171171
}
172172

173173
fn delimiter_print_arg() -> impl Parser<StringView, Output = PrintArg, Error = ParserError> {
174-
// TODO support char based tokens or make the next mapping friendlier
175174
any_symbol_of_ws!(';', ',').map(|t| {
176175
if ';'.matches_token(&t) {
177176
PrintArg::Semicolon

rusty_parser/src/expr/string_literal.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub(super) fn parser() -> impl Parser<StringView, Output = ExpressionPos, Error
1818
}
1919

2020
fn string_delimiter() -> impl Parser<StringView, Output = Token, Error = ParserError> {
21-
// TODO support ignoring token to avoid allocation
2221
any_symbol_of!('"')
2322
}
2423

rusty_parser/src/pc_specific/keyword.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use crate::pc_specific::whitespace_ignoring;
88
use crate::tokens::{TokenMatcher, TokenType, any_token};
99
use crate::{Keyword, ParserError};
1010

11-
// TODO review usages of TokenType::Keyword
12-
1311
/// Matches the specific keyword.
1412
///
1513
/// Ensures that it is not followed by a dollar sign, in which case it is a valid identifier.
@@ -50,7 +48,6 @@ pub fn keyword_ws_p(k: Keyword) -> impl Parser<StringView, Output = (), Error =
5048
keyword_ignoring(k).and(whitespace_ignoring().to_fatal(), IgnoringBothCombiner)
5149
}
5250

53-
// TODO add keyword_pair_ws
5451
/// Parses the first keyword, followed by mandatory whitespace,
5552
/// followed by the second keyword. If the first keyword is parsed,
5653
/// both the whitespace and the second keyword must be parsed.

0 commit comments

Comments
 (0)