summaryrefslogtreecommitdiff
path: root/src/syntax/kind.rs
diff options
context:
space:
mode:
authorMarmare314 <49279081+Marmare314@users.noreply.github.com>2023-04-25 11:22:12 +0200
committerGitHub <noreply@github.com>2023-04-25 11:22:12 +0200
commitd5d98b67a83944d72a5c0f8e8e2f43aeee667122 (patch)
tree11580441926d1c24c6243868232b44b844663c4b /src/syntax/kind.rs
parentefad1e71fa699e0d2413d3a6a3ce5a4163e38112 (diff)
Destructuring assign (#703)
Diffstat (limited to 'src/syntax/kind.rs')
-rw-r--r--src/syntax/kind.rs3
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",