PageRenderTime 66ms CodeModel.GetById 12ms RepoModel.GetById 2ms 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. import Node, Module
  2. /**
  3. * Imports allow a module to use the functions, types, globals defined
  4. * in another module.
  5. *
  6. * Imports are not transitive, ie. if `A` imports `B` and `B` imports `C`,
  7. * `A` won't have access to C's symbols if it doesn't import it explicitly.
  8. */
  9. Import: class extends Node {
  10. importName: String
  11. module: Module { get set }
  12. init: func (=importName) {}
  13. }