exprCase handle meta exps
This commit is contained in:
@@ -1225,6 +1225,13 @@ class Macros {
|
|||||||
default:
|
default:
|
||||||
return false;
|
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,
|
// 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
|
// key-value expressions, quasiquotes, unquotes, or UnquoteLists. This function can be expanded
|
||||||
// later if those features are ever needed.
|
// later if those features are ever needed.
|
||||||
|
Reference in New Issue
Block a user