Navigation
Synopsis Filter a symboltree based on offset location.
Function SymbolTree filterScopeByPosition(SymbolTree tree, int offset)
Usage import util::ContentCompletion;
Description Filters a symboltree by removing scope children if they are not visible from the offset location. Annonymous scopes will be emptied and scopes with scopesymbols will be replaced by the scopesymbol, removing the children. Remember to set the @location annotation on ALL symbols in the tree.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.