in src/core.js [93:102]
function match(path, filter) {
if (!(path instanceof NodePath)) {
if (typeof path.get === 'function') {
path = path.get();
} else {
path = {value: path};
}
}
return matchNode(path.value, filter);
}