|
1 | 1 | import powershell |
2 | 2 |
|
3 | | -class Parameter extends @parameter, Ast { |
4 | | - override string toString() { result = this.getName().toString() } |
5 | | - |
6 | | - string getName() { |
7 | | - exists(@variable_expression ve | |
8 | | - parameter(this, ve, _, _) and |
9 | | - variable_expression(ve, result, _, _, _, _, _, _, _, _, _, _) |
10 | | - ) |
11 | | - } |
| 3 | +module Private { |
| 4 | + class Parameter extends @parameter, Ast { |
| 5 | + override string toString() { result = this.getName().toString() } |
| 6 | + |
| 7 | + string getName() { |
| 8 | + exists(@variable_expression ve | |
| 9 | + parameter(this, ve, _, _) and |
| 10 | + variable_expression(ve, result, _, _, _, _, _, _, _, _, _, _) |
| 11 | + ) |
| 12 | + } |
12 | 13 |
|
13 | | - string getStaticType() { parameter(this, _, result, _) } |
| 14 | + string getStaticType() { parameter(this, _, result, _) } |
14 | 15 |
|
15 | | - int getNumAttributes() { parameter(this, _, _, result) } |
| 16 | + int getNumAttributes() { parameter(this, _, _, result) } |
16 | 17 |
|
17 | | - AttributeBase getAttribute(int i) { parameter_attribute(this, i, result) } |
| 18 | + AttributeBase getAttribute(int i) { parameter_attribute(this, i, result) } |
18 | 19 |
|
19 | | - AttributeBase getAnAttribute() { result = this.getAttribute(_) } |
| 20 | + AttributeBase getAnAttribute() { result = this.getAttribute(_) } |
20 | 21 |
|
21 | | - Expr getDefaultValue() { parameter_default_value(this, result) } |
| 22 | + Expr getDefaultValue() { parameter_default_value(this, result) } |
22 | 23 |
|
23 | | - override SourceLocation getLocation() { parameter_location(this, result) } |
| 24 | + override SourceLocation getLocation() { parameter_location(this, result) } |
| 25 | + } |
24 | 26 | } |
| 27 | + |
| 28 | +module Public { } |
0 commit comments