Helper AST visitor that adds rule violation if a return statement is encountered that returns a null constant.
Type | Name and description |
---|---|
def |
errorMessage |
def |
parent |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression expression) |
|
void |
visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement statement) |