public override void InspectTransform(Output transform) { Table fileTable = transform.Tables["File"]; if (null != fileTable && 0 < fileTable.Rows.Count) { Row fileRow = fileTable.Rows[0]; this.Core.OnMessage(ValidationWarnings.ExampleWarning(fileRow.SourceLineNumbers)); return; } this.Core.OnMessage(ValidationErrors.ExampleError()); }
public override void InspectIntermediate(Intermediate output) { foreach (Section section in output.Sections) { Table fileTable = section.Tables["File"]; if (null != fileTable && 0 < fileTable.Rows.Count) { Row fileRow = fileTable.Rows[0]; this.Core.OnMessage(ValidationWarnings.ExampleWarning(fileRow.SourceLineNumbers)); return; } } this.Core.OnMessage(ValidationErrors.ExampleError()); }
public override void InspectPatch(Output patch) { foreach (SubStorage transform in patch.SubStorages) { // Skip patch transforms. if (transform.Name.StartsWith("#")) { continue; } Table fileTable = transform.Data.Tables["File"]; if (null != fileTable && 0 < fileTable.Rows.Count) { Row fileRow = fileTable.Rows[0]; this.Core.OnMessage(ValidationWarnings.AnotherExampleWarning(fileRow.SourceLineNumbers)); return; } } this.Core.OnMessage(ValidationErrors.ExampleError()); }