/source/core/ast/CoverDecl.ooc
Unknown | 35 lines | 23 code | 12 blank | 0 comment | 0 complexity | b63d57dae538291aea01f661752c3eed MD5 | raw file
1 2 3import structs/[ArrayList, HashMap] 4 5import Expression, Scope, Type, Call 6import middle/Resolver 7 8CoverDecl: class extends Expression { 9 10 body := Scope new() 11 _type: Type 12 13 resolved := false // artificial testing 14 15 name: String { get set } 16 17 init: func ~_cover { 18 name = "" 19 // type? 20 } 21 22 resolve: func (task: Task) { 23 resolved = true // artificial testing 24 task queue(body) 25 } 26 27 toString: func -> String { 28 "cover " + body toString() 29 } 30 31 getType: func -> Type { 32 _type 33 } 34 35}