mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-01 10:17:30 +03:00
fix comments
This commit is contained in:
parent
f96c4ad37e
commit
f404c426ed
@ -66,7 +66,7 @@ impl Node for ValueExpression {
|
||||
| Char(_, span)
|
||||
| Field(_, span)
|
||||
| Implicit(_, span)
|
||||
| Integer(_, _, span) // => span,
|
||||
| Integer(_, _, span)
|
||||
| String(_, span) => span,
|
||||
Group(group) => match &**group {
|
||||
GroupValue::Single(_, span) | GroupValue::Tuple(GroupTuple { span, .. }) => span,
|
||||
@ -82,7 +82,7 @@ impl Node for ValueExpression {
|
||||
| Char(_, span)
|
||||
| Field(_, span)
|
||||
| Implicit(_, span)
|
||||
| Integer(_, _, span) // => *span = new_span,
|
||||
| Integer(_, _, span)
|
||||
| String(_, span) => *span = new_span,
|
||||
Group(group) => match &mut **group {
|
||||
GroupValue::Single(_, span) | GroupValue::Tuple(GroupTuple { span, .. }) => *span = new_span,
|
||||
|
@ -62,7 +62,7 @@ fn eat_identifier(input_tendril: &StrTendril) -> Option<StrTendril> {
|
||||
|
||||
impl Token {
|
||||
///
|
||||
/// Eats symbol. Used for string literals and char literals
|
||||
/// Eats String. Returns Token::StringLiteral with processed contents of the string.
|
||||
///
|
||||
fn eat_string(input_tendril: &StrTendril) -> (usize, Option<Token>) {
|
||||
if input_tendril.is_empty() {
|
||||
|
Loading…
Reference in New Issue
Block a user