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() });
public WeaverLogger(ILogger log, WeaverConfigOptions config) { _log = log; _config = config; }