Small refactor for stylistic consistency

This commit is contained in:
Owen Mansel-Chan
2026-02-14 15:19:09 +00:00
parent d6b71a346e
commit 16ddb5658f

View File

@@ -188,7 +188,7 @@ class PatternAnnotation extends Annotation, RegexMatch::Range {
result.(MethodCall).getMethod().(GetterMethod).getField() = this.getAnnotatedElement()
or
// Annotation on parameter - value of parameter will match regexp
result = this.getAnnotatedElement().(Parameter).getAnAccess().(VarRead)
result.(VarRead).getVariable().(Parameter) = this.getAnnotatedElement()
or
// Annotation on method - return value of method will match regexp
result.(Call).getCallee() = this.getAnnotatedElement()