コード例 #1
0
        public void DefineSequencePoints(ISymbolDocumentWriter document, int[] ilOffsets, int[] startLines, int[] startColumns, int[] endLines, int[] endColumns)
        {
            // we only support a single call per method
            Debug.Assert(this.document == null);

            this.document     = (DocumentImpl)document;
            this.ilOffsets    = ilOffsets;
            this.startLines   = startLines;
            this.startColumns = startColumns;
            this.endLines     = endLines;
            this.endColumns   = endColumns;
        }
コード例 #2
0
 public void CloseMethod()
 {
     if (document != null)
     {
         var blob = DefineSequencePoints();
         methods.Add(new MethodRec {
             Token = currentMethod, Document = document.rId, SequencePoints = blob, Scopes = scopes.ToArray()
         });
         document     = null;
         ilOffsets    = null;
         startLines   = null;
         startColumns = null;
         endLines     = null;
         endColumns   = null;
         scope        = null;
         scopes.Clear();
     }
     currentMethod    = 0;
     localVarSigToken = 0;
 }