Exemplo n.º 1
0
        public override IElement CreateCopy()
        {
            StringArray e = new StringArray();

            e.AddChildren(this.CopyChildren());
            return(e);
        }
Exemplo n.º 2
0
        private static void Parse(MoveInfo parentInfo, ParsingInfo parsingInfo, ScriptInfo scriptInfo)
        {
            StringArray strArray = new StringArray();

            MoveInfo moveInfo = new MoveInfo(parentInfo);
            IElement next     = moveInfo.FindNextBlack(SearchDirection.LeftToRight);

            int length = 1;

            if (next != null &&
                (ArrayIndexer.Check(moveInfo, parsingInfo, scriptInfo) ||
                 DataMember.Check(moveInfo, parsingInfo, scriptInfo)))
            {
                length = (moveInfo.CurrentIndex + 1) - parentInfo.CurrentIndex;
            }

            strArray.AddChildren(parentInfo.CurrentElements.GetRange(parentInfo.CurrentIndex, length));
            parentInfo.Replace(length, strArray);
        }