File tree 7 files changed +8
-13
lines changed
tools-local/Microsoft.ML.AutoML.SourceGenerator
7 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Microsoft . ML . AutoML . SourceGenerator
6
6
{
7
- internal class Constant
7
+ internal sealed class Constant
8
8
{
9
9
public const string CodeGeneratorNameSpace = "Microsoft.ML.AutoML.CodeGen" ;
10
10
}
Original file line number Diff line number Diff line change 9
9
10
10
namespace Microsoft . ML . AutoML . SourceGenerator
11
11
{
12
- internal class EstimatorContract
12
+ internal sealed class EstimatorContract
13
13
{
14
14
[ JsonPropertyName ( "functionName" ) ]
15
15
public string FunctionName { get ; set ; }
Original file line number Diff line number Diff line change 15
15
namespace Microsoft . ML . AutoML . SourceGenerator
16
16
{
17
17
[ Generator ]
18
- public class EstimatorTypeGenerator : ISourceGenerator
18
+ public sealed class EstimatorTypeGenerator : ISourceGenerator
19
19
{
20
20
private const string className = "EstimatorType" ;
21
21
private const string fullName = Constant . CodeGeneratorNameSpace + "." + className ;
Original file line number Diff line number Diff line change 15
15
namespace Microsoft . ML . AutoML . SourceGenerator
16
16
{
17
17
[ Generator ]
18
- public class SearchSpaceGenerator : ISourceGenerator
18
+ public sealed class SearchSpaceGenerator : ISourceGenerator
19
19
{
20
20
public void Execute ( GeneratorExecutionContext context )
21
21
{
Original file line number Diff line number Diff line change 13
13
namespace Microsoft . ML . AutoML . SourceGenerator
14
14
{
15
15
[ Generator ]
16
- public class SweepableEstimatorFactoryGenerator : ISourceGenerator
16
+ public sealed class SweepableEstimatorFactoryGenerator : ISourceGenerator
17
17
{
18
18
private const string className = "SweepableEstimatorFactory" ;
19
19
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
- using System ;
6
5
using System . Collections . Generic ;
7
- using System . Diagnostics ;
8
6
using System . Linq ;
9
7
using System . Text ;
10
8
using System . Text . Json ;
11
9
using Microsoft . CodeAnalysis ;
12
- using Microsoft . CodeAnalysis . CSharp . Syntax ;
13
10
using Microsoft . CodeAnalysis . Text ;
14
- using Microsoft . ML . AutoML . SourceGenerator ;
15
- using SweepableEstimator = Microsoft . ML . AutoML . SourceGenerator . Template . SweepableEstimator ;
16
11
using SweepableEstimatorT = Microsoft . ML . AutoML . SourceGenerator . Template . SweepableEstimator_T_ ;
17
- namespace Microsoft . ML . ModelBuilder . SweepableEstimator . CodeGenerator
12
+ namespace Microsoft . ML . AutoML . SourceGenerator
18
13
{
19
14
[ Generator ]
20
- public class SweepableEstimatorGenerator : ISourceGenerator
15
+ public sealed class SweepableEstimatorGenerator : ISourceGenerator
21
16
{
22
17
private const string SweepableEstimatorAttributeDisplayName = Constant . CodeGeneratorNameSpace + "." + "SweepableEstimatorAttribute" ;
23
18
Original file line number Diff line number Diff line change 10
10
11
11
namespace Microsoft . ML . AutoML . SourceGenerator
12
12
{
13
- internal class Utils
13
+ internal sealed class Utils
14
14
{
15
15
public static EstimatorsContract GetEstimatorsFromJson ( string json )
16
16
{
You can’t perform that action at this time.
0 commit comments