Add the span of the operator itself to ast::BinOp.
This commit is contained in:
parent
4be79d6acd
commit
2e888d0341
20 changed files with 69 additions and 65 deletions
|
@ -249,7 +249,7 @@ impl Token {
|
|||
}
|
||||
|
||||
/// Maps a token to its corresponding binary operator.
|
||||
pub fn to_binop(&self) -> Option<ast::BinOp> {
|
||||
pub fn to_binop(&self) -> Option<ast::BinOp_> {
|
||||
match *self {
|
||||
BinOp(Star) => Some(ast::BiMul),
|
||||
BinOp(Slash) => Some(ast::BiDiv),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue