public override void Execute(SourceGeneratorContext context)
 {
     if (PlatformHelper.IsValidPlatform(context))
     {
         var visitor = new SerializationMethodsGenerator(context);
         visitor.Visit(context.Compilation.SourceModule);
     }
 }
Example #2
0
 public void Execute(GeneratorExecutionContext context)
 {
     if (!DesignTimeHelper.IsDesignTime(context))
     {
         var visitor = new SerializationMethodsGenerator(context);
         visitor.Visit(context.Compilation.SourceModule);
     }
 }
Example #3
0
 public void Execute(GeneratorExecutionContext context)
 {
     DependenciesInitializer.Init(context);
     if (PlatformHelper.IsValidPlatform(context))
     {
         var visitor = new SerializationMethodsGenerator(context);
         visitor.Visit(context.Compilation.SourceModule);
     }
 }
Example #4
0
        public override void Execute(SourceGeneratorContext context)
        {
            var visitor = new SerializationMethodsGenerator(context);

            visitor.Visit(context.Compilation.SourceModule);
        }