Changed match to take an AST instead of a variable name. Updated the tag
tests.