Exemplo n.º 1
0
        /// <summary>
        /// Gets the list of children which this object contains.  The children can be either
        /// members (x.fob, x.oar) or they can be indexes (x[0], x[1], etc...).  Calling this
        /// causes the children to be determined by communicating with the debuggee.  These
        /// objects can then later be evaluated.  The names returned here are in the form of
        /// "fob" or "0" so they need additional work to append onto this expression.
        ///
        /// Returns null if the object is not expandable.
        /// </summary>
        public async Task <PythonEvaluationResult[]> GetChildrenAsync(CancellationToken ct)
        {
            if (!IsExpandable)
            {
                return(null);
            }

            return(await _process.GetChildrenAsync(Expression, _frame, ct));
        }