From 3fbcba8081769144f9f7d20f48192e869a01069c Mon Sep 17 00:00:00 2001 From: Mikhail Arkhipov Date: Tue, 20 Dec 2016 15:19:48 -0800 Subject: [PATCH] Dev14/Dev15 compat --- .gitignore | 1 + .../Impl/ExecutionTracing/RExecutionTracer.cs | 4 +- src/Languages/Core/Impl/Tokens/TokenStream.cs | 4 +- src/Package/Impl/Package.vsct | 69 +++++++++++++------ ...eractiveWindowComponentContainerFactory.cs | 12 ++-- .../ViewModel/RPackageSourceViewModel.cs | 8 ++- src/UnitTests/Core/Impl/Paths.cs | 4 +- 7 files changed, 71 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 6936ef497..4ef060dfe 100644 --- a/.gitignore +++ b/.gitignore @@ -122,3 +122,4 @@ TestFiles/ *.vstman *.db-wal *.db-shm +*.ipch diff --git a/src/Host/Client/Impl/ExecutionTracing/RExecutionTracer.cs b/src/Host/Client/Impl/ExecutionTracing/RExecutionTracer.cs index c8b950287..e0552dbbc 100644 --- a/src/Host/Client/Impl/ExecutionTracing/RExecutionTracer.cs +++ b/src/Host/Client/Impl/ExecutionTracing/RExecutionTracer.cs @@ -48,7 +48,9 @@ namespace Microsoft.R.ExecutionTracing { } internal RExecutionTracer(IRSession session) { - session = session ?? throw new ArgumentNullException(nameof(session)); + if (session == null) { + throw new ArgumentNullException(nameof(session)); + } Session = session; Session.Connected += RSession_Connected; diff --git a/src/Languages/Core/Impl/Tokens/TokenStream.cs b/src/Languages/Core/Impl/Tokens/TokenStream.cs index b147242be..9004ac7b5 100644 --- a/src/Languages/Core/Impl/Tokens/TokenStream.cs +++ b/src/Languages/Core/Impl/Tokens/TokenStream.cs @@ -22,7 +22,9 @@ namespace Microsoft.Languages.Core.Tokens { private bool _isEndOfStream; public TokenStream(IReadOnlyTextRangeCollection tokens, T endOfStreamToken) { - tokens = tokens ?? throw new ArgumentNullException(nameof(tokens)); + if (tokens == null) { + throw new ArgumentNullException(nameof(tokens)); + } _index = 0; _tokens = tokens; diff --git a/src/Package/Impl/Package.vsct b/src/Package/Impl/Package.vsct index 69a7dcff7..a23551a1f 100644 --- a/src/Package/Impl/Package.vsct +++ b/src/Package/Impl/Package.vsct @@ -67,7 +67,7 @@ - + DefaultDocked NoToolbarClose @@ -453,10 +453,21 @@ - - + + + + + + + + - + + + + + + @@ -575,14 +586,29 @@ - - + + + + + + - - + + + + + + + + + + + + + @@ -619,7 +645,7 @@ - -