feat(muscript): add additional Script constructor
This commit is contained in:
parent
0d9ca77993
commit
1f8fd9c7cd
|
@ -13,6 +13,10 @@ public record Script(DynamicExpr content) {
|
|||
this(new ExprGroup(null, expressions, null, true));
|
||||
}
|
||||
|
||||
public Script(List<Expr> expressions, String fileName) {
|
||||
this(expressions, CodeLocation.NONE.withFile(fileName));
|
||||
}
|
||||
|
||||
public Script(List<Expr> expressions, CodeLocation location) {
|
||||
this(new ExprGroup(location, expressions, null, true));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue