collect fields from AsyncEmbeddedScript scriptFile
This commit is contained in:
@@ -60,6 +60,7 @@ class AsyncEmbeddedScript {
|
|||||||
classFields = classFields.concat(Kiss.build(dslFile, k));
|
classFields = classFields.concat(Kiss.build(dslFile, k));
|
||||||
|
|
||||||
scriptFile = Path.join([loadingDirectory, scriptFile]);
|
scriptFile = Path.join([loadingDirectory, scriptFile]);
|
||||||
|
k.fieldList = [];
|
||||||
Reader.readAndProcess(Stream.fromFile(scriptFile), k, (nextExp) -> {
|
Reader.readAndProcess(Stream.fromFile(scriptFile), k, (nextExp) -> {
|
||||||
var expr = Kiss.readerExpToHaxeExpr(nextExp, k);
|
var expr = Kiss.readerExpToHaxeExpr(nextExp, k);
|
||||||
|
|
||||||
@@ -73,6 +74,12 @@ class AsyncEmbeddedScript {
|
|||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
for (command in commandList) {
|
||||||
|
Sys.println(command.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
classFields = classFields.concat(k.fieldList);
|
||||||
|
|
||||||
classFields.push({
|
classFields.push({
|
||||||
pos: PositionTools.make({
|
pos: PositionTools.make({
|
||||||
min: 0,
|
min: 0,
|
||||||
|
Reference in New Issue
Block a user