Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions polymod/hscript/_internal/Expr.hx
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,29 @@ typedef TypeDecl =
typedef InterfaceDecl =
{
> ModuleType,

/**
* The classes imported by the scripted class
* This gets resolved at interpretation time to save performance and improve sandboxing
*/
var imports:Map<String, ClassImport>;

/**
* A list of imports that have yet to be validated
*
* Scripted classes that import other scripted classes might be parsed before the class they import,
* so imports have to be done in two passes.
*/
var importsToValidate:Map<String, ClassImport>;

var extend:Array<CType>;
var fields:Array<FieldDecl>;
var isExtern:Bool;

/**
* The package the interface belongs to
*/
var pkg:Array<String>;
}

typedef FieldDecl =
Expand Down
Loading