public override void Visit(YamlSequenceNode sequence) { Spec.Output = new OutputSpec(); Spec.Output.Fields = new List <OutputField>(); if (Spec.Import?.LineClasses != null) { _generator.ValidIdentifiers.UnionWith(Spec.Import.LineClasses.SelectMany(lt => lt.ValuesToExtract.Select(field => field.Name))); } Visitors = Visitors.Union(new IYamlNodeVisitor[] { new NullVisitor("/Output[*]"), new OutputFieldsVisitor(_generator) }); VisitChildren(sequence); }
public override void Visit(YamlSequenceNode sequence) { Spec.Import.LineClasses = new List <LineClass>(); Visitors = Visitors.Union(new IYamlNodeVisitor[] { new NullVisitor("/Import/Line Classes[*]") }); VisitChildren(sequence); }