From c4b3c8bc28cd87606423ff290d9f124f76df426c Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 16 Feb 2021 16:09:56 +0100 Subject: [PATCH] More QLDoc for LhsExpr --- ql/src/codeql_ruby/ast/Pattern.qll | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ql/src/codeql_ruby/ast/Pattern.qll b/ql/src/codeql_ruby/ast/Pattern.qll index e5cbd87bac9..4be8084c198 100644 --- a/ql/src/codeql_ruby/ast/Pattern.qll +++ b/ql/src/codeql_ruby/ast/Pattern.qll @@ -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