@@ -9,7 +9,7 @@ module Generated {
99 class Callable extends Synth:: TCallable , Element {
1010 /**
1111 * Gets the self param, if it exists.
12- * This is taken from the "hidden" AST and should only be used to be overridden by classes .
12+ * This includes nodes from the "hidden" AST and can be used to be overridden by subclasses .
1313 */
1414 ParamDecl getImmediateSelfParam ( ) {
1515 result =
@@ -29,8 +29,8 @@ module Generated {
2929 final predicate hasSelfParam ( ) { exists ( getSelfParam ( ) ) }
3030
3131 /**
32- * Gets the `index`th param.
33- * This is taken from the "hidden" AST and should only be used to be overridden by classes .
32+ * Gets the `index`th param (0-based) .
33+ * This includes nodes from the "hidden" AST and can be used to be overridden by subclasses .
3434 */
3535 ParamDecl getImmediateParam ( int index ) {
3636 result =
@@ -40,7 +40,7 @@ module Generated {
4040 }
4141
4242 /**
43- * Gets the `index`th param.
43+ * Gets the `index`th param (0-based) .
4444 */
4545 final ParamDecl getParam ( int index ) { result = getImmediateParam ( index ) .resolve ( ) }
4646
@@ -56,7 +56,7 @@ module Generated {
5656
5757 /**
5858 * Gets the body, if it exists.
59- * This is taken from the "hidden" AST and should only be used to be overridden by classes .
59+ * This includes nodes from the "hidden" AST and can be used to be overridden by subclasses .
6060 */
6161 BraceStmt getImmediateBody ( ) {
6262 result =
@@ -65,7 +65,6 @@ module Generated {
6565
6666 /**
6767 * Gets the body, if it exists.
68- *
6968 * The body is absent within protocol declarations.
7069 */
7170 final BraceStmt getBody ( ) { result = getImmediateBody ( ) .resolve ( ) }
0 commit comments