Ejemplo n.º 1
0
 public DebugDocumentContext(DebugDocument document, uint position, uint length, IEnumDebugCodeContexts enumCodeContexts)
 {
     this.document         = document;
     this.position         = position;
     this.length           = length;
     this.enumCodeContexts = enumCodeContexts;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs an instance of the debug document context
 /// </summary>
 /// <param name="document">Debug document</param>
 /// <param name="position">Position</param>
 /// <param name="length">Length</param>
 /// <param name="enumCodeContexts">Code context enumerator</param>
 public DebugDocumentContext(DebugDocument document, uint position, uint length,
                             IEnumDebugCodeContexts enumCodeContexts)
 {
     _document         = document;
     _position         = position;
     _length           = length;
     _enumCodeContexts = enumCodeContexts;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Used by a smart host to delegate the <see cref="IDebugDocumentContext.EnumCodeContexts"/> method
        /// </summary>
        /// <param name="sourceContext">The source context as provided to
        /// <see cref="IActiveScriptParse32.ParseScriptText"/> or
        /// <see cref="IActiveScriptParse32.AddScriptlet"/></param>
        /// <param name="offset">Character offset relative to start of script text</param>
        /// <param name="length">Number of characters in this context</param>
        /// <param name="enumContexts">An enumerator of the code contexts in the specified range</param>
        public void EnumCodeContextsOfPosition(UIntPtr sourceContext, uint offset, uint length,
                                               out IEnumDebugCodeContexts enumContexts)
        {
            uint result;

            if (_is64Bit)
            {
                var del = ComHelpers.GetMethodDelegate <RawEnumCodeContextsOfPosition64>(_pActiveScriptDebug64, 5);
                result = del(_pActiveScriptDebug64, sourceContext.ToUInt64(), offset, length, out enumContexts);
            }
            else
            {
                var del = ComHelpers.GetMethodDelegate <RawEnumCodeContextsOfPosition32>(_pActiveScriptDebug32, 5);
                result = del(_pActiveScriptDebug32, sourceContext.ToUInt32(), offset, length, out enumContexts);
            }

            ComHelpers.HResult.Check(result);
        }
Ejemplo n.º 4
0
 public abstract void EnumCodeContextsOfPosition(UIntPtr sourceContext, uint offset, uint length, out IEnumDebugCodeContexts enumContexts);
Ejemplo n.º 5
0
 public override void EnumCodeContextsOfPosition(UIntPtr sourceContext, uint offset, uint length, out IEnumDebugCodeContexts enumContexts)
 {
     var del = RawCOMHelpers.GetMethodDelegate<RawEnumCodeContextsOfPosition>(pActiveScriptDebug, 5);
     RawCOMHelpers.HResult.Check(del(pActiveScriptDebug, sourceContext.ToUInt64(), offset, length, out enumContexts));
 }
Ejemplo n.º 6
0
 public void EnumCodeContexts(out IEnumDebugCodeContexts enumContexts)
 {
     enumCodeContexts.Clone(out enumContexts);
 }
Ejemplo n.º 7
0
 public abstract void EnumCodeContextsOfPosition(UIntPtr sourceContext, uint offset, uint length, out IEnumDebugCodeContexts enumContexts);
Ejemplo n.º 8
0
        public override void EnumCodeContextsOfPosition(UIntPtr sourceContext, uint offset, uint length, out IEnumDebugCodeContexts enumContexts)
        {
            var del = RawCOMHelpers.GetMethodDelegate <RawEnumCodeContextsOfPosition>(pActiveScriptDebug, 5);

            RawCOMHelpers.HResult.Check(del(pActiveScriptDebug, sourceContext.ToUInt64(), offset, length, out enumContexts));
        }