'Returns the snippets for all \'filetypes\' (in order) and their
parents matching the text \'before\'. If \'possible\' is true, a partial
match is enough. Base classes can override this method to provide means
of creating snippets on the fly.
Returns a list of SnippetDefinition s.'

def get_snippets(self, filetypes, before, possible, autotrigger_only, visual_content):

    result = []
    for ft in self._get_existing_deep_extends(filetypes):
        snips = self._snippets[ft]
        result.extend(snips.get_matching_snippets(before, possible, autotrigger_only, visual_content))
    return result
