Skip to content

Commit

Permalink
Handle Ast::Discard when building the scope tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Nov 23, 2024
1 parent fd07efb commit 6e51502
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/examples/discard
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
component Main {
fun render : String {
case "A" {
"A" => "A"
_ => "X"
}
}
}
1 change: 1 addition & 0 deletions src/scope.cr
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ module Mint
Ast::Variable,
Ast::Builtin,
Ast::Comment,
Ast::Discard,
Ast::Env
when Ast::StringLiteral,
Ast::HereDocument,
Expand Down

0 comments on commit 6e51502

Please sign in to comment.