diff --git a/src/Compilers/Core/Portable/Compilation/ParseOptions.cs b/src/Compilers/Core/Portable/Compilation/ParseOptions.cs index dd0721755d9d8774ea179a6bf44d18adadae45e6..bbc0e636ac1fd22db499e100ba5931ce4b174016 100644 --- a/src/Compilers/Core/Portable/Compilation/ParseOptions.cs +++ b/src/Compilers/Core/Portable/Compilation/ParseOptions.cs @@ -38,6 +38,9 @@ public ParseOptions WithKind(SourceCodeKind 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)] public abstract ParseOptions CommonWithKind(SourceCodeKind kind);