The typeof
function currently uses three arguments that appear to be quite redundant (and are not documented other than a single example). The documentation is outdated too, mentioning that only ClassOrInterfaceType is supported
What I gather is
@Image
-> this could be inferred from the context node, just like the metric function is called with simply metric('NCSS')
.I think we could create a new function (for compatibility), e.g. typeIs
(this name seems clearer anyway since it returns a boolean), that you could call like:
//ClassOrInterfaceType[typeIs('java.lang.StringBuilder')]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4