get method
Implementation
Object? get(Token name) {
if (fields.containsKey(name.lexeme)) {
return fields[name.lexeme];
}
LoxFunction? method = klass.findMethod(name.lexeme);
if (method != null) {
return method.bind(this);
}
throw RuntimeError(name, "Undefined property '" + name.lexeme + "'.");
}