formatting
This commit is contained in:
@@ -279,7 +279,8 @@ class SpecialForms {
|
|||||||
case Symbol(type): type;
|
case Symbol(type): type;
|
||||||
default: throw CompileError.fromExp(args[0], '$whichArg argument to (the... ) should be a valid type');
|
default: throw CompileError.fromExp(args[0], '$whichArg argument to (the... ) should be a valid type');
|
||||||
};
|
};
|
||||||
if (pkg.length > 0) type = pkg + "." + type;
|
if (pkg.length > 0)
|
||||||
|
type = pkg + "." + type;
|
||||||
ECheckType(k.convert(args[1]), Helpers.parseComplexType(type, args[0])).withMacroPosOf(wholeExp);
|
ECheckType(k.convert(args[1]), Helpers.parseComplexType(type, args[0])).withMacroPosOf(wholeExp);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -230,3 +230,9 @@
|
|||||||
string Std.string
|
string Std.string
|
||||||
random Std.random
|
random Std.random
|
||||||
int Std.int)))
|
int Std.int)))
|
||||||
|
|
||||||
|
(defmacro withValueOrInputBox [v &rest body]
|
||||||
|
`(if ,v
|
||||||
|
{,@body}
|
||||||
|
(awaitLet [,v (inputBox)]
|
||||||
|
,@body)))
|
Reference in New Issue
Block a user