PageRenderTime 34ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/source/core/ast/Node.ooc

http://github.com/nddrylliog/oc
Unknown | 24 lines | 15 code | 9 blank | 0 comment | 0 complexity | 973bd5409d778fb8cd88d8a2c203116a MD5 | raw file
  1. import middle/Resolver
  2. import Access, Var // for resolveAccess
  3. Node: class {
  4. resolve: func (task: Task) {
  5. (task toString() + " node-stub, already done.") println()
  6. }
  7. toString: func -> String {
  8. class name
  9. }
  10. callResolver?: func -> Bool { false }
  11. accessResolver?: func -> Bool { false }
  12. resolveAccess: func (acc: Access, task: Task, suggest: Func (Var)) {
  13. // <your ad here>
  14. }
  15. }