Merge pull request #1504 from madrang/SafeHandle.SetInvalidRelease
[mono.git] / mcs / class / Mono.CompilerServices.SymbolWriter / SourceMethodBuilder.cs
index b45bf8a1fb54d430a31c4c40001db0feff26d40f..bd801f657b16a4a74080e77614db18fbe9ae9298 100644 (file)
@@ -37,11 +37,7 @@ namespace Mono.CompilerServices.SymbolWriter
                List<LocalVariableEntry> _locals;
                List<CodeBlockEntry> _blocks;
                List<ScopeVariable> _scope_vars;
-#if NET_2_1
-               System.Collections.Stack _block_stack;
-#else          
                Stack<CodeBlockEntry> _block_stack;
-#endif
                readonly List<LineNumberEntry> method_lines;
 
                readonly ICompileUnit _comp_unit;
@@ -62,9 +58,14 @@ namespace Mono.CompilerServices.SymbolWriter
                }
 
                public void MarkSequencePoint (int offset, SourceFileEntry file, int line, int column, bool is_hidden)
+               {
+                       MarkSequencePoint (offset, file, line, column, -1, -1, is_hidden);
+               }
+
+               public void MarkSequencePoint (int offset, SourceFileEntry file, int line, int column, int end_line, int end_column, bool is_hidden)
                {
                        int file_idx = file != null ? file.Index : 0;
-                       var lne = new LineNumberEntry (file_idx, line, column, offset, is_hidden);
+                       var lne = new LineNumberEntry (file_idx, line, column, end_line, end_column, offset, is_hidden);
 
                        if (method_lines.Count > 0) {
                                var prev = method_lines[method_lines.Count - 1];
@@ -90,11 +91,7 @@ namespace Mono.CompilerServices.SymbolWriter
                public void StartBlock (CodeBlockEntry.Type type, int start_offset)
                {
                        if (_block_stack == null) {
-#if NET_2_1
-                               _block_stack = new System.Collections.Stack ();
-#else                          
                                _block_stack = new Stack<CodeBlockEntry> ();
-#endif
                        }
                        
                        if (_blocks == null)