Closed nblei closed 3 months ago
Because I'm an idiot
On Thu, Jun 13, 2024, 7:37 PM Naoya Hatta @.***> wrote:
@.**** commented on this pull request.
In crates/analyzer/src/handlers/check_expression.rs https://urldefense.com/v3/__https://github.com/veryl-lang/veryl/pull/786*discussion_r1639076813__;Iw!!DZ3fjg!5qGyUMlwQqJ6XqiXcahwa8-yUJqqGw2eoFen36hUvMMb7rN82H7L6S2HFdODARSfKAA5DGWAzcJnqyHKu35epSl6N5Uu$ :
@@ -93,6 +125,19 @@ impl<'a> VerylGrammarTrait for CheckExpression<'a> { } } }
- } else if let Factor::ExpressionIdentifierFactorOpt(x) = arg {
- let expid = x.expression_identifier.as_ref();
- if let Ok(rr) = symbol_table::resolve(expid) {
- match rr.found.kind {
- SymbolKind::Function() | SymbolKind::ModportFunctionMember() => {
- self.call_stack_kind.pop();
- }
- SymbolKind::SystemFunction => {
- self.call_stack_kind.push(FunctionKind::System);
Why is this push not pop?
— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/veryl-lang/veryl/pull/786*pullrequestreview-2117224001__;Iw!!DZ3fjg!5qGyUMlwQqJ6XqiXcahwa8-yUJqqGw2eoFen36hUvMMb7rN82H7L6S2HFdODARSfKAA5DGWAzcJnqyHKu35epcaKsQjW$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AFAMUBAPKSS3B6CIDF4SDR3ZHI3MHAVCNFSM6AAAAABJG3T4YCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCMJXGIZDIMBQGE__;!!DZ3fjg!5qGyUMlwQqJ6XqiXcahwa8-yUJqqGw2eoFen36hUvMMb7rN82H7L6S2HFdODARSfKAA5DGWAzcJnqyHKu35epVeZvQWe$ . You are receiving this because you authored the thread.Message ID: @.***>
Thanks. I'll merge this PR after resolving the conflict.
Fixes the issue raised by @nananapo in #785 but also fixes a number of other related issues.
Enum
,Union
,Struct
,UnionMember
, andStructMember
are suitable to be passed into functions with KindSystemFunction
.