We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effefe8 commit 7215522Copy full SHA for 7215522
gcc/rust/ast/rust-ast-collector.cc
@@ -22,6 +22,7 @@
22
#include "rust-expr.h"
23
#include "rust-item.h"
24
#include "rust-keyword-values.h"
25
+#include "rust-location.h"
26
#include "rust-path.h"
27
#include "rust-system.h"
28
#include "rust-token.h"
@@ -2587,6 +2588,13 @@ TokenCollector::visit (LetStmt &stmt)
2587
2588
push (Rust::Token::make (EQUAL, UNDEF_LOCATION));
2589
visit (stmt.get_init_expr ());
2590
}
2591
+
2592
+ if (stmt.has_else_expr ())
2593
+ {
2594
+ push (Rust::Token::make (ELSE, UNDEF_LOCATION));
2595
+ visit (stmt.get_else_expr ());
2596
+ }
2597
2598
push (Rust::Token::make (SEMICOLON, UNDEF_LOCATION));
2599
2600
0 commit comments