コード例 #1
0
        public override void Visit(TableArraySyntax table)
        {
            VerifyTable(table);
            var savedPath = _currentPath.Clone();

            if (table.Name == null || !KeyNameToObjectPath(table.Name, ObjectKind.Table))
            {
                return;
            }
            var currentArrayTable = AddObjectPath(table, ObjectKind.TableArray, true);

            var savedIndex = _currentArrayIndex;

            _currentArrayIndex = currentArrayTable.ArrayIndex;

            base.Visit(table);

            currentArrayTable.ArrayIndex++;
            _currentArrayIndex = savedIndex;
            _currentPath       = savedPath;
        }
コード例 #2
0
 public virtual void Visit(TableArraySyntax table)
 {
     DefaultVisit(table);
 }