Function -
bool isWithin(SymbolTree symbol, int offset)
-
bool isWithin(Tree treeNode, int offset)
-
bool isWithin(loc location, int offset)
Usage import util::ContentCompletion;
Check whether a symbol is within a given offset. Requires the @location annotation to be set