Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64ebf5b

Browse files
committed
Address comments
1 parent bc5d7a3 commit 64ebf5b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ql/src/codeql_ruby/Variables.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ private VariableScope enclosingScope(AstNode node) {
1515

1616
/** A parameter. */
1717
class Parameter extends AstNode {
18-
int position;
19-
VariableScope scope;
18+
private int position;
19+
private VariableScope scope;
2020

2121
Parameter() {
2222
this =
@@ -26,10 +26,13 @@ class Parameter extends AstNode {
2626
scope.(MethodScope).getScopeElement().getAFieldOrChild().(MethodParameters).getChild(position)
2727
}
2828

29+
/** Gets the (zero-based) position of this parameter. */
2930
final int getPosition() { result = position }
3031

32+
/** Gets the scope this parameter is declared in. */
3133
final VariableScope getDeclaringScope() { result = scope }
3234

35+
/** Gets an access to this parameter. */
3336
final ParameterAccess getAnAccess() { result.getParameter() = this }
3437
}
3538

0 commit comments

Comments
 (0)