PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/source/core/ast/Import.ooc

http://github.com/nddrylliog/oc
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}