         case method
     }
     
+    enum ClassType {
+        case none
+        case `class`
+    }
+    
     private var scopes: [[String: Bool]] = []
     private(set) var currentFunction: FunctionType = .none
+    var currentClass: ClassType = .none
     
     func begin() {
         scopes.append([:])

                value: value.resolve(resolver: resolver))
        
        case .this(let keyword):
            let depth = resolver.resolveLocal(keyword)
            return .this(keyword: keyword, depth: depth)
        }

            }
            
            resolver.end()
            
            resolver.currentClass = enclosingClass
            
            return .class(name: name, methods: resolvedMethods)
            
