コード例 #1
0
 public SymbolScopeImpl(PortablePdbReader owner, SymbolScopeImpl parent, int startOffset, int endOffset, PdbCustomDebugInfo[] customDebugInfos)
 {
     this.owner            = owner;
     method                = null;
     this.parent           = parent;
     this.startOffset      = startOffset;
     this.endOffset        = endOffset;
     childrenList          = new List <SymbolScope>();
     localsList            = new List <SymbolVariable>();
     this.customDebugInfos = customDebugInfos;
 }
コード例 #2
0
        public DbiScope(SymbolMethod method, SymbolScope parent, string name, uint offset, uint length)
        {
            this.method = method;
            this.parent = parent;
            Name        = name;
            startOffset = (int)offset;
            endOffset   = (int)(offset + length);

            childrenList   = new List <SymbolScope>();
            localsList     = new List <SymbolVariable>();
            namespacesList = new List <SymbolNamespace>();
        }
コード例 #3
0
ファイル: PdbState.cs プロジェクト: slamj1/dnlib
        void AddSequencePoints(CilBody body, SymbolMethod method)
        {
            int instrIndex = 0;

            foreach (var sp in method.SequencePoints)
            {
                var instr = GetInstruction(body.Instructions, sp.Offset, ref instrIndex);
                if (instr == null)
                {
                    continue;
                }
                var seqPoint = new SequencePoint()
                {
                    Document    = Add_NoLock(new PdbDocument(sp.Document)),
                    StartLine   = sp.Line,
                    StartColumn = sp.Column,
                    EndLine     = sp.EndLine,
                    EndColumn   = sp.EndColumn,
                };
                instr.SequencePoint = seqPoint;
            }
        }
コード例 #4
0
 public SymbolScopeImpl(ISymUnmanagedScope scope, SymbolMethod method, SymbolScope parent)
 {
     this.scope  = scope;
     this.method = method;
     this.parent = parent;
 }