File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ private VariableScope enclosingScope(AstNode node) {
1515
1616/** A parameter. */
1717class 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
You can’t perform that action at this time.
0 commit comments