Add definitions for match statement (#13147)

## Summary

This PR adds definition for match patterns.

## Test Plan

Update the existing test case for match statement symbols to verify that
the definitions are added as well.
This commit is contained in:
Dhruv Manilawala 2024-09-02 14:40:09 +05:30 committed by GitHub
parent 9986397d56
commit 17eb65b26f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 189 additions and 16 deletions

View file

@ -31,10 +31,10 @@ impl<T> AstNodeRef<T> {
/// which the `AstNodeRef` belongs.
///
/// ## Safety
///
/// Dereferencing the `node` can result in undefined behavior if `parsed` isn't the
/// [`ParsedModule`] to which `node` belongs. It's the caller's responsibility to ensure that
/// the invariant `node belongs to parsed` is upheld.
pub(super) unsafe fn new(parsed: ParsedModule, node: &T) -> Self {
Self {
_parsed: parsed,