public static object Chars(params int[] chars) { var count = chars.Length; var array = new PrintableList<ISingleCharRx>(count); for (var i = 0; i < count; i++) { array.Add(new CharRx(chars[i])); } return array; }
public static IList <SourceLanguage> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <SourceLanguage>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <LiteralContextDependentNumber> ParseCollection(WordReader reader, uint wordCount, InstructionWithId type) { var end = reader.Position + wordCount; var res = new PrintableList <LiteralContextDependentNumber>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position, type)); } return(res); }
public IList <Node> GetNodes(IList <IdRef> ids) { var nodes = new PrintableList <Node>(); if (ids != null) { foreach (var idRef in ids) { nodes.Add(GetNode(idRef)); } } return(nodes); }