Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b7e413d839 | ||
![]() |
e1e487079b |
@@ -9,8 +9,8 @@
|
||||
"contributors": [
|
||||
"back2dos"
|
||||
],
|
||||
"version": "0.17.1",
|
||||
"releasenote": "Improve type parameter treatment. Add helper for getting field suggestions. Make type comparator available.",
|
||||
"version": "0.17.2",
|
||||
"releasenote": "Add Exprs.as for ECheckType.",
|
||||
"tags": [
|
||||
"tink",
|
||||
"macro",
|
||||
|
@@ -43,8 +43,11 @@ class Exprs {
|
||||
}
|
||||
|
||||
static public inline function is(e:Expr, c:ComplexType)
|
||||
return ECheckType(e, c).at(e.pos).typeof().isSuccess();
|
||||
|
||||
return e.as(c).typeof().isSuccess();
|
||||
|
||||
static public inline function as(e:Expr, c:ComplexType)
|
||||
return ECheckType(e, c).at(e.pos);
|
||||
|
||||
static public function finalize(e:Expr, ?nuPos:Position, ?rules:Dynamic<String>, ?skipFields = false, ?callPos:PosInfos) {
|
||||
if (nuPos == null)
|
||||
nuPos = Context.currentPos();
|
||||
|
Reference in New Issue
Block a user