File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/queries/style/ValidatePredicateGetReturns Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ predicate isGetPredicate(Predicate pred) { pred.getName().regexpMatch("(get|as)[
2121/**
2222 * Checks if a predicate has a return type.
2323 */
24- predicate hasReturnType ( Predicate pred ) { exists ( pred .getReturnType ( ) ) }
24+ predicate hasReturnType ( Predicate pred ) { exists ( pred .getReturnTypeExpr ( ) ) }
2525
2626/**
2727 * Checks if a predicate is an alias using getAlias().
Original file line number Diff line number Diff line change @@ -35,3 +35,8 @@ predicate assessment() { none() }
3535
3636// OK -- starts with as and returns a value
3737string asString ( ) { result = "string" }
38+
39+ // OK -- starts with get and returns a value
40+ HiddenType getInjectableCompositeActionNode ( ) {
41+ exists ( HiddenType hidden | result = hidden .toString ( ) )
42+ }
You can’t perform that action at this time.
0 commit comments