/source/core/ast/Import.ooc
Unknown | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 19267cb7f20cbf69e0e68d29e73dec10 MD5 | raw file
1 2import Node, Module 3 4/** 5 * Imports allow a module to use the functions, types, globals defined 6 * in another module. 7 * 8 * Imports are not transitive, ie. if `A` imports `B` and `B` imports `C`, 9 * `A` won't have access to C's symbols if it doesn't import it explicitly. 10 */ 11Import: class extends Node { 12 13 importName: String 14 module: Module { get set } 15 16 init: func (=importName) {} 17 18}