Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv committed Mar 14, 2017
1 parent 5820b9c commit 2d48bdf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/Compilers/CSharp/Portable/CSharpParseOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
using Roslyn.Utilities;

namespace Microsoft.CodeAnalysis.CSharp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,5 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Public Overrides Function GetHashCode() As Integer
Return Hash.Combine(MyBase.GetHashCodeHelper(), CInt(Me.SpecifiedLanguageVersion))
End Function

End Class
End Namespace
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ protected override ParseOptions CreateParseOptions(CommandLineArguments commandL
documentationMode = DocumentationMode.Diagnose;
}

CSharpParseOptions.TryParseLanguageVersion(GetStringOption(CompilerOptions.OPTID_COMPATIBILITY, defaultValue: ""),
out var languageVersion);
GetStringOption(CompilerOptions.OPTID_COMPATIBILITY, defaultValue: "").TryParse(out var languageVersion);

return options.WithKind(SourceCodeKind.Regular)
.WithLanguageVersion(languageVersion)
Expand Down

0 comments on commit 2d48bdf

Please sign in to comment.