PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms 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
 2import middle/Resolver
 3
 4import Access, Var // for resolveAccess
 5
 6Node: class {
 7
 8    resolve: func (task: Task) {
 9        (task toString() + " node-stub, already done.") println()
10    }
11
12    toString: func -> String {
13        class name
14    }
15
16    callResolver?: func -> Bool { false }
17    
18    accessResolver?: func -> Bool { false }
19    
20    resolveAccess: func (acc: Access, task: Task, suggest: Func (Var)) {
21        // <your ad here>
22    }
23
24}