Skip to content

Commit 00c4692

Browse files
authored
Make members_ private in ClassOrModule (sorbet#9891)
1 parent 094345e commit 00c4692

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/Symbols.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,10 @@ class ClassOrModule final {
679679
NameRef name; // todo: move out? it should not matter but it's important for name resolution
680680
TypePtr resultType;
681681

682+
private:
682683
UnorderedMap<NameRef, SymbolRef> members_;
683684

685+
public:
684686
UnorderedMap<NameRef, SymbolRef> &members() {
685687
return members_;
686688
};

0 commit comments

Comments
 (0)