/*!*/ public MappingNode Map(Dictionary<Node, Node> value, string tag, IDictionary/*!*/ mapping, FlowStyle flowStyle) { foreach (DictionaryEntry entry in mapping) { value.Add(RepresentItem(entry.Key), RepresentItem(entry.Value)); } return new MappingNode(tag, value, flowStyle); }
public SequenceNode /*!*/ Sequence(string tag, IList /*!*/ sequence, FlowStyle flowStyle) { List <Node> value = new List <Node>(sequence.Count); foreach (object x in sequence) { value.Add(RepresentItem(x)); } return(new SequenceNode(tag, value, flowStyle)); }
protected ElementSpecification Element(Unit innerWidth = default(Unit), Unit innerHeight = default(Unit), bool breakable = false, bool followLineHeight = false, FlowStyle flow = FlowStyle.Float, Unit border = default(Unit), bool keepWithNextLine = false, Behaviors behavior = null, IEnumerable<ElementSpecification> children = null) { var line = ChildElement(innerWidth, innerHeight, breakable, followLineHeight, flow, border, keepWithNextLine, behavior, children); elements.Add(line); return line; }
protected ElementSpecification Element(Unit innerWidth = default(Unit), Unit innerHeight = default(Unit), bool breakable = false, bool followLineHeight = false, FlowStyle flow = FlowStyle.Float, Unit border = default(Unit), bool keepWithNextLine = false, IEnumerable<ElementSpecification> children = null) { var element = new TestSpecification(children != null ? children.ToList() : new List<ElementSpecification>()) { InnerHeight = innerHeight, InnerWidth = innerWidth, FollowLineHeight = followLineHeight, Flow = flow, KeepWithNextLine = keepWithNextLine, Breakable = breakable, Margins = new Margins { Bottom = border, Left = border, Right = border, Top = border } }; return element; }
public MappingStartEvent(string anchor, string tag, FlowStyle flowStyle) : base(anchor, tag, flowStyle) { }
internal CollectionStartEvent(string anchor, string tag, FlowStyle flowStyle) : base(anchor) { _tag = tag != "!" ? tag : null; _flowStyle = flowStyle; }
public SequenceStartEvent(string anchor, string tag, FlowStyle flowStyle) : base(anchor, tag, flowStyle) { }
public MappingStartEvent(string anchor, string tag, FlowStyle flowStyle) : base(anchor, tag, flowStyle) { }
internal CollectionNode(string tag, FlowStyle flowStyle) : base(tag) { FlowStyle = flowStyle; }
public SequenceNode/*!*/ Sequence(string tag, IList/*!*/ sequence, FlowStyle flowStyle) { List<Node> value = new List<Node>(sequence.Count); foreach (object x in sequence) { value.Add(RepresentItem(x)); } return new SequenceNode(tag, value, flowStyle); }
public MappingNode /*!*/ Map(Dictionary <Node, Node> value, string tag, IDictionary /*!*/ mapping, FlowStyle flowStyle) { foreach (DictionaryEntry entry in mapping) { value.Add(RepresentItem(entry.Key), RepresentItem(entry.Value)); } return(new MappingNode(tag, value, flowStyle)); }
public MappingNode /*!*/ Map(string tag, IDictionary /*!*/ mapping, FlowStyle flowStyle) { return(Map(new Dictionary <Node, Node>(mapping.Count), tag, mapping, flowStyle)); }
public SequenceNode(string tag, IList<Node>/*!*/ nodes, FlowStyle flowStyle) : base(tag, flowStyle) { _nodes = nodes; }
internal CollectionNode(string tag, FlowStyle flowStyle) : base(tag) { FlowStyle = flowStyle; }
public MappingNode(string tag, IDictionary<Node, Node>/*!*/ nodes, FlowStyle flowStyle) : base(tag, flowStyle) { _nodes = nodes; }
public SequenceStartEvent(string anchor, string tag, FlowStyle flowStyle) : base(anchor, tag, flowStyle) { }
internal CollectionStartEvent(string anchor, string tag, FlowStyle flowStyle) : base(anchor) { _tag = tag != "!" ? tag : null; _flowStyle = flowStyle; }
public SequenceNode(string tag, IList <Node> /*!*/ nodes, FlowStyle flowStyle) : base(tag, flowStyle) { _nodes = nodes; }
public MappingNode/*!*/ Map(string tag, IDictionary/*!*/ mapping, FlowStyle flowStyle) { return Map(new Dictionary<Node, Node>(mapping.Count), tag, mapping, flowStyle); }
public MappingNode(string tag, IDictionary <Node, Node> /*!*/ nodes, FlowStyle flowStyle) : base(tag, flowStyle) { _nodes = nodes; }