More QLDoc for LhsExpr

This commit is contained in:
Arthur Baars
2021-02-16 16:09:56 +01:00
parent e3cf226679
commit c4b3c8bc28

View File

@@ -15,7 +15,12 @@ class Pattern extends AstNode {
}
/**
* A "left-hand-side" expression.
* A "left-hand-side" expression. An `LhsExpr` can occur on the left-hand side of
* operator assignments (`AssignOperation`), in patterns (`Pattern`) on the left-hand side of
* an assignment (`AssignExpr`) or for loop (`ForExpr`), and as the exception
* variable of a `rescue` clause (`RescueClause`).
*
* An `LhsExpr` can be a simple variable, a constant, a call, or an element reference:
* ```rb
* var = 1
* var += 1