Exemplo n.º 1
0
 private static bool ShouldGenerateSequencePoints(WeaverConfigOptions config, ModuleDefinition module)
 {
     return(config.SequencePoints switch
     {
         WeaverConfigOptions.SequencePointsBehavior.False => false,
         WeaverConfigOptions.SequencePointsBehavior.True => true,
         WeaverConfigOptions.SequencePointsBehavior.Debug => module.IsDebugBuild(),
         WeaverConfigOptions.SequencePointsBehavior.Release => !module.IsDebugBuild(),
         _ => throw new ArgumentOutOfRangeException()
     });
Exemplo n.º 2
0
 public WeaverLogger(ILogger log, WeaverConfigOptions config)
 {
     _log    = log;
     _config = config;
 }