提交 13e76021 编写于 作者: E Eriawan Kusumawardhono

add comment based on comment on PR #10304 by Jason Malinowski

上级 0edb25f3
...@@ -38,6 +38,9 @@ public ParseOptions WithKind(SourceCodeKind kind) ...@@ -38,6 +38,9 @@ public ParseOptions WithKind(SourceCodeKind kind)
return CommonWithKind(kind); return CommonWithKind(kind);
} }
// It was supposed to be a protected implementation detail.
// The "pattern" we have for these is the public With* method is the only public callable one,
// and that forwards to the protected Common* like all the other methods in the class (see PR #10304 comments by Jason Malinowski)
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
public abstract ParseOptions CommonWithKind(SourceCodeKind kind); public abstract ParseOptions CommonWithKind(SourceCodeKind kind);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册