diff options
| author | Marmare314 <49279081+Marmare314@users.noreply.github.com> | 2023-04-25 11:22:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 11:22:12 +0200 |
| commit | d5d98b67a83944d72a5c0f8e8e2f43aeee667122 (patch) | |
| tree | 11580441926d1c24c6243868232b44b844663c4b /src/syntax/kind.rs | |
| parent | efad1e71fa699e0d2413d3a6a3ce5a4163e38112 (diff) | |
Destructuring assign (#703)
Diffstat (limited to 'src/syntax/kind.rs')
| -rw-r--r-- | src/syntax/kind.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syntax/kind.rs b/src/syntax/kind.rs index d35901b0..0717e16c 100644 --- a/src/syntax/kind.rs +++ b/src/syntax/kind.rs @@ -244,6 +244,8 @@ pub enum SyntaxKind { FuncReturn, /// A destructuring pattern: `(x, _, ..y)`. Destructuring, + /// A destructuring assignment expression: `(x, y) = (1, 2)`. + DestructAssignment, /// A line comment: `// ...`. LineComment, @@ -430,6 +432,7 @@ impl SyntaxKind { Self::LoopContinue => "`continue` expression", Self::FuncReturn => "`return` expression", Self::Destructuring => "destructuring pattern", + Self::DestructAssignment => "destructuring assignment expression", Self::LineComment => "line comment", Self::BlockComment => "block comment", Self::Error => "syntax error", |
