exprCase handle meta exps

This commit is contained in:
2021-11-27 21:13:39 -07:00
parent 4eb2a083a2
commit 09e2898d42

View File

@@ -1225,6 +1225,13 @@ class Macros {
default:
return false;
}
case MetaExp(metaStr, patternExp):
return switch (instance.def) {
case MetaExp(instanceMetaStr, instanceExp) if (instanceMetaStr == metaStr):
matchExpr(patternExp, instanceExp);
default:
false;
};
// I don't think I'll ever want to match specific string literals, raw haxe, field expressions,
// key-value expressions, quasiquotes, unquotes, or UnquoteLists. This function can be expanded
// later if those features are ever needed.