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)[
21
21
/**
22
22
* Checks if a predicate has a return type.
23
23
*/
24
- predicate hasReturnType ( Predicate pred ) { exists ( pred .getReturnType ( ) ) }
24
+ predicate hasReturnType ( Predicate pred ) { exists ( pred .getReturnTypeExpr ( ) ) }
25
25
26
26
/**
27
27
* 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() }
35
35
36
36
// OK -- starts with as and returns a value
37
37
string 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