@@ -14,7 +14,7 @@ namespace Semmle.Autobuild.CSharp
1414 /// A build rule where the build command is of the form "dotnet build".
1515 /// Currently unused because the tracer does not work with dotnet.
1616 /// </summary>
17- class DotNetRule : IBuildRule
17+ internal class DotNetRule : IBuildRule
1818 {
1919 public BuildScript Analyse ( Autobuilder builder , bool auto )
2020 {
@@ -57,7 +57,7 @@ public BuildScript Analyse(Autobuilder builder, bool auto)
5757 } ) ;
5858 }
5959
60- static BuildScript WithDotNet ( Autobuilder builder , Func < string ? , IDictionary < string , string > ? , bool , BuildScript > f )
60+ private static BuildScript WithDotNet ( Autobuilder builder , Func < string ? , IDictionary < string , string > ? , bool , BuildScript > f )
6161 {
6262 string ? installDir = builder . Actions . PathCombine ( builder . Options . RootDirectory , ".dotnet" ) ;
6363 var installScript = DownloadDotNet ( builder , installDir ) ;
@@ -129,7 +129,7 @@ public static BuildScript WithDotNet(Autobuilder builder, Func<IDictionary<strin
129129 /// .NET Core SDK. The SDK(s) will be installed at <code>installDir</code>
130130 /// (provided that the script succeeds).
131131 /// </summary>
132- static BuildScript DownloadDotNet ( Autobuilder builder , string installDir )
132+ private static BuildScript DownloadDotNet ( Autobuilder builder , string installDir )
133133 {
134134 if ( ! string . IsNullOrEmpty ( builder . Options . DotNetVersion ) )
135135 // Specific version supplied in configuration: always use that
@@ -166,7 +166,7 @@ static BuildScript DownloadDotNet(Autobuilder builder, string installDir)
166166 ///
167167 /// See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script.
168168 /// </summary>
169- static BuildScript DownloadDotNetVersion ( Autobuilder builder , string path , string version )
169+ private static BuildScript DownloadDotNetVersion ( Autobuilder builder , string path , string version )
170170 {
171171 return BuildScript . Bind ( GetInstalledSdksScript ( builder . Actions ) , ( sdks , sdksRet ) =>
172172 {
@@ -257,42 +257,42 @@ public bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certifi
257257 } ) ;
258258 }
259259
260- static BuildScript GetInstalledSdksScript ( IBuildActions actions )
260+ private static BuildScript GetInstalledSdksScript ( IBuildActions actions )
261261 {
262262 var listSdks = new CommandBuilder ( actions , silent : true ) .
263263 RunCommand ( "dotnet" ) .
264264 Argument ( "--list-sdks" ) ;
265265 return listSdks . Script ;
266266 }
267267
268- static string DotNetCommand ( IBuildActions actions , string ? dotNetPath ) =>
268+ private static string DotNetCommand ( IBuildActions actions , string ? dotNetPath ) =>
269269 dotNetPath != null ? actions . PathCombine ( dotNetPath , "dotnet" ) : "dotnet" ;
270270
271- static BuildScript GetInfoCommand ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
271+ private static BuildScript GetInfoCommand ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
272272 {
273273 var info = new CommandBuilder ( actions , null , environment ) .
274274 RunCommand ( DotNetCommand ( actions , dotNetPath ) ) .
275275 Argument ( "--info" ) ;
276276 return info . Script ;
277277 }
278278
279- static CommandBuilder GetCleanCommand ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
279+ private static CommandBuilder GetCleanCommand ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
280280 {
281281 var clean = new CommandBuilder ( actions , null , environment ) .
282282 RunCommand ( DotNetCommand ( actions , dotNetPath ) ) .
283283 Argument ( "clean" ) ;
284284 return clean ;
285285 }
286286
287- static CommandBuilder GetRestoreCommand ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
287+ private static CommandBuilder GetRestoreCommand ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
288288 {
289289 var restore = new CommandBuilder ( actions , null , environment ) .
290290 RunCommand ( DotNetCommand ( actions , dotNetPath ) ) .
291291 Argument ( "restore" ) ;
292292 return restore ;
293293 }
294294
295- static BuildScript GetInstalledRuntimesScript ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
295+ private static BuildScript GetInstalledRuntimesScript ( IBuildActions actions , string ? dotNetPath , IDictionary < string , string > ? environment )
296296 {
297297 var listSdks = new CommandBuilder ( actions , environment : environment , silent : true ) .
298298 RunCommand ( DotNetCommand ( actions , dotNetPath ) ) .
@@ -309,7 +309,7 @@ static BuildScript GetInstalledRuntimesScript(IBuildActions actions, string? dot
309309 /// hence the need for CLR tracing), by adding a
310310 /// `/p:UseSharedCompilation=false` argument.
311311 /// </summary>
312- static BuildScript GetBuildScript ( Autobuilder builder , string ? dotNetPath , IDictionary < string , string > ? environment , bool compatibleClr , string projOrSln )
312+ private static BuildScript GetBuildScript ( Autobuilder builder , string ? dotNetPath , IDictionary < string , string > ? environment , bool compatibleClr , string projOrSln )
313313 {
314314 var build = new CommandBuilder ( builder . Actions , null , environment ) ;
315315 var script = builder . MaybeIndex ( build , DotNetCommand ( builder . Actions , dotNetPath ) ) .
0 commit comments