Beispiel #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;
 }
        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>();
        }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
 public SymbolScopeImpl(ISymUnmanagedScope scope, SymbolMethod method, SymbolScope parent)
 {
     this.scope  = scope;
     this.method = method;
     this.parent = parent;
 }