import Option and using StringTools in pure kiss classes

This commit is contained in:
2022-10-06 01:23:56 +00:00
parent 0eed708ca6
commit 8e5fe8a566

View File

@@ -22,6 +22,8 @@ class KissFrontend implements FrontendPlugin {
final type = context.getType();
var pos = Context.makePosition({ file: file, min: 0, max: 0 });
context.addImport('kiss.Prelude',INormal,pos);
context.addImport('haxe.ds.Option',INormal,pos);
context.addUsing('StringTools',pos);
for (field in fields) {
type.fields.push(field);
}