public object Get(Token name) { if (Fields.ContainsKey(name.Lexeme)) { return(Fields[name.Lexeme]); } var method = Klass.FindMethod(name.Lexeme); if (method != null) { return(method.Bind(this)); } throw new RuntimeError(name, $"Undefined property '{name.Lexeme}'."); }