public void ExecutePropertyWriteActions(MSBuildPropertyElement element) { if (Context.GetPropertyWriteActions(element.ElementName, out var actions)) { var ctx = new PropertyWriteDiagnosticContext(this, element); foreach (var(analyzer, action) in actions) { try { if (!analyzer.Disabled) { action(ctx); } } catch (Exception ex) { Context.ReportAnalyzerError(analyzer, ex); } } } }
internal PropertyWriteDiagnosticContext( MSBuildAnalysisSession session, MSBuildPropertyElement element) { this.session = session; Element = element; }