Skip to content

Commit

Permalink
tidy up hasCacheKeyExcludeAnnotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Simpson committed Sep 15, 2021
1 parent d11636d commit fac28f1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ object Macros {
val sym: Symbol = Symbol.spliceOwner

def hasCacheKeyExcludeAnnotation(s: Symbol): Boolean = s.annotations.exists {
// case Apply(Select(New(Ident("cacheKeyExclude")), _), _) => true // Don't know why this doesn't match...
case Apply(Select(New(o), _), _) => o.toString == "Ident(cacheKeyExclude)"
case o => false
case Apply(Select(New(TypeIdent("cacheKeyExclude")), _), _) => true
case o => false
}

def getOwningDefSymbol(s: Symbol): Symbol =
Expand Down

0 comments on commit fac28f1

Please sign in to comment.